Dowena
11-08-2006, 09:40 PM
ممكن تعطوني الطريقة الي بنبدا نعمل فيها هذا البرنامج لأني محتارة
Write a C++ programe that will read an unspecified number of names and exam grades for three exams (first, sec , final) from a file called info.txt. The file is organized so that the name of a student is on a line and the grades are on the next:
ahmad
50 60 100
Sana
80 90 44
...
After reading all the data from the file, your programe should print the following:
a) name of each student and his/her average grade
b) The name of the student that recieved the highest score on the final exam
بكون جدا شاكرة اذا ساعدتوني بسرعة
Write a C++ programe that will read an unspecified number of names and exam grades for three exams (first, sec , final) from a file called info.txt. The file is organized so that the name of a student is on a line and the grades are on the next:
ahmad
50 60 100
Sana
80 90 44
...
After reading all the data from the file, your programe should print the following:
a) name of each student and his/her average grade
b) The name of the student that recieved the highest score on the final exam
بكون جدا شاكرة اذا ساعدتوني بسرعة