0% found this document useful (0 votes)
32 views1 page

Function (Images, W, H) Load - Images (Filelist, Downscale - F) - Mid Assignment

The document describes a mid-semester assignment to create a program that stores and processes student marks for various computer science subjects. The program is meant to: 1) Read student mark data from an Excel file into a dictionary on startup and write it back on exit. 2) Display a menu to enter, view, delete, or get results for student marks. 3) Allow entering marks by student number, viewing all student marks and details, deleting a student, and getting aggregate results for all students or a single student.

Uploaded by

Rusini Siyara
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
32 views1 page

Function (Images, W, H) Load - Images (Filelist, Downscale - F) - Mid Assignment

The document describes a mid-semester assignment to create a program that stores and processes student marks for various computer science subjects. The program is meant to: 1) Read student mark data from an Excel file into a dictionary on startup and write it back on exit. 2) Display a menu to enter, view, delete, or get results for student marks. 3) Allow entering marks by student number, viewing all student marks and details, deleting a student, and getting aggregate results for all students or a single student.

Uploaded by

Rusini Siyara
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

Fundamentals of Programming – Mid-semester assignment

Assume that there is a computer training institute and in their diploma course they teach
following subjects: Python, SQL, HTML, JavaScript, ASP.Net and C#.
You have to write a program that process students’ marks of this course. Your program should
have following functionalities:
1. Program permanently store students’ marks in an Excel sheet with following 7
columns: StudentNo, Python, SQL, HTML, JavaScript, ASP.Net and C#. In StudentNo
column student numbers are stored (eg: S001, S002, S003 etc.). In other columns
marks for that subject is stored. In the computer memory this data is held in a
dictionary with lists (eg: StudentNo: 75, 80, 90, 68, 56, 50). Every time when you start
the program, if there is data in the Excel file it must read all the data into the
dictionary. Similarly when you exit the program it wants to write all the data in the
dictionary into the Excel sheet.
2. When you start the program it displays following menu
1. Enter Marks
2. Display Marks
3. Delete Marks
4. Display Result of a Given Student
5. Display Results of all the Students
6. Exit
3. When you select option 1 ‘ Enter Marks’ it allows you to enter student number and
marks for all the subjects of a student.
4. When you select option 2 ‘ Display Marks’ it displays numbers and marks of all the
students.
5. When you select option 3 ‘ Delete Marks’ it delete all the details of a given student.
6. When you select option 4 ‘ Display Result of a given student’ it displays student
number, marks and grade for each subject, total marks, average marks and final
result of a student. Grade is calculated as follows:
Marks Grade
From 70 to 100 A
From 50 to 70 B
From 30 to 50 C
From 0 to 30 D

Final result is either ‘PASS’ or ‘ FAIL’. If average marks is greater than or equals to 50
then ‘PASS’ otherwise ‘ FAIL’
7. When you select option 5 ‘ Display result of all the students’ it displays student
number, total marks, average marks and final result of all the students.
8. When you select option 6 ‘ Exit’ it writes all the data in the dictionary into the excel
sheet and exit the program.

You might also like