Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Write a program that does the following in order: Ask user to enter a name Ask the user to enter five numbers amount 1

Write a program that does the following in order:
Ask user to enter a name
Ask the user to enter five numbers "amount1", "amount 2", "amount 3", "amount4", "amount5"
Calculate the sum of the numbers "amount1", "amount2", "amount3", "amount4", "amount5"
If the sum is greater than 0, print out the sum
If the sum is equal to zero, print-out "Your account balance is zero"
If the sum is less than 0, print out "Your account is overdrawn" and the "negative amount"
Round all print values to 1 decimal place
image text in transcribed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

DATABASE Administrator Make A Difference

Authors: Mohciine Elmourabit

1st Edition

B0CGM7XG75, 978-1722657802

More Books

Students also viewed these Databases questions

Question

What is brainstorming?

Answered: 1 week ago

Question

What is Environment and Ecology? Explain with examples

Answered: 1 week ago

Question

1. Explain the 2nd world war. 2. Who is the father of history?

Answered: 1 week ago

Question

=+employee to take on the international assignment?

Answered: 1 week ago