Question: Implement a Student class. Each objcct of this class will represent a student in a particular course. Data members should include the student's ID

Implement a Student class. Each objcct of this class will represent a

  

Implement a Student class. Each objcct of this class will represent a student in a particular course. Data members should include the student's ID number, first name, last name, and four exam scores. Methods should include a constructor, access functions, inputStudentInfo function, displayStudentInfo function and computeAvgScore function In main(), create an objects of this class and use it to enter values for its data members from the keyboard. You may ask the user to enter the number of students in the class. Use a loop to enter data. Enter number of studets: 3 Enter student ID: 12e1 Enter first nane: Sue Enter last name: Andy Enter score 1 of 4: 79 Enter score 2 of 4: 81 Enter score 3 of 4: 77 Enter score 4 of 4: 65 Enter student ID: 1588 Enter first name: Jhon Enter last name: Dan Enter score 1 of 4: 68 Enter score 2 of 4: 60 Enter score 3 of 4: 76 Enter score 4 of 4: 83 Enter student ID: 1888 Enter first name: Jiff Enter last name: Hech Enter score 1 of 4: 89 Enter score 2 of 4: 91 Enter score 3 of 41 84 Enter score 4 of 4: 77 Students Details: Name Exams Scores Average Score 1201 1588 1888 Sue Andy Jhon Dan 79 81 77 65 75.5 68 60 76 83 71.75 Jiff Mech 09 91 84 77 85.25

Step by Step Solution

3.39 Rating (149 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

class Student def initself fnamelname studentnumber selffname fname selflname lname selfstudentnumbe... View full answer

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 Programming Questions!