Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

please solve this python code using class attributes. Class Definitions Create a student-class which should have the following instance attributes: name and grades, and the

please solve this python code using class attributes.

image text in transcribed

image text in transcribed

Class Definitions Create a student-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 studits class holds a list of cradio 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 exam 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: Nake a choice: 2 Students are listed below: 1. Select a student: 1 Enter the grade info betow. Exan name: Midtory 1 Score: 90 Nidtern 1 grade (90) is added for ( rrip 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 Selow example output. Rake a choice: 3 Students are listed below: 1. Select a student: 1 Grade Stats for Enkan Max grade was in Midterm 1 with a score of 90 Average grade is 99.6 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) VIow exam report for a student Make a choice: 2 No student has been added yet

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions

Question

Describe how to train managers to coach employees. page 404

Answered: 1 week ago

Question

Discuss the steps in the development planning process. page 381

Answered: 1 week ago