0% found this document useful (0 votes)
7 views

python_project

The document outlines the design and functionality of a Python-based Student Management System that manages student data and generates reports. It includes user input for student and subject details, a menu for viewing records and calculating statistics, and functions for averaging grades, finding max/min marks, and saving results to a file. The system is structured to handle errors for missing or malformed data and provides a comprehensive report on student performance.

Uploaded by

Yosra Yaseen
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
7 views

python_project

The document outlines the design and functionality of a Python-based Student Management System that manages student data and generates reports. It includes user input for student and subject details, a menu for viewing records and calculating statistics, and functions for averaging grades, finding max/min marks, and saving results to a file. The system is structured to handle errors for missing or malformed data and provides a comprehensive report on student performance.

Uploaded by

Yosra Yaseen
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 4

Student Management System

Write a Python system that manages student data and generates reports.
Input Details:
 The program asks the user to input the number of students and subjects, their names,
and marks for each subject as following:
3

Enter Student Numbers: 3 Enter Student Name(1): Ahmad


1
Enter Mark for C#: 70

Enter Mark for Python: 80


Enter Subject Numbers: 2

2 Enter Subject(1): C#
4
Enter Subject(2): Python
Enter Student Name(2): Sami 3
Students
Mark for C#: 60
Depends
Mark for Python: 71 on input

Enter Student Name(1): Khaled

Mark for C#: 52

Mark for Python: 37

After entering all the details, this menu will be displayed:

1- View All Student Records.(Including Name,Subject and Mark)


2- Avg for each student.
3- Avg for overall.
6
4- Max and Min Mark for each student.
5- Max and Min Mark for overall
6- The count of pass and fail students depends on their average.
7- Save Result in file(Including Name,Subject and Mark)
8- Exit
Requirements:
1. A list of dictionaries, where each dictionary represents a student with keys 'name', 'subject', and
'grade'.
2. The name of the file to save the details.

Define Functions:
1- show_menu(To View the menu). To show the menu:

1. View All Student Records.(Including Name,Subject and Mark)


2. Avg for each student.
3. Avg for overall.
4. Max and Min Mark for each student.
5. Max and Min Mark for overall
6. The count of pass and fail students depends on their average.
7. Save Result in file(Including Name,Subject and Mark)
8. Exit

2- show_student_details. (To View All Student Records Name,Subject and Mark). As following:

Student(1):
Student Name(1): Ahmad

Mark for C#: 70

Mark for Python: 80

Student(2):
Student Name(2): Sami

Mark for C#: 60

Mark for Python: 71

Student(3):
Student Name(3): Khaled

Mark for C#: 52

Mark for Python: 37


3. calculate_avg (Returns the average grade of student).
Student(1): Ahmad

Avg: 75

Student(2): Sami

Avg: 65.5

Student(3): Khaled

Avg: 44.5

4. calculate_avg _all(Returns the average grade of all students).


Avg for all students: 61.66

5. calculate_max (Returns the max grade of each student).


Student Name(1): Ahmad

Max Grade: 80 (Python)

Student Name(2): Sami

Max Grade: 71 (Python)

Student Name(3): Khaled

Max Grade: 52 (C#)

6. calculate_max _all(Returns the max grade of all students).


Max Grade is belong for student Ahmad : 80 (Python)
7. calculate_min (Returns the min grade of each student).
Student Name(1): Ahmad

Max Grade: 70 (C#)

Student Name(2): Sami

Max Grade: 60 (C#)

Student Name(1): Khaled

Max Grade: 37 (Python)

8. calculate_min _all(Returns the min grade of all students).


Min Grade is belong for student Khaled : 37 (Python)

9. calculate_pass (Return count of pass students depends on their average).


Count of pass: 2
10. calculate_fail (Return count of fail students depends on their average).
Count of fail: 1
11. Save_to_file( Saves the report to a file) as following:
Student Count: 3
Subjects: C#,Python

Student Name(1): Ahmad

Mark for C#: 70

Mark for Python: 80

Avg: 75

Student Name(2): Sami

Mark for C#: 60

Mark for Python: 71

Avg: 65.5

Student Name(3): Khaled

Mark for C#: 52

Mark for Python: 37

Avg: 44.5

Avg for all students: 61.66


Max Grade for C#: 70 (Ahmad)
Max Grade for Python: 80 (Ahmad)
Min Grade for C#: 52 (Khaled)
Min Grade for Python: 37 (Khaled)

12.main()
 Gets student details and calculates statistics.

 Displays the menu and handles user input to select the desired action.

NOTES: Handle errors for missing or malformed data.

You might also like