Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Please solve this in 30 min in python3 . Thanks. Write the MNSStudent and EEEStudent class with the required methods to give the following outputs

Please solve this in 30 min in python3 . Thanks.

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'] 400 Level: ['EEE480', 'EEE449']

image text in transcribed

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 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.show Tuition Fee() print('==; ====') print(s1) print('=; ===') S2 = EEEStudent("Mike", 32, 21321168) s2.addCourses("CSE110", "EEE201", "EEE480", "EEE449") print('=== ====') s2.show Tuition Fee() print('===== print(s2) =====

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

Recommended Textbook for

DATABASE Administrator Make A Difference

Authors: Mohciine Elmourabit

1st Edition

B0CGM7XG75, 978-1722657802

More Books

Students also viewed these Databases questions