In Python Form A. Create a sorted_grades application that can store up to 10 grades in order from highest to lowest in a list. The application should display a menu of options, which include “Enter a grade”, “Delete a grade”, “Display lowest grade”, “Display highest grade”, “Show grades”, and “Quit”. The list should initially contain all zeros (0). The algorithm for entering a grade is similar to: 1. Find the appropriate position for the grade so that all grades are still in order from highest to lowest. 2. Insert the grade 3. Make certain that length of list remains the same The algorithm for deleting a grade is similar to: 1. Find the element containing the grade to delete. 2. If list empty tell user they can’ delete and if grade doesn’t exist, inform user no grade has been found. 3. Use del function. Make certain the length doesn’t change and last element =0
In Python Form
A. Create a sorted_grades application that can store up to 10 grades in order from highest to lowest in a list. The application should display a menu of options, which include “Enter a grade”, “Delete a grade”, “Display lowest grade”, “Display highest grade”, “Show grades”, and “Quit”. The list should initially contain all zeros (0).
The
1. Find the appropriate position for the grade so that all grades are still in order from highest to lowest.
2. Insert the grade
3. Make certain that length of list remains the same
The algorithm for deleting a grade is similar to:
1. Find the element containing the grade to delete.
2. If list empty tell user they can’ delete and if grade doesn’t exist, inform user no grade has been found.
3. Use del function. Make certain the length doesn’t change and last element =0
Trending now
This is a popular solution!
Step by step
Solved in 2 steps with 1 images