Answered step by step
Verified Expert Solution
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
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
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