A bank charges $10 per month plus the following
check fees for a commercial checking
account:
•
$.10 each for fewer than 20 checks
•
$.08 each for 20
-‐
39 checks
•
$.06 each for 40 checks or more
The bank also charges an extra $15 if the balance of the account falls below $400 (
before
any check fees are applie
d).
Write a complete C++ program that asks for the beginning balance and the number of
checks written. Compute and display the
new balance and the
bank’s service fees for the
month.
Sample Output
:
Input Validation: Do not accept a negative value for
the number of checks written or the
initial bank balance. If a negative value is given in either of those cases, then just exit the
program.
Notes
1.
Your program is not to contain any magic constants
.
2.
You can only use a sing
le
–
alternative if for decision
making in your solution
. You can use
more than one if, but only single
–
alternative.
2
3.
The banks
balance and fees must be displayed
to 2 decimal places.
Are you looking for a similar paper or any other quality academic essay? Then look no further. Our research paper writing service is what you require. Our team of experienced writers is on standby to deliver to you an original paper as per your specified instructions with zero plagiarism guaranteed. This is the perfect way you can prepare your own unique academic paper and score the grades you deserve.
Use the order calculator below and get started! Contact our live support team for any assistance or inquiry.
[order_calculator]