Question: PLease use Python ou must use Arrays and Functions to do this. If you don't, then you loose 25% portion of your grade. Mimir will

PLease use Python

ou must use Arrays and Functions to do this. If you don't, then you loose 25% portion of your grade. Mimir will grade for 75% of the grade and manual grading carries 25%

Here you will be writing a program to maintain the student database. Your program will maintain the student information such as names, Ids, and the exam1 score, exam2 score and exam3 score.

Here is the description of the project.

Write a program with 5 arrays.

Names

ID

Score1

Score2

Score3

Your program should display the following menu of choices to the user. It should perform the operations as suggested by the user and always come back to the menu and wait for the user to type in her/his choice.

Type P to populate the student information.

Type U to update student Information

Type D to display the student information.

Type C to calculate the Grade.

Type E to exit.

If the user types P Ask the user to enter the 4 student names, IDs , and score1, score2 and score 3 for each of the student. Return to the menu

If the user types D then: Ask the user to enter the ID of the student. Search for the student in the ID array and display student name, ID, score1, score2, score3. Return to the menu.

If the user types U then: Ask the user to enter the ID of the student. Search for the student in the ID array and display student name, ID, score1, score2, score3. Ask the user to enter the new scores for the student. Update the Score1, Score2, and Score3 arrays at that position.

If the user types C then Ask the user for the student ID. Find the student Id in the ID array. Calculate the average of the three scores for that student and display the grade of that student. The grade should be calculated based on the following criteria. If the average is between 90 and 100, then the grade is A. If the average is between 80 and 89, then the grade should be B. If the average is between 70 and 79, then grade should be C. If the average is between 70 and 69 then the grade should be D. If the average is below 60, then the grade is F. Return to the main menu

If the user types E. then: Terminate the main program.

If the user types any other option

Display the message Invalid Choice. Try again and go back and display the menu.

PS:

You program must keep displaying the menu until the user types the option E, to exit the program. For this, you can use, while loop.

For exact input and output messages and possible error messages, please refer to the test case scenario.

Mimir Requirement: The file name must be CS902FinalExam.py

Test Case1:

**** MENU OPTIONS **** Type P to populate the student information. Type U to update student Information Type D to display the student information. Type C to calculate the Grade. Type E to exit Please enter your choice: 'P' Please enter a student's name : 'John' Please enter the student's ID: 1 Please enter first score: 80 Please enter scond score: 89 Please enter third score: 90 Please enter a student's name : 'Maria' Please enter the student's ID: 2 Please enter first score: 99 Please enter scond score: 80 Please enter third score: 99 Please enter a student's name : 'Sammy' Please enter the student's ID: 3 Please enter first score: 70 Please enter scond score: 70 Please enter third score: 70 Please enter a student's name : 'Adam' Please enter the student's ID: 4 Please enter first score: 80 Please enter scond score: 80 Please enter third score: 85 **** MENU OPTIONS **** Type P to populate the student information. Type U to update student Information Type D to display the student information. Type C to calculate the Grade. Type E to exit Please enter your choice: 'D' Please enter the ID of the student: 1 The student name is: John ID is: 1 First score is: 80 Second score is: 89 Third score is: 90 **** MENU OPTIONS **** Type P to populate the student information. Type U to update student Information Type D to display the student information. Type C to calculate the Grade. Type E to exit Please enter your choice: 'C' Please enter the ID of the student: 1 The average is: 86.0 The grade is: B **** MENU OPTIONS **** Type P to populate the student information. Type U to update student Information Type D to display the student information. Type C to calculate the Grade. Type E to exit Please enter your choice: 'C' Please enter the ID of the student: 4 The average is: 81.0 The grade is: B **** MENU OPTIONS **** Type P to populate the student information. Type U to update student Information Type D to display the student information. Type C to calculate the Grade. Type E to exit Please enter your choice: 'C' Please enter the ID of the student: 1 The average is: 86.0 The grade is: B **** MENU OPTIONS **** Type P to populate the student information. Type U to update student Information Type D to display the student information. Type C to calculate the Grade. Type E to exit Please enter your choice: 'C' Please enter the ID of the student: 3 The average is: 70.0 The grade is: C **** MENU OPTIONS **** Type P to populate the student information. Type U to update student Information Type D to display the student information. Type C to calculate the Grade. Type E to exit Please enter your choice: 'C' Please enter the ID of the student: 2 The average is: 92.0 The grade is: A **** MENU OPTIONS **** Type P to populate the student information. Type U to update student Information Type D to display the student information. Type C to calculate the Grade. Type E to exit Please enter your choice: 'U' Please enter the ID of the student: 2 The student name is: Maria ID is: 2 First score is: 99 Second score is: 80 Third score is: 99 Please enter first score: 75 Please enter scond score: 75 Please enter third score: 75 **** MENU OPTIONS **** Type P to populate the student information. Type U to update student Information Type D to display the student information. Type C to calculate the Grade. Type E to exit Please enter your choice: 'C' Please enter the ID of the student: 2 The average is: 75.0 The grade is: C **** MENU OPTIONS **** Type P to populate the student information. Type U to update student Information Type D to display the student information. Type C to calculate the Grade. Type E to exit Please enter your choice: 'C' Please enter the ID of the student: 7 The ID is not found! **** MENU OPTIONS **** Type P to populate the student information. Type U to update student Information Type D to display the student information. Type C to calculate the Grade. Type E to exit Please enter your choice: 'U' Please enter the ID of the student: 6 The ID is not found! **** MENU OPTIONS **** Type P to populate the student information. Type U to update student Information Type D to display the student information. Type C to calculate the Grade. Type E to exit Please enter your choice: 'D' Please enter the ID of the student: 6 The ID is not found! **** MENU OPTIONS **** Type P to populate the student information. Type U to update student Information Type D to display the student information. Type C to calculate the Grade. Type E to exit Please enter your choice: 'C' Please enter the ID of the student: 2 The average is: 75.0 The grade is: C **** MENU OPTIONS **** Type P to populate the student information. Type U to update student Information Type D to display the student information. Type C to calculate the Grade. Type E to exit Please enter your choice: 'H' Invalid choice. Please try again! **** MENU OPTIONS **** Type P to populate the student information. Type U to update student Information Type D to display the student information. Type C to calculate the Grade. Type E to exit Please enter your choice: 'E' Thank you for using the program. Bye

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!