Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Q1. Checking account modeling (30%). Assume that a bank maintains only a checking account for each customer. The check account provides cheque book facility without

image text in transcribed

Q1. Checking account modeling (30%). Assume that a bank maintains only a checking account for each customer. The check account provides cheque book facility without interest. The costumers are allowed to withdraw an amount of money each time. The check account holders should also maintain a minimum balance level and if the balance falls below this level, a service charge is imposed. Create a Blue) project with a class chk that stores customer name, account number, balance, minimum balance level, and under limit charge. Create necessary constructor and member functions to achieve the following tasks: Constructor with one parameter to set account number. deposit(float m): Accept deposit from a customer and update the balance. The argument m is the amount of money to be deposited. withdraw(float m): Withdraw money according to the user request o In this function, check if this withdraw is allowed according to the available balance and apply a service fee if the balance is lower than a limit when applying a withdraw. o Update the balance Display the balance Accessors and mutators for each of the member variables

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

More Books

Students also viewed these Databases questions

Question

What are the functions of dreamspg18

Answered: 1 week ago

Question

3. Identify cultural universals in nonverbal communication.

Answered: 1 week ago

Question

2. Discuss the types of messages that are communicated nonverbally.

Answered: 1 week ago