Question: ( (Java code) 1 Set total to zero Set grade counter to one 2 3 4 6 While grade counter is less than or equal

((Java code) 1 Set total to zero Set grade counter to one((Java code)

1 Set total to zero Set grade counter to one 2 3 4 6 While grade counter is less than or equal to ten Prompt the user to enter the next grade Input the next grade Add the grade into the total Add one to the grade counter 7 8 9 10 Set the class average to the total divided by ten 11 Print the class average Exercises 1. Write the Java program corresponding to the above algorithm. 2. Modify the program to read the data from a file called student.dat 3. Extend the program to assign letter grades 4. Extend the program to count how many students will get an A

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!