This assignment will introduce you to BASH scripting and the process of creating customized scripts and functions
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 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
Principles Of Information Security
ISBN: 9780357506431
7th Edition
Authors: Michael E. Whitman, Herbert J. Mattord