Answered step by step
Verified Expert Solution
Link Copied!

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,

image text in transcribed

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

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_2

Step: 3

blur-text-image_3

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

Business Process Driven Database Design With Oracle PL SQL

Authors: Rajeev Kaula

1st Edition

1795532386, 978-1795532389

More Books

Students also viewed these Databases questions