Purchase Solution

Mollett Script in KNOPPIX Arithmetic Operation with Variable

Not what you're looking for?

Ask Custom Question

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"

Purchase this Solution

Solution Summary

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

Solution Preview

Also attached as a script ...

Purchase this Solution


Free BrainMass Quizzes
C++ Operators

This quiz tests a student's knowledge about C++ operators.

Word 2010: Tables

Have you never worked with Tables in Word 2010? Maybe it has been a while since you have used a Table in Word and you need to brush up on your skills. Several keywords and popular options are discussed as you go through this quiz.

Basic UNIX commands

Use this quiz to check your knowledge of a few common UNIX commands. The quiz covers some of the most essential UNIX commands and their basic usage. If you can pass this quiz then you are clearly on your way to becoming an effective UNIX command line user.

Word 2010: Table of Contents

Ever wondered where a Table of Contents in a Word document comes from? Maybe you need a refresher on the topic? This quiz will remind you of the keywords and options used when working with a T.O.C. in Word 2010.

Basic Networking Questions

This quiz consists of some basic networking questions.