This is another headache problem or task for a C++ beginner like me.
This program needs me to write a program using 2 dimensional array. The program is to record test results for 5 students. The marks in these test is in the range of 0 to 100. This is the grading system:
90-100 A
80-89 B
70-79 C
60-69 D
Below 60 F
The application should allow user to input the student number and three test results,then compute each student's average and the class average. The application should display the student grade after caluculating the average.
Sample outputs:
Please enter student no: 1
Please enter test 1 : 87
Please enter test 2 : 94
Please enter test 3 : 93
The average is : 91.33
The grade is A
.
.
.
.
.
Student Number Test 1 Test 2 Test 3 Average Grade
1 87 94 93 91.33 A
2 21 33 60 38.00 F
3 60 75 70 68.33 D
4 80 99 75 84.67 B
5 65 80 88 77.67 C
Class Average: 71.87
Class Grade: C
The sample my lecturer gave me is some sort of thing like the above. I will include a coding that i tried but please dun laugh at me coz i am new to C++,i would like to thank u all in advance and hopefully i can get some help from u all. My main problem about this is how to display the result in a table like format(like shown above).
Thanks a million guys!
This program needs me to write a program using 2 dimensional array. The program is to record test results for 5 students. The marks in these test is in the range of 0 to 100. This is the grading system:
90-100 A
80-89 B
70-79 C
60-69 D
Below 60 F
The application should allow user to input the student number and three test results,then compute each student's average and the class average. The application should display the student grade after caluculating the average.
Sample outputs:
Please enter student no: 1
Please enter test 1 : 87
Please enter test 2 : 94
Please enter test 3 : 93
The average is : 91.33
The grade is A
.
.
.
.
.
Student Number Test 1 Test 2 Test 3 Average Grade
1 87 94 93 91.33 A
2 21 33 60 38.00 F
3 60 75 70 68.33 D
4 80 99 75 84.67 B
5 65 80 88 77.67 C
Class Average: 71.87
Class Grade: C
The sample my lecturer gave me is some sort of thing like the above. I will include a coding that i tried but please dun laugh at me coz i am new to C++,i would like to thank u all in advance and hopefully i can get some help from u all. My main problem about this is how to display the result in a table like format(like shown above).
Thanks a million guys!