Thursday 18 June 2020

Group A Python program to store marks scored in subject “Fundamental of Data Structure” by N students in the class.


Problem Statement:  

Write a Python program to store marks scored in subject “Fundamental of Data Structure” by N students in the class. Write functions to compute following: 

a) The average score of class 

b) Highest score and lowest score of class 

c) Count of students who were absent for the test 

d) Display mark with highest frequency 

 

Hardware Requirement:

      Processor: Intel(R) Core(TM)2 Duo CPU  E7500 @ 2.93GHz

      Memory: 2.00 GB

      Operating System: 64-bit Open source


Software Requirement:

     Programming tool like PyCharm with Python 3.X.X Interpreter 

 

 

Source Program:  







Output:

GroupA Assignment No 02
Menu Driven Program For FDS Test of 30 Marks Analysis:
================== ****** ==============================
The Students gets the marks in FDS Test out of 30M are as follows...
['NA', 12, 22, 20, 23, 24, 25, 'AB', 25, 21, 25, 'AB', 22, 'AB', 25, 28]
>>> mainMenu()
1.The average score of class SEA
2.Highest score and lowest score of class
3.Count of Students who were absent for the test
4.Display mark with highest frequency
5.Exit
Enter your choice::1
1.The average score of class SEA:
Total Strength of Class SE A is:: 16
The Average Score of Class is:: 22.666666666666668
---------- ******* --------------------------------

1.The average score of class SEA
2.Highest score and lowest score of class
3.Count of Students who were absent for the test
4.Display mark with highest frequency
5.Exit
Enter your choice::2
2.Highest score and lowest score of class
The Highest Marks in FDS Test is: 28
The Lowest Marks in FDS Test is: 12
---------- ******* --------------------------------

1.The average score of class SEA
2.Highest score and lowest score of class
3.Count of Students who were absent for the test
4.Display mark with highest frequency
5.Exit
Enter your choice::3
3.Count of Students who were absent for the test

The Students gets the marks in FDS Test out of 30M are as follows...
['NA', 12, 22, 20, 23, 24, 25, 'AB', 25, 21, 25, 'AB', 22, 'AB', 25, 28]

Count of Students who were Absent for the FDS Test is: 3
---------- ******* --------------------------------

1.The average score of class SEA
2.Highest score and lowest score of class
3.Count of Students who were absent for the test
4.Display mark with highest frequency
5.Exit
Enter your choice::4
.Display mark with highest frequency
The marks in FDS Test are as Follows...
['NA', 12, 22, 20, 23, 24, 25, 'AB', 25, 21, 25, 'AB', 22, 'AB', 25, 28]
Count of each marks from 0 to 30 are as follows..
[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 2, 1, 1, 4, 0, 0, 1, 0, 0]
Highest frequency of is: 4
Marks of highest frequency is: 25
---------- ******* --------------------------------

Note: In Enter your choice 4 if you run this code you will not get the output as above you will get error please correct this error and execute once again.

data structures and algorithms Web Developer

6 comments: