14. Bank Charges 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-59 checks $.04 each for 60 or more checks The bank also charges an extra $15 if the balance of the account falls below $400 (before any check fees are applied). Write a program that asks for the beginning bal- ance and the number of checks written. Compute and display the bank's service fees for the month.

Microsoft Visual C#
7th Edition
ISBN:9781337102100
Author:Joyce, Farrell.
Publisher:Joyce, Farrell.
Chapter4: Making Decisions
Section: Chapter Questions
Problem 5E: a. Write a program named CheckMonth that prompts a user to enter a birth month. If the value entered...
icon
Related questions
Question

C++

Also prompt the user for the total amount deposited. Do not accept a value less than zero; display an error message and exit the program if this occurs.

If the number of checks entered is greater than zero, prompt the user for the total amount of the checks written. Do not accept a value of zero or less; provide an error message and exit if the user enters invalid data.

We will also bring this problem into the 21st century and consider ATM transactions as well. Prompt the user for the number of ATM transactions. Like number of checks written, do not accept a negative number here. If the number of transactions is greater than zero, also prompt for the total amount withdrawn. Do not accept zero or less for that total amount. The first five ATM transactions are free; charge a dime for each subsequent transaction.

If the balance after charges and withdrawals are applied but before the deposit is credited is less than the minimum balance of 400.00, charge them the low balance fee. Yes, banks actually do it that way. If that balance is less than zero display an "overdrawn" notice and charge them an additional "overdrawn fee" of $20. 

Show your results as a vertical table, using appropriate formatting. All dollar amounts should be shown with exactly two digits after the decimal, and aligned by the decimal point in the table. Counts (like the number of checks written) should be integers. Include lines for the initial balance, the monthly charge, the number of checks written (if not zero) and the check charge and the checks written amount, the number of ATM transactions (if not zero) and the ATM charge and amount withdrawn, the final balance at this point, the low balance fee (if applied), the overdrawn fee (if applied), the amount deposited, and the final balance. 

For your screen shot, enter an initial balance of 365.50, a deposit total of of 208.56, 22 checks written for a total of $410.55, and 7 ATM transactions for a total of $240. But in your testing make sure you first enter invalid values at every opportunity to demonstrate your program's ability to catch those errors.

14. Bank Charges
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-59 checks
$.04 each for 60 or more checks
The bank also charges an extra $15 if the balance of the account falls below $400
(before any check fees are applied). Write a program that asks for the beginning bal-
ance and the number of checks written. Compute and display the bank's service fees
for the month.
Transcribed Image Text:14. Bank Charges 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-59 checks $.04 each for 60 or more checks The bank also charges an extra $15 if the balance of the account falls below $400 (before any check fees are applied). Write a program that asks for the beginning bal- ance and the number of checks written. Compute and display the bank's service fees for the month.
Input Validation: Do not accept a negative value for the number of checks written. If a
negative value is given for the beginning balance, display an urgent message indicating
the account is overdrawn.
Transcribed Image Text:Input Validation: Do not accept a negative value for the number of checks written. If a negative value is given for the beginning balance, display an urgent message indicating the account is overdrawn.
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 4 steps with 2 images

Blurred answer
Knowledge Booster
Mathematical functions
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Microsoft Visual C#
Microsoft Visual C#
Computer Science
ISBN:
9781337102100
Author:
Joyce, Farrell.
Publisher:
Cengage Learning,
C++ Programming: From Problem Analysis to Program…
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning