Answered step by step
Verified Expert Solution
Link Copied!
Question
1 Approved Answer

Design an application that declares two CheckingAccount objects and sets and displays their values. Write the pseudocode that defines the class from the class diagram

Design an application that declares two CheckingAccount objects and sets and displays their values. Write the pseudocode that defines the class from the class diagram & previous information provided by filling in the blanks.

Pseudocode:

start

Declarations

CheckingAccount account1

CheckingAccount account2

account1 = getAccountData()

account2 = getAccountNum()

display(account1)

----------(----------)

stop

CheckingAccount get---------- ()

Declarations

---------- account

string name

numaccountNum

num ----------

output “Enter your name ”

input name

output “Enter account number ”

input number

output “Enter balance ”

input balance

account.setName(name)

-------.---------(------)

------.------ (------)

return account

void display(------------)

output “-------- ----- -----”

------.------()

return

Class Diagram

CheckingAccount

-accountNum: num

-name: string

-balance: num

+setAccountNum(number : num) : void

+setName(name : string) : void

+setBalance(bal : num) : void

+displayValues() : void

Step by Step Solution

3.44 Rating (157 Votes )

There are 3 Steps involved in it

Step: 1

start Declarations CheckingAccount ... 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_2

Step: 3

blur-text-image_3

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

Programming Logic & Design Comprehensive

Authors: Joyce Farrell

9th edition

978-1337102070

More Books

Students explore these related Programming questions