Solved

# Help with UNIX / Linux

Posted on 2009-04-19

Im reading a book to help me learn UNIX. Im trying an example and Im stuck. Any help would be greatly appreciated!

Im not even sure where to begin. The book confused me a bit.

The script needs to perform the following pseudocode in the order shown:

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"

Execute the script, and then record the commands used.