Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

In the main code: #main code pl = Person('ali, 076344343. 2000344545) pl.display print(p1) cl = Customer('ahmad', '076344322, 2002335566', '111111. 2000) c2 = Customer('sara'. 075366322, 2004335577.222222.

image text in transcribed
In the main code: #main code pl = Person('ali", 076344343". "2000344545) pl.display print(p1) cl = Customer('ahmad', '076344322", 2002335566', '111111. 2000) c2 = Customer('sara'. 075366322", 2004335577.222222". 3500) c2 += 2500 # add deposit 2500 to the accountValue for object c2 cl -= 500 # subtract/withdrow 500 from the accountValue of object cl cl.display c2.displayo banki = Bank(International JJ Bank', 'Irbid, Jordan, 200200.0 bank1.display bankl = bankl + cl #add cl to the list of customers bankl = bankl + c2 # add c2 to the list of customers bank1.displayo Output: ali. 076344343, 2000344545 ali, 076344343, 2000344545 (ahmad, 076344322, 2002335566, 111111. 1500) (sara, 075366322, 2004335577, 222222, 6000) International JJ Bank Irbid, Jordan, 200200.0 International JJ Bank. Irbid, Jordan, 200200. ((ahmad, 076344322, 2002335566. 111111. 1500). (sara, 075366322.2004335577.222222, 6000)] Assignment Marking Scheme: Program correctness and completeness (80%) Program output format, clarity, and accuracy (2096) Choice of significant names for identifiers (5%) Comments - description of variables, constants, and description of the key steps of the program (596)

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

Object Oriented Databases Prentice Hall International Series In Computer Science

Authors: John G. Hughes

1st Edition

0136298745, 978-0136298748

More Books

Students also viewed these Databases questions

Question

Describe the accounting and amortization of prior service costs.

Answered: 1 week ago