Question: can you solve this assignment by using class attributes ? i want to python code ,not java code, pleaseee. Class Definitions Create a stuocnt class

can you solve this assignment by using class attributes ? i want to python code ,not java code, pleaseee.

can you solve this assignment by using class attributes ? i want

to python code ,not java code, pleaseee. Class Definitions Create a stuocnt

Class Definitions Create a stuocnt class which should have the following instance attributes: name and grades, and the following class attribute: dept. The the class should have a method called PrintGradestats which should print for a student, the exam with the maximum grade and the average of the all grades. Details are shown in the sample output. grades attribute of the cuass holds a list of objects for a student. A Grade class should have the following instance attributes: score and examName. Details of the Program With this program, the user should be able to choose among the following options: 1) Create a student 2) Add an exall score for a student 3) View exam report for a student Nake a choice: 1 In the 1st option, creating a new student involves only entering the name of the student, as shown below: Make a choice: 1 Enter a student name: Student is added. 1) Create a student 2) Add an exaln score for a student 3) View exam report for a student In the 2nd option, the user should be requested first to select a student. After a student is selected, the exam grade and exam grade should be requested from the user. The details of this step are provided in the following output: Wake a cholioe? Students ane listed below: 1. Select a student: 1 Enter the grade info below. Exan nane: Mideitist y Score: p o Nidtenm 1 grade (90) is added for In the 3rd option, the user should be requefted first to select a student. Then, the grade stats should be displayed for the selected student. See the below example output. Rake a choice: 3 Students are listed below: 1. Select a student: 1 Grade Stats for Enkaa Max grade was in yidterm injith a soger of 90 Average grade is 90.8 In the 2nd and 3rd options, if there are no students, the program should provide an appropriate message as shown in the following output: 1) Create a student 2) Add an exan score for a student. 3) Vien exam repont for a studenit. Kake a cho1ce: 2 No student has been added yet

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!