Question
In the Simple Program Design (5th Edition) book. Chapter 3 Problem 5 PP. Can you put that solution into the raptor flow chart and screen
In the Simple Program Design (5th Edition) book. Chapter 3 Problem 5 PP. Can you put that solution into the raptor flow chart and screen shot it?
Questiong:
You require and algorithm to read in three values from a customers bank account: the account balance at the beginning of the month, a total of all withdrawals from the account for the month, and a total of all deposits into the account during the month. A federal tax charge of 1% is applied to all transactions made during the month. The program is to calculate the account balance at the end of the month by (1) subtracting the total withdrawals from the account balance, (3) calculating the federal tax (1% of total transactions that is, total withdrawals + total deposits), and (4) subtracting this federal tax from the new balance. After these calculations, print the final end-of-month balance.
Solution:
Calculate_new_account_balance
- Read account_balance
- Read total_withdrawals
- Read total_ deposits
- new_balance = account_balance total_withdrawals + total deposits
- federal_tax = .01 * (total_withdrawals + total_deposits
- new_account_balance = new_balance federal_tax
- Print new_account_balance
END
Just would like the raptor flow chart. Thank you
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started