Then write two instances of this class with different studentID, different name, and different

Programming Logic & Design Comprehensive
9th Edition
ISBN:9781337669405
Author:FARRELL
Publisher:FARRELL
Chapter10: Object-oriented Programming
Section: Chapter Questions
Problem 14RQ
icon
Related questions
Question
Write a class for describing student. It includes three attributes: studentID, name and score, in
which score should be a list to contain scores of several courses. This class also includes a method
named as get ID for returning studentID after checking it is an integer value, a method named as
get_name for returning student's name with uppercase letters, a method named as get max_score
for returning the max score of this student, a method named as get mean score for returning the
mean score of this student.
Then write two instances of this class with different studentID, different name, and different
number of scores, print studentID, name, scores, max score and mean score for each student.
Transcribed Image Text:Write a class for describing student. It includes three attributes: studentID, name and score, in which score should be a list to contain scores of several courses. This class also includes a method named as get ID for returning studentID after checking it is an integer value, a method named as get_name for returning student's name with uppercase letters, a method named as get max_score for returning the max score of this student, a method named as get mean score for returning the mean score of this student. Then write two instances of this class with different studentID, different name, and different number of scores, print studentID, name, scores, max score and mean score for each student.
Expert Solution
steps

Step by step

Solved in 2 steps with 1 images

Blurred answer
Knowledge Booster
Math class and its different methods
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Programming Logic & Design Comprehensive
Programming Logic & Design Comprehensive
Computer Science
ISBN:
9781337669405
Author:
FARRELL
Publisher:
Cengage
Microsoft Visual C#
Microsoft Visual C#
Computer Science
ISBN:
9781337102100
Author:
Joyce, Farrell.
Publisher:
Cengage Learning,
EBK JAVA PROGRAMMING
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT