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
Step: 1
This assignment seems to be about creating a calculator script in BASH without using the builtin bc ...Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started