Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Solve it with PYTHON only. Write the MNSStudent and EEEStudent class with the required methods to give the following outputs as shown [Designed methods needed
Solve it with PYTHON only. Write the MNSStudent and EEEStudent class with the required methods to give the following outputs as shown [Designed methods needed to be worked for any number of parameters. The course fee is 18900. ] class Student: def __init__(self, name, credit): self.name = name self.credit = credit def _str_(self): s = F"Name: {self.name} Credit completed: {self.credit}" returns # Write your codes here. # Do not change the following lines of code. s1 = MNSStudent("David", 56, 21336007) s1.addCourses ("PHY201", "PHY112", "PHY270", "MAT110","CSE330") print('============ ===') s1. showTuitionFee() print('==== :) print(51) print('========== ") s2 = EEEStudent("Mike", 32, 21321168) $2.addCourses ("CSE110", "EEE 201", "EEE480", "EEE449") print('======== ===') s2. showTuitionFee() print('========= ===============') print(2) OUTPUT: ===== David, your tuition fee is 94500 ======= Name: David Credit completed: 56 ID: 21336007 Course Details: 100 Level: ['PHY112', 'MAT110'] 200 Level: ['PHY201', "PHY270'] 300 Level: ['CSE330'] ======== ================================ Mike, your tuition fee is 75600 Name: Mike Credit completed: 32 ID: 21321168 Course Details: 100 Level: ['CSE110'] 200 Level: ['EEE201'] 400 Level: ['EEE480', 'EEE449']
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