Question: - Exercise# 2: Write a program that reads a floating-point number and prints zero if the number is zero. Otherwise, print positive or negative. Add

 - Exercise# 2: Write a program that reads a floating-point number

and prints "zero" if the number is zero. Otherwise, print "positive" or

- Exercise# 2: Write a program that reads a floating-point number and prints "zero" if the number is zero. Otherwise, print "positive" or "negative". Add "small" if the absolute value of the number is less than 1, or "large" if it exceeds 1,000,000. sample run sample run sample run Enter floating point number: 0 sample run Enter floating point number: -10000000 Enter floating point number: 0.7 Enter floating point number: 10.7 zero negative large positive small positive 101]: Slide Type # Exercise # 2 - Source Code x = float(input("Enter your choice:")) if (x>0): print("posative") else: if(x>1000000): print("large") else: if (x

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!