Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Prograning python CS210 (Fall 2020) - Assignment 1 ning Python programming language, Suplement the following comes represented in the diagrams with their mouth Pers umet
Prograning python
CS210 (Fall 2020) - Assignment 1 ning Python programming language, Suplement the following comes represented in the diagrams with their mouth Pers umet testing -it - Imam, testing, din playth void No ACI Valu: taal initiattelstring, idetring costing accountValue.at display vid string Hank and name address: Address anchorini Customers list of Customer ini Tantalaring, hunt) display vuid string Note: Customer is a class of Pron There is a compunition relation between is class lank and the class Castamer The programu should run with conectly and provides the cutput below based on the following incode In the main eudet in code pl Personali 070341345.200344545) pl display peintip) el Customer almal. 176344122.22705566, 11111121I) 2. Customer car, 075566327, 2014535577.222222.50 22.00 addeposit 2500 to the accountValue for hele 300 benict withdrew 500 from the accent Value of object! cl display) 2.display) hank t = funkc'international Him totul. Sundan. 803060), ED hank I display hanki hankl claddel to the tht of customers hanki hanki+22 to the list of some bank display Output: ali 076344313, 2000344545 w 07644443,20344545 alma, 076314322.2012335566, 111111. 1500 (sura 075566322.2004335577, 322222.COM International Bank, Ithi.200200.11 International Bank. Irth Jun 2x120x1. Lahad, 076714322. 20023355614 111111, 1500 (san. 07536322, 2004335577.229922. COX Assignment Marking Scheme: Program correctness and completeness (0) Program output format clarity, and accuracy (20%) Choice of significant names for identifiers (5%) Comments - description of variables, constants and description of the key steps of the program (5) CS210 (Fall 2020) - Assignment 1 Using Python programming language, implement the following classes represented in the diagrams with their relations: Person + name: string +tel: string +id: int +init(n:name, tel:string, id:int) +displayO: void str():string Customer + accountNo: string + accountValue: float +init(n:name, tel:string, id:string, accountNo:string, accountValue:float) +displayO: void +str(:string Bank +bank_name: string +address: Address +branch_no: int +Customers: list of Customers +init(n:name, add:string, bn:int) +displayO: void +str():string Note that: Customer is a subclass of Person There is a composition relation between the class Bank and the class Customer The program should run with correctly and provides the output below based on the following main code: In the main code: #main code pl = Personali', '076344343', 2000344545) pl.display print(pl) cl=Customer('ahmad', 076344322', '2002335566, '11111T, 2000) c2 = Customer('sara', 075366322, 2004335577, 222222', 3500) c2 += 2500 #add/deposit 2500 to the account Value for object c2 cl = 500 # subtract/withdrow 500 from the accountValue of object cl cl.display c2.display banki = Bank("International JJ Bank', 'Irbid, Jordan', 200200, 1) bank1.display bankl = bankl + cl #add cl to the list of customers bankl = bankl + c2 # add c2 to the list of customers bankl display Output: ali, 076344343, 2000344545 ali, 076344343, 2000344545 (ahmad, 076344322, 2002335566, 111111, 1500) (sara, 075366322, 2004335577, 222222, 6000) International JJ Bank, Irbid, Jordan, 200200, 11 International JJ Bank, Irbid, Jordan, 200200, (ahmad, 076344322, 2002335566, 111111, 1500), (sara, 075366322, 2004335577.222222, 6000)]
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