Answered step by step
Verified Expert Solution
Question
1 Approved Answer
5) Write a script that asks a user to input two numbers. Output whether the difference of the first number and the second is positive,
5) Write a script that asks a user to input two numbers. Output whether the difference of the first number and the second is positive, negative, or zero. Also make sure that the usei entered a valid numbers.(25 points) Here are some example runs (make sure your program outputs the same exact message) Enter the first number: hello THIS IS NOT A NUMBER Enter the first number: 5 Enter the second number: whatever This is NOT A NUMBER Enter your first number: 5 Enter the second number: 2 The difference is POSITIVE Enter vour first number. 2 Enter the second number: 5 The difference is NEGATIVE Enter your first number: 5 Enter the second number: 5 This difference is ZERO
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started