problem by constrcuting a defining diagram B. Create a solution algorithm using pseudocode C. Desk-check the solution algorithm using two valid test ca
problem by constrcuting a defining diagram B. Create a solution algorithm using pseudocode C. Desk-check the solution algorithm using two valid test ca
problem by constrcuting a defining diagram B. Create a solution algorithm using pseudocode C. Desk-check the solution algorithm using two valid test ca
A. Define the problem by constrcuting a defining diagram
B. Create a solution algorithm using pseudocode
C. Desk-check the solution algorithm using two valid test cases
Transcribed Image Text:3. You require an algorithm to read in three values from a customer's 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 at the beginning of the month, (2) adding the total
deposits to this new 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.
Process or set of rules that allow for the solving of specific, well-defined computational problems through a specific series of commands. This topic is fundamental in computer science, especially with regard to artificial intelligence, databases, graphics, networking, operating systems, and security.
Expert Solution
Step 1
Summary In summary, the algorithm reads in the account balance at the beginning of the month, the total withdrawals and total deposits for the month, and calculates the account balance at the end of the month by first subtracting the total withdrawals from the beginning balance, then adding the total deposits to this new balance. Next, the algorithm calculates the federal tax, which is 1% of the total transactions, and deducts it from the gross balance to obtain the final end-of-month balance. The algorithm outputs this end balance.