In this assignment you are required to design and implement a mark analyzer information system. This mark analyzer system will read data of a group of students. The data includes students names, and marks of three subjects for each student. This data basically is stored in a text file created by a text editor (notepad etc.). Your system should display a simple text-based menu of options and operations to be applied to the data. Upon selection of any of these operations, the results are displayed in a proper format.
The grading scheme used in this system is:
Mark Grade
----------- --------
90 – 100 A
80 – 89 B
70 – 79 C
60 – 69 D
0 – 59 F
The Mark Analyzer System should be able to read students data from a data file (student.txt). The format of the data file is shown below.
Note: You must use exactly the same file format as given and the same filename (student.txt), though the data and the number of students can be different.
i dont no where to start and it goes like this ..
When the user presses 1, the
John 50 60 78
Ahmad 65 59 89
Siti 48 32 84
Lim 66 81 50
...
...
...
The system should allow the user to view all information, generate the statistics by subject and generate the overall statistics. When you run the program, the first menu to be displayed is:
Main Menu
==============================================
1. View all information
2. Statistics By Subject
3. Overall Statistics
4. Exit
==============================================
Please input your choice:
system should display all information as shown below:
CP1 Mathematics English Overall
------------- ------------- ------------- -------------
Name Mark Grade Mark Grade Mark Grade Average Grade
===== ==== ===== ==== ===== ==== ===== ======= =====
John 50 F 60 D 78 C 62.67 D
Ahmad 95 A 59 F 89 B 81.00 B
Siti 48 F 32 F 68 D 49.33 F
...
...
...
Average 71.52 65.59 78.04 69.81
Press any key to go back to the previous menu ...
If the user selects 2 from Main Menu, the following sub menu will be displayed:
Statistics by Subject
===============================================
1. CP1
2. Mathematics
3. English
4. Exit
===============================================
Please input your choice:
Upon choosing item 1 to 3, the following sub menu will be displayed:
Statistics of CP1
===============================================
1. Subject Average
2. % of students below the subject average
3. % of students above the subject average
4. % of students who passed
5. % of students who failed
6. Display list of students based on grade
7. Exit
===============================================
Please input your choice:
Here are examples of two of the above operations:
If user chooses 1, the output will be:
Average for CP1: 75.06
Press any key to go back to the previous menu ...
If user chooses 6, the user will be prompted to input a grade:
Please enter a grade (A, B, C, D, E):
Supposed the user input grade ‘B’, all the names of student who obtained grade ‘B’ for this subject will be displayed.
Students who obtained grade ‘B’ for CP1:
Alan
Suraya
Mary
Press any key to go back to the previous menu ...
When user selects 3 from the Main Menu, the sub menu for Overall Statistics will be displayed:
Overall Statistics
===============================================
1. Overall Average
2. % of students below overall average
3. % of students above overall average
4. % of students who passed
5. % of students who failed
6. Display list of students based on grade
7. Exit
===============================================
Please input your choice: