Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

PLLLEEEEAAAAASSSSSEEEEE HELP!!!! IM STILL STUCK IN THIS LOOP. I dont need any other help other than GETTING OUT OF THIS LOOP!!! Im sure I can

PLLLEEEEAAAAASSSSSEEEEE HELP!!!! IM STILL STUCK IN THIS LOOP. I dont need any other help other than GETTING OUT OF THIS LOOP!!! Im sure I can work the rest through. But I just need HELP creating a condition to get out. I dont want to change the flow or programming that I have completed already. THE LEFT AND MIDDLE PHOTO ARE MY ENTIRE PROGRAM. THE RIGHT PHOTO IS MY CALCULATE AVERAGE FUNCTION WHICH IS WHERE IM STUCK.
THE PROGRAM SHOULD:
1. Input a list of students names and final grades (each student with one final grade) and store them in parallel arrays. End the input with a sentinel value. You have to use input validation to validate input grades to make sure they are in number format and in range 0-100.
2. After completing all inputs. Figure out and print out the average of all the grades of the students. Find and print out the student who's grade is highest. Find and print out the student who's grade is lowest. Print out all student with grade >=60 with a message "Congratulations, Name, Grade, You passed this class!", for those whose grades 60, Print out with a message: ""Sorry, Name, Grade, You failed this class!"
So far my program:
*Stores students names and grades in seperate paralell arrays.
*Add together the entered grades to find the sum.
My next step is to use the sum to get the average. I got the grade entries to roll into the function without further input. So what Im asking for is a solution to get out of this loop. Yes, Im basically asking for answer just for this wrench in my plan. If its not possible for you to give me that answer, if you have another approach to take for the calculate average function that would fit into my design without requiring further input that would be fine.
image text in transcribed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

More Books

Students also viewed these Databases questions

Question

KEY QUESTION Refer to the table in question

Answered: 1 week ago