Implement a Student class. Each objcct of this class will represent a student in a particular...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
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 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
Expert Answer:
Answer rating: 100% (QA)
class Student def initself fnamelname studentnumber selffname fname selflname lname selfstudentnumbe... View the full answer
Related Book For
Statistics Informed Decisions Using Data
ISBN: 978-0134133539
5th edition
Authors: Michael Sullivan III
Posted Date:
Students also viewed these programming questions
-
The following data represent exam scores in a statistics class taught using traditional lecture and a class taught using a "flipped" classroom. The "flipped" classroom is one where the content is...
-
Exam scores of 40 students in a statistics class are shown. (a) Estimate the mean and standard deviation from the sample. (b) Assuming that the data are from a normal distribution, de ne bins by...
-
The students in my class have Exam 1 scores which are normally distributed with a mean of 75 and a standard deviation of 9. If a student is selected at random, a. What is the probability the student...
-
In Exercises approximate the definite integral using the Trapezoidal Rule and Simpson's Rule with n = 4. Compare these results with the approximation of the integral using a graphing utility. 3.1 J3...
-
Answer the following questions. a. Refer to the balance sheets for Westjet and Danier in Appendix II at the end of the textbook. Both balance sheets include Inventory. Explain how Inventory is unique...
-
Describe the molecular steps by which polycomb group complexes cause epigenetic gene silencing.
-
The bicycle is a simple machine. True or False
-
Garmen Technologies Inc. operates a small chain of specialty retail stores throughout the U.S. Southwest. The company markets technology-based consumer products both in its stores and over the...
-
The assets and liabilities of Thompson Computer Services at March 31, the end of the current year, and its revenue and expenses for the year follow. The common stock was $118,300 and the retained...
-
Tonys Precision Computer Centre is picking up in business, so he has decided to expand his bookkeeping system to a general journal/ledger system. The balances from June have been forwarded to the...
-
Read the following email and answer the questions in complete sentences.
-
33.C.2 Expansion Ltd is a well-known brand in the country looking forward to diversify its product portfolio by acquiring another firm in the same industry. Stagnant Ltd is another firm in the...
-
Data on the three models and selected costs follow. Year 1 Units produced and sold Red 6,000 Yellow 11,000 Green 21,000 Total 38,000 Sales price per unit $ 160 $ 130 $ 60 Direct materials cost per...
-
1. Electric potential is given by V=6x-8xy-8y+6yz - 4z Then magnitude of electric force acting on 2C point charge placed on origin will be :- (1) 2N (2) 6N (3) 8N (3) 8N (4) 20 N 2. Figure shows...
-
3. Consider Figure 1, Network Diagram. All duration estimates or estimated times are in days. Start A 15 D 9 G 8 B 17 12 H E 9 14 F 11 11 End
-
There was a "step by step assist" for this question in the resources and it not super unhelpful. For all the yellow, it is a fixed sheet and we can not use data analytics, so it must be solved with...
-
P and S file a federal consolidated tax return. P manufactures kitchen equipment and S is in the restaurant business. In 20Y5, P sells equipment with a cost of $100,000 to S for $150,000. Because the...
-
1) Predict the organicproduct formed when BzCl reacts with cyclohexanol. BzCl = benzoylchloride. 2) Provide the majororganic product of the reaction below. 3) Draw the structureof the product formed...
-
The Wall Street Journal regularly publishes an article entitled "The Count." In one article, The Count looked at 1000 randomly selected home runs in Major League Baseball. (a) Of the 1000 homeruns,...
-
When testing whether there is a linear relation between the response variable and the explanatory variables, we use an F-test. If the P-value indicates that we reject the null hypothesis, H0: 1 = 2...
-
Go to www.pearsonhighered.com/ sullivanstats to obtain the data file SullivanStatsSurveyII using the file format of your choice for the version of the text you are using. One question asked in this...
-
Because we cannot see any obvious difference between the ends of a bar magnet, could it be that like poles attract each other and unlike poles repel each other?
-
If you are constructing a parallel-plate capacitor, having air and paper as the dielectric medium between the plates, which dielectric material within the plates will make the capacitor act better?...
-
(a) Is the interaction between a charged object and an electrically neutral object always attractive? Why or why not? (b) In Figure 27.4, which type of magnetic pole is induced at the top of each...
Study smarter with the SolutionInn App