Question: Java programming, looking for guidance on logical brainstorming structure for code. The application manages the quiz scores for a class of 3 students. The user
Java programming, looking for guidance on logical brainstorming structure for code.
The application manages the quiz scores for a class of 3 students. The user will specify how many quizzes each of the students has. The program should prompt the user to enter the names of each of the student as well as the quiz scores for each of the students. It should then present the user with a menu system, which show a set of possible choices: 1) Calculate Class Average. 2) Calculate Student Average 3) Calculate Quiz Average The program should prompt the user to enter a number corresponding with one of the choices, or the letter x to exit. As long as the user doesnt press x, the program should keep showing the same menu to the user CLASS AVERAGE - For the option to calculate class average, the program should calculate the average of all the quiz scores for all the students present. The program should then show the overall class average to the students. STUDENT AVERAGE - The option to calculate student average should prompt the user for the name of the student. If the student is found in the list of names given earlier by the user, the program should calculate the average of the quiz scores for that student only and present them to the user. If the name is not found, it should present an error message to the user. QUIZ AVERAGE - For the option to calculate quiz average, the program should prompt the user to enter a quiz number. It should then calculate the average for only that Quiz number. For example, assume that the user specified initially there would be 5 quizzes. If the user now specifies that he or she would like the average for Quiz 2. The program should then calculate the average of scores belonging to all students, however, considering only those scores specified for Quiz 2. You must use arrays to store all information . You must use for or while loops to traverse arrays. Your program must calculate the average manually, i.e. no built-in functionality, methods, functions, etc. can be used to automate the calculation of the average. The set of statements which calculate the average should be visible in the program. Averages should be formatted till 2 places of decimals. Your program must use methods to distribute program functionality. Each method should ideally complete one function. The program must keep on repeatedly showing the menu till the user press x to exit. Users should always see counting beginning from 1, not 0 regardless of what data structure you use, e.g. 5 scores are listed from 1 to 5 instead of 0 to 4. Users should also be prompted to enter input from a starting value of 1, not 0. The programming logic should adjust index numbers as appropriate.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
