Assignment 582
Assignment 582
Assignment 582
1. add the details of a student to the system, including the student number, the
student name, and the unit mark
2. search for students based on the student number or student name and display
the details of the matching students. The name search must be case-
insensitive and must allow for a partial match, for example, the search key
"john" would be matched by "John Smith" and "Elton Johns"
3. display the names of the students with a given unit grade (HD, D, C, P and
N). Use Murdoch University's grade system to convert marks to grades.
4. delete a student's record from the system
5. quit: to quit the program
You should use a list to store the information about all students. In the list,
each list item is a dictionary containing one student record.
Question 2 (35%): Load student records from the file and saves them to the
file (Back to Beginning)
Revised your solution to Question 1 to add additional features: when the
program starts, it first loads the student records from the
file students.csv inside the current directory. In addition, the user can load
the student records from a CSV file and save the student records maintained
by the system to a Microsoft Excel CSV file. Correspondingly, two more
menu items should be added to the menu:
6. load student records from a CSV file. The program should prompt the user
to provide a file path. The student records from the file are added to those
student records already in the memory. Check for duplicates of student
records (ie, records with the same id): in case of duplicate, the one from the
file should be ignored.
7. save the student records in the current system to a CSV file. The program
should prompt the user to enter a file path. If the file exists, warn the user
and give the user the option of either changing the file name, overwriting the
file, or cancel the operation.
to increase the system efficiency, replace the list used to store the student
records with an ndarray from the NumPy module..
to display the grade distribution using a bar chart. The bar chart must have a
title and labels for both X-axis and Y-axis.
To incorporate the chart-displaying feature, add one more menu item to the
program menu:
Your assignment must be submitted in the form of a single zip archive file
to the LMS. No other format will be accepted. The zip file must be named
in the following format:
Assignment_<your first name><your last name>.zip
For example, the student, John Smith, would name his zip file
as Assignment_JohnSmith.zip
If you only include one folder containing a single program satisfying the
requirements of Question 3, you will be awarded a maximum of 20 marks,
even if the program also satisfies the requirements of the first two
questions.
The file Assignment.pdf