Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Python 3.9 version. I only need help with the rounded ones, thanks. A) Create a class Individual that has 3 attributes: id, full name and
Python 3.9 version. I only need help with the rounded ones, thanks.
A) Create a class Individual that has 3 attributes: id, full name and birth year. (3 points) B) Write 2 methods for this class with the following specifications; i) A constructor for the class, which initializes the attributes. [5 points] il) A method, which displays id, full name and age. (2 points) Ceate another class Student that inherits from class Individual, with its own attribute dictionary Grades, where this dictionary will have course code as a key CE364', 'ENGR151' etc.) and total grade as a value for these courses. [10 points) Ex: self.Grades = {"CE270':71, 'CS159': 63.8, 'ENGR151:95.1, 'CE364': 100) > D) Wr2 methods for class Student with the following specifications; nserts/Updates its attribute Grades by taking a course code and total grade. (5 points) ii) Returns a dictionary with course code as a key and letter grade as a value by checking at attribute Grades' keys and values, with the following rules: 88 or above: A, 79 or above B, 65 or above C, below 65 F. [10 points) E) Create another class Teacher that inherits from class Individual, with its own attribute Salary. (5 points) F) Write a method for class Teacher with the following specifications; Takes a parameter increase amount and sets the new salary of the Teacher's instance by the following formula; New Salary = Salary (1 + Increase Amount/100) (10 points) G) Pate an instance of class Individual by asking to the user its attributes and call its method you wrote in Part B) mi) to display its information. [5 points] H) Create an instance of class Student by using your student id, name and your birth year. [5 points)
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started