Summative Programming Assignment
Summative Programming Assignment
You are welcome to make these fees variables that you read in from the user. But you don’t have
to! They can be constants in your program. (For example: float service charge = $25;
b. Make sure to echo all of the input – and make sure each value echoed has a meaningful label
(tell me what is it). Make sure to display all dollars and cents using proper format ($ sign and
2 digits after the decimal point) setprecision(2)
cout.setf(ios::fixed);
cout.setf(ios::showpoint);
c. ERROR check! If the input isn’t a ‘d’ or a ‘w’ when entering in the type of transaction,
display an error message and give the user another chance to enter the choice.
· REMEMBER don’t forget to add comments and to work on your program’s readability; this is 5%!!
Steps:
Step 1: Welcome the user
• Starting balance
Step 3: Do calculations
1.
Repeat
2.
ask them the date (month, day, year)
3.
echo date
4.
ask them transaction type (deposit or withdrawal)
if it’s a deposit, …
5.
if it’s a withdrawal, ….
6.
7.
ask them if there are there any more transaction to do this month. If they say yes,
go back to number 1. if the say no go on to step 4
Step 4: Thank the user for using the program
It is 9/30/2020
---------------------------------------------------------------------------------
It is 9/30/2020
---------------------------------------------------------------------------------
It is 9/30/2020
The following service charge was deducted from your account: $25.00
Do you have more transactions? y
---------------------------------------------------------------------------------
It is 9/30/2020
---------------------------------------------------------------------------------
It is 9/30/2020
---------------------------------------------------------------------------------
It is 9/30/2020
The following service charge was deducted from your account: $25.00
---------------------------------------------------------------------------------
The following service charge was deducted from your account: $25.00
---------------------------------------------------------------------------------