Share
Explore BrainMass

Mollett Script in KNOPPIX Arithmetic Operation with Variable

I need to create the script below and name it Mollett.3-7
It is also attatched in a word file too. This set of directions in Project 3-7 script produces some kind of expected output by creating this script called
Mollett.3-7

Set a variable named "x" to 10
Set a variable named "y" to 100
Display the result of dividing "y" by "x" and place the result into variable "t"
Display the result of dividing "y" by 0
Display the result of multiplying "y" by "x" and place the result into variable "t"
Display the result of adding "y" and "x" and place the result into variable "t"
Display the result of subtracting "x" from "y" and place the result into variable "t"
Display the result of raising "y" to the power of 2 and place the result into variable "t"
Display the result of taking the remainder of "y" divided by "x" and place the result into variable "t"

Attachments

Solution Preview

Also attached as a script ...

Solution Summary

A bash script which does some variable assignment and mathematical operations according the description of the problem.

$2.19