Function (Images, W, H) Load - Images (Filelist, Downscale - F) - Mid Assignment
Function (Images, W, H) Load - Images (Filelist, Downscale - F) - Mid 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.