Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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 ... 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

Principles Of Information Security

Authors: Michael E. Whitman, Herbert J. Mattord

7th Edition

035750643X, 978-0357506431

More Books

Students also viewed these Programming questions