Wednesday, 29 June 2011

Re: (VU-Study-Corner) Important about CS201 Assignment#4 Solution

Electricity Consumer Bill
---------------------------------------------------------------------------
Reference No Tariff Load Old A/C No
123456789123456 2 1 123456789123456

---------------------------------------------------------------------------
Name and Address
XYZ Lahore Pakistan

---------------------------------------------------------------------------
Reading MF Total Unit Consumed Total Cost of electricity
55671 1 328 9999

---------------------------------------------------------------------------
Month Units Bill Current Bill 10732
Jan-11 312 5000 Arrears 0
Feb-11 312 5000 Tariff Subsidy NA
Mar-11 312 5000 Payable within Duedate 10732

---------------------------------------------------------------------------
#include<iostream.h>
#include<fstream.h>

main()
{
ifstream inFile;
char inputFileName[]="Electricity_Bill.txt";
const int MAX_CHAR_TO_READ = 100;
char completeLineText[MAX_CHAR_TO_READ];

inFile.open(inputFileName);

if(!inFile)
{
cout <<"Can't open input file named " << inputFileName << endl;
exit(1);
}

while(!inFile.eof())
{
inFile.getline(completeLineText,MAX_CHAR_TO_READ);
cout << completeLineText << endl;
}
inFile.close();
system("pause");

}
ye wala solution submit krwaen bcz sir ne kuch students ki mails k reply me kaha k manually text file create krein



On Wed, Jun 29, 2011 at 6:24 PM, I.T.Genius <mc100404393@vu.edu.pk> wrote:
Tayyaba where is attachment???


On Wed, Jun 29, 2011 at 4:59 AM, mc110200261 Muhammad Muzzammil Iqbal <mc110200261@vu.edu.pk> wrote:
thnx

On Tue, Jun 28, 2011 at 9:01 AM, mc090406319 Tayyaba Hameed <mc090406319@vu.edu.pk> wrote:
Assalam o alaikum dear members

The solution of CS201 assignment#4 shared by me was wrong or you can say incomplete
I created a text file and then wrote a program which opens the the text file, read the data from the text file and then display in on the screen

whereas according to the requirements of the assignment
we have to write a C++ program which will automatically create a text file,
write the date in the text,
open the text file, read the date from the file and display in on the screen

i corrected the solution file and attached it

--
Join us at facebook: https://www.facebook.com/VU.Study.Corner
 
Group Link: http://groups.google.com/group/VU-Study-Corner?hl=en
 
Group Rules: http://groups.google.com/group/VU-Study-Corner/web/group-rules
 
Unsubscribe: VU-Study-Corner+unsubscribe@googlegroups.com
 
Adult contents, Spamming, Immoral & Rudish talk, Cell number, Websites & Groups links specially in paper days are strictly prohibited and banned in group.

--
Join us at facebook: https://www.facebook.com/VU.Study.Corner
 
Group Link: http://groups.google.com/group/VU-Study-Corner?hl=en
 
Group Rules: http://groups.google.com/group/VU-Study-Corner/web/group-rules
 
Unsubscribe: VU-Study-Corner+unsubscribe@googlegroups.com
 
Adult contents, Spamming, Immoral & Rudish talk, Cell number, Websites & Groups links specially in paper days are strictly prohibited and banned in group.



--
Mudassir chaudhry,
MCS
Virtual University of Pakistan
itgenius786 (skype)

--
Join us at facebook: https://www.facebook.com/VU.Study.Corner
 
Group Link: http://groups.google.com/group/VU-Study-Corner?hl=en
 
Group Rules: http://groups.google.com/group/VU-Study-Corner/web/group-rules
 
Unsubscribe: VU-Study-Corner+unsubscribe@googlegroups.com
 
Adult contents, Spamming, Immoral & Rudish talk, Cell number, Websites & Groups links specially in paper days are strictly prohibited and banned in group.

--
Join us at facebook: https://www.facebook.com/VU.Study.Corner
 
Group Link: http://groups.google.com/group/VU-Study-Corner?hl=en
 
Group Rules: http://groups.google.com/group/VU-Study-Corner/web/group-rules
 
Unsubscribe: VU-Study-Corner+unsubscribe@googlegroups.com
 
Adult contents, Spamming, Immoral & Rudish talk, Cell number, Websites & Groups links specially in paper days are strictly prohibited and banned in group.

No comments:

Post a Comment