Question: : Write the MNSStudent and EEEStudent class with the required methods to give the following outputs as shown [Designed methods needed to be worked for

: 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}" return s

# 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(s1) print('====================================') s2 = EEEStudent("Mike", 32, 21321168) s2.addCourses("CSE110", "EEE201", "EEE480", "EEE449") print('====================================') s2.showTuitionFee() print('====================================') print(s2)

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']

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!