Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

: 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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions

Question

Find an equation of the line L. y A 2 (2, 1) (0,0) -2 -1 2

Answered: 1 week ago

Question

600 lb 20 0.5 ft 30 30 5 ft

Answered: 1 week ago

Question

2. Outline the business case for a diverse workforce.

Answered: 1 week ago