Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Task 0 6 ( 1 5 points ) Task 0 7 ( 3 0 points ) Write a Bash script that will take in two

Task 06(15 points) Task 07(30 points)
Write a Bash script that will take in two numbers and an operator as input and then
perform the given operation. It should be able to handle the following operations:
adding, subtracting, multiplying, dividing, exponentiation, and modulo.
Note: All operations must work when tested, not just add. Be sure to use the line
spacing as indicated.
Write a Bash script that will take in two numbers as input and add them together
Expected input (use the actual name for your script):
$ ./script.sh
Enter the first number:
52
Enter the second number:
15
Expected output:
The sum of 52 and 15 is 67. Have a nice day!
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

Successful Keyword Searching Initiating Research On Popular Topics Using Electronic Databases

Authors: Randall MacDonald, Susan MacDonald

1st Edition

0313306761, 978-0313306761

More Books

Students also viewed these Databases questions

Question

=+26.14. 1 Show that y has no point masses if 2(t) is integrable.

Answered: 1 week ago