Answered step by step
Verified Expert Solution
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:
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
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 with a message "Congratulations, Name, Grade, You passed this class!", for those whose grades 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.
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