a- Write a class definition for Student containing the following instance variables and methods: b- Create an object of this class c- Call the method to calculate and set average_test d- Print average test self. name self. test1 self. test2 self. average_test A constructor to accept name, test1 and test2 as parameters and assign them to instant variables. A method to calculate and set averave_test (each test worth 50%) A method to get average_test

Programming Logic & Design Comprehensive
9th Edition
ISBN:9781337669405
Author:FARRELL
Publisher:FARRELL
Chapter11: More Object-oriented Programming Concepts
Section: Chapter Questions
Problem 1GZ
icon
Related questions
Question
a- Write a class definition for Student containing the following instance variables
and methods:
b- Create an object of this class
c- Call the method to calculate and set average_test
d- Print average test
self. name
self. test1
self. test2
self. average test
A constructor to accept name, test1 and test2 as parameters and assign them to instant
variables.
A method to calculate and set averave test (each test worth 50%)
A method to get average_test
Transcribed Image Text:a- Write a class definition for Student containing the following instance variables and methods: b- Create an object of this class c- Call the method to calculate and set average_test d- Print average test self. name self. test1 self. test2 self. average test A constructor to accept name, test1 and test2 as parameters and assign them to instant variables. A method to calculate and set averave test (each test worth 50%) A method to get average_test
Expert Solution
steps

Step by step

Solved in 3 steps with 1 images

Blurred answer
Knowledge Booster
Class
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
C++ Programming: From Problem Analysis to Program…
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning
EBK JAVA PROGRAMMING
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT
Microsoft Visual C#
Microsoft Visual C#
Computer Science
ISBN:
9781337102100
Author:
Joyce, Farrell.
Publisher:
Cengage Learning,