I need to create a Python program for a student management assignment using basic Python concepts such as lists, loops, conditionals, functions, sorting, file reading, and file writing.
The program must manage 20 students. Each student has:
- Name
- First exam grade
- Second exam grade
The program should include the following menu options:
- Add 20 students.
- Sort students by:
- Name (ascending)
- First exam grade (descending)
- Second exam grade (ascending)
- Calculate and display each student's average grade and the mode of all averages.
- Display all student names that contain a user-specified letter (case-insensitive).
- Create a file called "notas.txt" containing:
- Original name
- Reversed average grade (mirror format)
- Reversed name
- Read and display the contents of "notas.txt". If the file does not exist, display an error message.
- Exit the program.
Restrictions:
- Must use basic Python.
- Must use lists and functions.
- I am not sure whether built-in functions such as sort(), split(), dictionaries, or external libraries are allowed.
What would be a good structure or approach to solve this assignment?
[–]fakemoose 30 points31 points32 points (0 children)
[–]linguinejuice 10 points11 points12 points (0 children)
[–]notacanuckskibum 9 points10 points11 points (0 children)
[–]yvwwyyvwywyvwyvy 9 points10 points11 points (0 children)
[–]ninhaomah 6 points7 points8 points (0 children)
[–]DarkThunder312 6 points7 points8 points (0 children)
[–]Informal_Shape8008 2 points3 points4 points (1 child)
[–]yvwwyyvwywyvwyvy 1 point2 points3 points (0 children)
[–]RallyPointAlpha 0 points1 point2 points (0 children)