+ >90 12. Create a console-based Java program using arrays for a teacher to maintain the test results of students: Instr

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
answerhappygod
Site Admin
Posts: 899604
Joined: Mon Aug 02, 2021 8:13 am

+ >90 12. Create a console-based Java program using arrays for a teacher to maintain the test results of students: Instr

Post by answerhappygod »

90 12 Create A Console Based Java Program Using Arrays For A Teacher To Maintain The Test Results Of Students Instr 1
90 12 Create A Console Based Java Program Using Arrays For A Teacher To Maintain The Test Results Of Students Instr 1 (77.75 KiB) Viewed 50 times
90 12 Create A Console Based Java Program Using Arrays For A Teacher To Maintain The Test Results Of Students Instr 2
90 12 Create A Console Based Java Program Using Arrays For A Teacher To Maintain The Test Results Of Students Instr 2 (66.58 KiB) Viewed 50 times
+ >90 12. Create a console-based Java program using arrays for a teacher to maintain the test results of students: Instructions: • Each candidate needs to sit for a quiz, a test and a presentation. • The teacher will use the formula below to calculate the final mark. Final Mark = (quiz * 30%) + (test * 30%) + (presentation* 40%) • For the students to pass, they must have at least 70 marks or above. • Table 1 below shows the result status. Final Mark Result Status Excellent 70-90 Pass Table 1 50-69 Probation <50 Fail There is only maximum 15 candidates. • Only the teacher (the admin user) will operate the program, and the admin user does not need to save the marks in any permanent storage. About the program: 1. The program must have at least three arrays, i.e. • an array to store the three marks for a maximum of 15 candidates an array to keep all the 15 candidates' name • The last array to store all the three assessments' names. 2. The program needs to support at least four operations options, i.e., Add new results, modify a candidate's marks, display all results for the session, and exit the program 3. The program will start with the main menu with four operations options. The admin user will select one of the options to continue. Once the user completes the desired operation, the program must go back to the main menu and allow the user to select another operation. The whole process will repeat until the user chooses to exit the program. 4. The program must validate all values enters by the user and allow the user to re-enter any invalid input. 5. All marks are in the range of 0-100. 6. The program must have at least the 5 methods as below: • A method to display the main menu options • A method to add new result • A method to modify candidate's results • A method to dislay all the results • The public static void main method
7. Add new result operation: The program will check if it can still take any new results, i.e., the marks array has not yet full. Otherwise, it will display a message and exit the operation. If the array is not full, the program will prompt the admin user to enter the candidate's name and the 3 assessments' marks. Once all the input has been validated, the program will calculate and display the final total mark and result status on the screen. And store the information in the respective arrays. 8. Modify results operation: The program will check if the marks array has data. If it is empty, the program will display an error message. If the array is not empty, the program will prompt the user to enter a candidate's name. Then, it will search the name from the name array. The program will display the details if the name is found, including the total final mark and result status on the screen. The admin user can change all the marks except the final mark and result status. After the validation, the program will re-calculate and display the new total mark and the result status. Finally, the program will re- write all the new marks into the mark array and return to the main menu method. If the name cannot be found, the program will display an error message and exit the operation. 9. The program will check if the marks array is not empty. It will display an error message if the marks array is empty. Otherwise, the program will retrieve all data from the three arrays and display them in the format shown below: Results on DD/MM/yyyy Name Quiz Test Presentation Final Mark Result status XX XX.X X YY ZZ XX X : : Average XX XX.X XX XX XX XX XX XX.X : : XX : XX
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply