Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

HOME INSERT DESIGN PAGE LAYOUT REFERENCES MARINGS REVIEWVIEW X Cut Tenes New Ro-18 Pa e 1u_x, x' AA- { :s- Em has s Heading 1

image text in transcribed

HOME INSERT DESIGN PAGE LAYOUT REFERENCES MARINGS REVIEWVIEW X Cut Tenes New Ro-18 Pa e 1u_x, x' AA- { :s- Em has s Heading 1 1 No ral! Strong . . Subtitle Title , No Spac.. Subtle En. Inte see.. Quote Inte stQ. Subtle Ret. Intense Re Book rneustm. to mu t Partes Cipboard Styies Due on Sunday, 10/14/2018, by :59pm Write a program named ProgramAssigument3 YourName.cpp to calculate the monthly service charge from a bank The bank charges $10 per month (basie chargel plus the following check fees for a commercial checking account (check charge) The monthly service chorge is $10 (bosieCharge-10) Request the beginning balance Calculate the If the beginning balance is a negative number chorge due to low balance Print the urgent message for overdrown the charge for this port is $15 llowBalanceCharge the charge for this part is $15 (lowBalanceChorge 15) ng extra charge for this part (lewBelaneeCharge oj S0.10 each for less than 20 checks 15) $0.08 each for 20-39 checks f the beginning bafance is below Sa00, $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, low balance charge). Write a program that asks for the beginning balance and the number of checks written. Compute and display the bank's service fees for the month Otherwise, Request the number of checks written //Check input validation While the number of checks written is o negative number Input Volidation: Do not accept a negative value for the number of checks written. If a negative value is given for the beginning balance, display on urgent messoge indicoting the account is Tell the user it is an invalid input Request ogain the number of checks written End of while Colculate the charge for the number of checks written (sheck Charge) f R of checks is less than 20 Notes: In this project, you need to calculate the bank's service fees. There are three part fixed monthly charge ($10)- basic charge charge for checks written (the amount depends on the number of checks written) check charge checkCharge 0.10 (e of checks) otherwise if w of checks is less than 40 chsskaharat:008 (# of checks) otherwise if # of checks is less than 60 checkChang: 0.06 . (# of checks) 1. 2. 3. a possible extra charge (515 if the beginning balance is below $400)-low balance charge your program for the part to calculate the total monthly service charge is in atherwise lfor 60 or more checks) the box on the following page. The blocks in the pink box are selection structures, and ones in the light blue box are repetition structures NOTE: This structure is only for the calculation part. Add these two lines to the very beginning of your program (as shown in the right box): //Project3 for Control Structures //Created by your name, date checkChargs." 0.04 . (# of checks) Get the total service charge for the month Display the result 2iiCrested by E-October 33 201 Change it to your name Change it to the current date

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

More Books

Students also viewed these Databases questions