Question: A teacher needs a program to help calculate the final student grades. There are 3 grades for each student. Each grade is worth 1 /

A teacher needs a program to help calculate the final student grades. There are 3 grades for each student. Each grade is worth 1/3 of the final grade.
The program will ask the teacher to enter the grades for a student and then output the student's final grade. This process will repeat until the grades for all the students have been entered. Once completed, the program will give the average student grade for the class.
Requirements: Must have in your code:
Input of 3 grades must be done using a for loop (inner loop).
Use a constant for the number of grades per student.
Use a while or do while loop for the outer loop that repeats the program if the teacher wants to enter grades for another student.
The outer while or do while loop's condition should be that the user answers "yes" or "no" to the "Enter grades for another student?" question (not 1 or 2, or true or false).
For the grade output, use the toFixed function to set the number of decimals to one.
Comment your program. Make sure your name and class information is in a comment at the beginning of the program.
Here is a sample run with the expected output for your program. Notice that the grades entered are just an example and should not be in your code (in blue font). Please analyze it carefully to fully understand how your program should work:
Welcome to the teacher's assistance program!
Enter grades for Student 1
Enter grade 1
96
Enter grade 2
86
Enter grade 3
75
Student 1 final grade is: 85.7
Enter grades for another student? yes or no:
yes
Enter grades for Student 2
Enter grade 1
85
Enter grade 2
76
Enter grade 3
95
Student 2 final grade is: 85.3
Enter grades for another student? yes or no:
yes
Enter grades for Student 3
Enter grade 1
75
Enter grade 2
76
Enter grade 3
84
Student 3 final grade is: 78.3
Enter grades for another student? yes or no:
yes
Enter grades for Student 4
Enter grade 1
90
Enter grade 2
86
Enter grade 3
92
Student 4 final grade is: 89.3
Enter grades for another student? yes or no:
no
Average grade for the class is 84.7
Use your name as part of the submitted Flowgorithm file name: such as SusanSmith_flowgorithmExam.fprg or AJones_flowExam.fprg or flowgorithmExam_JimBobJones.fprg use flowgorithem

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!