Question: Ask user to enter a name 2. Ask the user to enter five numbers amount1, amount2, amount3, amount4, amount5 3. Calculate the sum of the
Ask user to enter a name 2. Ask the user to enter five numbers amount1, amount2, amount3, amount4, amount5 3. Calculate the sum of the numbers amount1, amount2, amount3, amount4, amount5 4. If the sum is greater than 0, print out the sum 5. If the sum is equal to zero, print out Your account balance is zero 6. If the sum is less than 0, print out Your account is overdrawn and the negative amount 7. Round all print values to 1 decimal pl ace Examples of the programs inputs and outputs are shown below
Enter your name: Belinda Patton Enter your amount 1: 52 Enter your amount 2: 2 Enter your amount 3: -22 Enter your amount 4: 12 Enter your amount 5: 32 Your account balance is $76.0 Enter your name: Belinda Patton Enter your amount 1: -52 Enter your amount 2: 2 Enter your amount 3: 22 Enter your amount 4: 12 Enter your amount 5: 28 Your account balance is zero. Enter your name: Belinda Patton Enter your amount 1: -52 Enter your amount 2: 2 Enter your amount 3: -22 Enter your amount 4: 12 Enter your amount 5: -32 Your account is overdrawn. The overdrawn amount is -$92.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
