Question: This assignment will introduce you to BASH scripting and the process of creating customized scripts and functions using BASH and external UNIX commands. You will

This assignment will introduce you to BASH scripting and the process of creating customized scripts and functions using BASH and external UNIX commands.

You will create and submit a standalone bash script ( #!/bin/bash )that will act as a calculator in shell when run without using the built-in bc utility. Submit the text script for your code (.sh file) for your code here before the due date.

Requirements:

--(60 pts) Structure.

1. (10 pts) The script will have instructions for each step for user (example: "Enter first number") and your code must be commented!

(20 pts) The calculator must take at least 2 numbers as input, as well as a selectable option for each math function, and pass all the options for correct calculation.

(20 pts) The calculator should be usable repeatedly until user wishes to exit - (I recommend a loop or repeat function)

--(40pts) Calculator can correctly calculate the following functions with the minimum 2 inputted numbers and handle any logic errors like (divide by zero) gracefully.The user must be able to select which function to run.

((10pts) Add,

(10pts) Subtract

(10pts) Multiply

(10pts) Divide

Step by Step Solution

3.36 Rating (149 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

This assignment seems to be about creating a calculator script in BASH without using the builtin bc ... View full answer

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 Programming Questions!