Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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 grades for each student. Each grade is worth 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 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 or 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
Enter grade
Enter grade
Enter grade
Student final grade is:
Enter grades for another student? yes or no:
yes
Enter grades for Student
Enter grade
Enter grade
Enter grade
Student final grade is:
Enter grades for another student? yes or no:
yes
Enter grades for Student
Enter grade
Enter grade
Enter grade
Student final grade is:
Enter grades for another student? yes or no:
yes
Enter grades for Student
Enter grade
Enter grade
Enter grade
Student final grade is:
Enter grades for another student? yes or no:
no
Average grade for the class is
Use your name as part of the submitted Flowgorithm file name: such as SusanSmithflowgorithmExam.fprg or AJonesflowExam.fprg or flowgorithmExamJimBobJones.fprg use flowgorithem
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started