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
Expert Solution
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
Recommended textbooks for you
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…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
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…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
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)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY