Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

please use python programing language. Thank you. Here you will be writing a program to maintain the student database. Your program will maintain the student

please use python programing language.

Thank you.

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

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

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

Accounting And Auditing Research And Databases Practitioner's Desk Reference

Authors: Thomas R. Weirich, Natalie Tatiana Churyk, Thomas C. Pearson

1st Edition

1118334426, 978-1118334423

More Books

Students also viewed these Databases questions

Question

b. Will new members be welcomed?

Answered: 1 week ago