Kristina D.

asked • 10/28/20

Create Gradebook Simulator in Python

I need help writing a program that allows a user to do one of five things at a time:

1. Add students to database.

• There should be no duplicate students. If student already exists, do not add the data again; print a message informing student already exists in database.

• Enter name, age, and address.

2. Search for students in the database by name.

• User enters student name to search

• Show student name, followed by age, address, and all grades tabbed over (next line).

3. Enter grade.

• User enters an assignment (assume that the assignment already exists)

• User enters a student name (assume that student already exists in database)

• User enters a grade (It’s up to you to have grades as string or integer or float)

• The student’s grade is assigned to that assignment.

4. Add assignment.

• User enters the name of the assignment to be added

• Once an assignment is added, it exists for all students.

• The default grade is a ‘-’ character.

5. Delete assignment.

• User enters an assignment to be deleted.

• The assignment is deleted for all students.

6. Quit.

• Quits the program.


Restrictions:

1. You must use a list or dictionary or both of those.

2. You must use an infinite loop.

3. You must use a break statement.

1 Expert Answer

By:

Patrick B. answered • 10/30/20

Tutor
4.7 (31)

Math and computer tutor/teacher

Still looking for help? Get the right answer, fast.

Ask a question for free

Get a free answer to a quick problem.
Most questions answered within 4 hours.

OR

Find an Online Tutor Now

Choose an expert and meet online. No packages or subscriptions, pay only for the time you need.