PSEUDOCODE

Keed1963$
SubmitAssignment1.3-PseudocodeGradescope.pdf

Q2 Bank 13 Points

A bank charges fees and/or gives interest based on the balance of a customer. Write a program

that reads the customer balance then calculates and displays the new balance after the

application of fees and or interest based on the following rules:

• A negative balance incurs a $50 overdraft fee.

• A balance below $500 (but positive) incur on a $10 maintenance fee.

• A balance from $500 to $1000 (inclusive) gain 0.1% interest.

• A balance over $1000 will gain 2% interest.

Q2.1 Input, Output, Error Conditions 1.5 Points

In the space below, determine the inputs, outputs and error conditions for the problem.

Enter your answer here

Save Answer

Q2.2 Algorithm 9.5 Points

In the space below, write your algorithm using pseudocode (pseudocode reference sheet

under Week 1 resources at https://introcs.cs.rutgers.edu/lectures). If you detect an error

condition, end your program.

Enter your answer here

Save Answer

Q2.3 Test cases 2 Points

In the space bellow, list a thorough set of test cases for your program. Write in the following

format [inputs], where the inputs are separated by commas.

[inputs][output]

! "

#

$

%&

0/9 Questions Answered