Im a kind of lost with this question and i need some1 to help me go thru it and it is as follows...
A program that uses a for loop to frst take in names and total grades of 5 students.
Your output should look like this:
What is the name of student 1 = ______
Total Mark? ____
The program computes the average of all the total marks and prints out (on screen) the following output.
What is the name of student 1 = Peter
Total Mark? 100
What is the name of student 2 = John
Total Mark? 80
What is the name of student 3 = William
Total Mark? 10
What is the name of student 4 = Kim
Total Mark? 12
What is the name of student 5 = Linda
Total Mark? 0
-------------------------------------------
Peter 100 A
John 90 B
William 10 F
Kim 12 F
Linda 0 F
Average of the class is: 42.4
A program that uses a for loop to frst take in names and total grades of 5 students.
Your output should look like this:
What is the name of student 1 = ______
Total Mark? ____
The program computes the average of all the total marks and prints out (on screen) the following output.
What is the name of student 1 = Peter
Total Mark? 100
What is the name of student 2 = John
Total Mark? 80
What is the name of student 3 = William
Total Mark? 10
What is the name of student 4 = Kim
Total Mark? 12
What is the name of student 5 = Linda
Total Mark? 0
-------------------------------------------
Peter 100 A
John 90 B
William 10 F
Kim 12 F
Linda 0 F
Average of the class is: 42.4