Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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 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

Step: 1

class Student def initself fnamelname studentnumber selffname fname selflname lname selfstudentnumbe... 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

Recommended Textbook for

Statistics Informed Decisions Using Data

Authors: Michael Sullivan III

5th Edition

978-0134135373, 134133536, 134135377, 978-0134133539

Students also viewed these Programming questions