Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Create a BASH script that gets the user's name and two numbers ( e . g . , NUMBER 1 and NUMBER 2 ) .

Create a BASH script that gets the user's name and two numbers (e.g., NUMBER1 and NUMBER2).
After getting the user input, check the following:
NUMBER1 is greater than NUMBER2: subtract NUMBER2 from NUMBER1
NUMBER2 is greater than NUMBER1: subtract NUMBER1 from NUMBER2
NUMBERs are equal: end the program and inform the user
Once correct input has been received, output the following:
Output the user name, the date, and a calendar with the appropriate context.
Output a repeating statement with the incrementing result from the calculation.
Extra Credit
Check if the user input for both numbers are integers. Output an error message and end the program if they are not.
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

Advances In Spatial Databases 2nd Symposium Ssd 91 Zurich Switzerland August 1991 Proceedings Lncs 525

Authors: Oliver Gunther ,Hans-Jorg Schek

1st Edition

3540544143, 978-3540544142

More Books

Students also viewed these Databases questions

Question

What about leadership lessons from particularly good or bad bosses?

Answered: 1 week ago