The monthly service charge is $10 (basicCharge = 10) Request the beginning balance Calculate the charge due to low balance: If the beginning balance is a negative number Print the urgent message for overdrawn the charge for this part is $15 (lowBalanceCharge = 15) If the beginning balance is below $400, the charge for this part is $15 (lowBalanceCharge = 15) Otherwise, no extra charge for this part (low BalanceCharge = 0) Request the number of checks written //Check input validation If the number of checks written is a negative number Tell the user it is an invalid input Request again the number of checks written Calculate the charge for the number of checks written (checkCharge): If # of checks is less than 20 checkCharge = 0.10 * (# of checks) otherwise if # of checks is less than 40 checkCharge = 0.08 * (# of checks) otherwise if # of checks is less than 60 checkCharge = 0.06 * (# of checks) otherwise (for 60 or more checks) checkCharge = 0.04 * (# of checks) Get the total service charge for the month: totalCharge = basicCharge + lowBalanceCharge + checkCharge Display the result in the currency format (for example, $ 500.00)
The monthly service charge is $10 (basicCharge = 10) Request the beginning balance Calculate the charge due to low balance: If the beginning balance is a negative number Print the urgent message for overdrawn the charge for this part is $15 (lowBalanceCharge = 15) If the beginning balance is below $400, the charge for this part is $15 (lowBalanceCharge = 15) Otherwise, no extra charge for this part (low BalanceCharge = 0) Request the number of checks written //Check input validation If the number of checks written is a negative number Tell the user it is an invalid input Request again the number of checks written Calculate the charge for the number of checks written (checkCharge): If # of checks is less than 20 checkCharge = 0.10 * (# of checks) otherwise if # of checks is less than 40 checkCharge = 0.08 * (# of checks) otherwise if # of checks is less than 60 checkCharge = 0.06 * (# of checks) otherwise (for 60 or more checks) checkCharge = 0.04 * (# of checks) Get the total service charge for the month: totalCharge = basicCharge + lowBalanceCharge + checkCharge Display the result in the currency format (for example, $ 500.00)
Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
Related questions
Question
Can I please get help with this
![**Overview of Bank Service Charge Calculation**
This guide aims to assist users in understanding how to calculate monthly service charges for a bank account based on the beginning balance and the number of checks written.
1. **Basic Monthly Service Charge:**
- The monthly service charge is set at $10. This is referred to as `basicCharge`.
2. **Beginning Balance Inquiry:**
- Users are prompted to enter their beginning balance.
3. **Low Balance Charge Calculation:**
- If the beginning balance is a negative number:
- Print an urgent message indicating the account is overdrawn.
- A charge of $15 (denoted as `lowBalanceCharge`) applies.
- If the beginning balance is below $400:
- A charge of $15 applies.
- Otherwise:
- No extra charge is applied for this section.
4. **Number of Checks Written:**
- Users are requested to input the number of checks they have written.
5. **Input Validation for Checks:**
- If the number of checks is negative:
- Inform the user that the input is invalid.
- Prompt the user to enter the number again.
6. **Check Charge Calculation:**
- Based on the number of checks written, calculate `checkCharge` as follows:
- If less than 20 checks: `checkCharge = 0.10 * (number of checks)`
- If less than 40 checks: `checkCharge = 0.08 * (number of checks)`
- If less than 60 checks: `checkCharge = 0.06 * (number of checks)`
- If 60 or more checks: `checkCharge = 0.04 * (number of checks)`
7. **Total Monthly Service Charge Calculation:**
- Compute the total service charge using the formula:
`totalCharge = basicCharge + lowBalanceCharge + checkCharge`
8. **Display of Result:**
- Present the total service charge to the user in a currency format (e.g., $500.00).
This flowchart provides a structured methodology for users to accurately determine the bank service charges applicable for a given month based on specific criteria.](/v2/_next/image?url=https%3A%2F%2Fcontent.bartleby.com%2Fqna-images%2Fquestion%2F549651ba-b33d-474d-abf4-48863f7a8bc4%2Fd108cfd1-a251-4beb-bf17-e7220a4228a5%2Fxoaum7r_processed.png&w=3840&q=75)
Transcribed Image Text:**Overview of Bank Service Charge Calculation**
This guide aims to assist users in understanding how to calculate monthly service charges for a bank account based on the beginning balance and the number of checks written.
1. **Basic Monthly Service Charge:**
- The monthly service charge is set at $10. This is referred to as `basicCharge`.
2. **Beginning Balance Inquiry:**
- Users are prompted to enter their beginning balance.
3. **Low Balance Charge Calculation:**
- If the beginning balance is a negative number:
- Print an urgent message indicating the account is overdrawn.
- A charge of $15 (denoted as `lowBalanceCharge`) applies.
- If the beginning balance is below $400:
- A charge of $15 applies.
- Otherwise:
- No extra charge is applied for this section.
4. **Number of Checks Written:**
- Users are requested to input the number of checks they have written.
5. **Input Validation for Checks:**
- If the number of checks is negative:
- Inform the user that the input is invalid.
- Prompt the user to enter the number again.
6. **Check Charge Calculation:**
- Based on the number of checks written, calculate `checkCharge` as follows:
- If less than 20 checks: `checkCharge = 0.10 * (number of checks)`
- If less than 40 checks: `checkCharge = 0.08 * (number of checks)`
- If less than 60 checks: `checkCharge = 0.06 * (number of checks)`
- If 60 or more checks: `checkCharge = 0.04 * (number of checks)`
7. **Total Monthly Service Charge Calculation:**
- Compute the total service charge using the formula:
`totalCharge = basicCharge + lowBalanceCharge + checkCharge`
8. **Display of Result:**
- Present the total service charge to the user in a currency format (e.g., $500.00).
This flowchart provides a structured methodology for users to accurately determine the bank service charges applicable for a given month based on specific criteria.
![# Program 4: Bank Charges
**Due on Sunday, 10/16/2022, by 11:59pm**
## Lab Objectives
This lab aims to reinforce programming concepts from Chapter 4 of *C++ Programming: Program Design Including Data Structures, 8th Edition*. In this lab you will practice:
- Requesting & validating input
- Using selective structure to make decisions
## Problem Description
A bank may have the following service charges for a commercial bank account:
- Basic charge, which will always charge every month
- Check charge for the checks written, which depends on the number of checks you have written in the month
- Charge for low balance, which will be checked and charged at the beginning of the month
Write a program named `Program4_BankCharges_YourName.cpp` for the banking activities and calculate the total monthly service charge from the bank.
The bank charges $10 per month (*basic charge*) plus the following check fees for a commercial checking account (*check charge*):
- $0.10 each for less than 20 checks
- $0.08 each for 20 – 39 checks
- $0.06 each for 40 – 59 checks
- $0.04 each for 60 or more checks
The bank also charges an extra $15 if the beginning balance of the account falls below $400 (before basic charge and any check fees are applied, it is *low balance charge*).
## Program Requirements
This program shall:
1. Request inputs: ask for the **beginning balance** and the **number of checks written**
2. Validate inputs:
- For the beginning balance, display an urgent message indicating the account is overdrawn if a negative value is entered.
- For the number of checks written, ask the user to re-enter if a negative value is entered.
3. Compute the bank’s service fees for the month:
- Fixed monthly charge ($10) - *basic charge*
- Charge for checks written (the amount depends on the number of checks written) - *check charge*
- A possible extra charge ($15 if the beginning balance is below $400) - *low balance charge*
4. Display the bank’s service fees for the month.
5. Add a `cout` statement to display the information of this program as shown in the following box at the bottom of your program, before `return` statement:
```](/v2/_next/image?url=https%3A%2F%2Fcontent.bartleby.com%2Fqna-images%2Fquestion%2F549651ba-b33d-474d-abf4-48863f7a8bc4%2Fd108cfd1-a251-4beb-bf17-e7220a4228a5%2Fesbn6i_processed.png&w=3840&q=75)
Transcribed Image Text:# Program 4: Bank Charges
**Due on Sunday, 10/16/2022, by 11:59pm**
## Lab Objectives
This lab aims to reinforce programming concepts from Chapter 4 of *C++ Programming: Program Design Including Data Structures, 8th Edition*. In this lab you will practice:
- Requesting & validating input
- Using selective structure to make decisions
## Problem Description
A bank may have the following service charges for a commercial bank account:
- Basic charge, which will always charge every month
- Check charge for the checks written, which depends on the number of checks you have written in the month
- Charge for low balance, which will be checked and charged at the beginning of the month
Write a program named `Program4_BankCharges_YourName.cpp` for the banking activities and calculate the total monthly service charge from the bank.
The bank charges $10 per month (*basic charge*) plus the following check fees for a commercial checking account (*check charge*):
- $0.10 each for less than 20 checks
- $0.08 each for 20 – 39 checks
- $0.06 each for 40 – 59 checks
- $0.04 each for 60 or more checks
The bank also charges an extra $15 if the beginning balance of the account falls below $400 (before basic charge and any check fees are applied, it is *low balance charge*).
## Program Requirements
This program shall:
1. Request inputs: ask for the **beginning balance** and the **number of checks written**
2. Validate inputs:
- For the beginning balance, display an urgent message indicating the account is overdrawn if a negative value is entered.
- For the number of checks written, ask the user to re-enter if a negative value is entered.
3. Compute the bank’s service fees for the month:
- Fixed monthly charge ($10) - *basic charge*
- Charge for checks written (the amount depends on the number of checks written) - *check charge*
- A possible extra charge ($15 if the beginning balance is below $400) - *low balance charge*
4. Display the bank’s service fees for the month.
5. Add a `cout` statement to display the information of this program as shown in the following box at the bottom of your program, before `return` statement:
```
Expert Solution
![](/static/compass_v2/shared-icons/check-mark.png)
Step 1
Answer:
We have done in C++ programming language and also attached the code and code screenshot and output
Algorithms:
Step1: we have asked the user input for the beginning balance
Step2: we check beginning balance is negative then message urgent message for withdrawn
Step3: then we have ask the user to give the input for check
Step4: if beginning balance is less than the 400$ then calculate the charge charge based on check and calculate the charge with the basic charge +low balance charge
Step5: if beginning balance is greater than the 400$ then calculate the charge charge based on check +basic charge
Trending now
This is a popular solution!
Step by step
Solved in 4 steps with 2 images
![Blurred answer](/static/compass_v2/solution-images/blurred-answer.jpg)
Recommended textbooks for you
![Computer Networking: A Top-Down Approach (7th Edi…](https://www.bartleby.com/isbn_cover_images/9780133594140/9780133594140_smallCoverImage.gif)
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
![Computer Organization and Design MIPS Edition, Fi…](https://www.bartleby.com/isbn_cover_images/9780124077263/9780124077263_smallCoverImage.gif)
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
![Network+ Guide to Networks (MindTap Course List)](https://www.bartleby.com/isbn_cover_images/9781337569330/9781337569330_smallCoverImage.gif)
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
![Computer Networking: A Top-Down Approach (7th Edi…](https://www.bartleby.com/isbn_cover_images/9780133594140/9780133594140_smallCoverImage.gif)
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
![Computer Organization and Design MIPS Edition, Fi…](https://www.bartleby.com/isbn_cover_images/9780124077263/9780124077263_smallCoverImage.gif)
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
![Network+ Guide to Networks (MindTap Course List)](https://www.bartleby.com/isbn_cover_images/9781337569330/9781337569330_smallCoverImage.gif)
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
![Concepts of Database Management](https://www.bartleby.com/isbn_cover_images/9781337093422/9781337093422_smallCoverImage.gif)
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
![Prelude to Programming](https://www.bartleby.com/isbn_cover_images/9780133750423/9780133750423_smallCoverImage.jpg)
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
![Sc Business Data Communications and Networking, T…](https://www.bartleby.com/isbn_cover_images/9781119368830/9781119368830_smallCoverImage.gif)
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY