Unix shell script that gets the width, height

[Closed]
Report
Posts
3
Registration date
Thursday March 12, 2009
Status
Member
Last seen
March 13, 2009
-
Posts
23
Registration date
Thursday September 18, 2008
Status
Member
Last seen
May 11, 2009
-
Hello,

I need some help to create a Unix shell script that gets the width, height, and depth of a box from
the user and then display a menu of four choices as shown below:
1 - S for The area of the top and bottom surface of the box
2 - A for The surface area of the box
3 - V for The volume of box.
4 - Stop for Exiting the program.
If the user chose any of the first three choices, it will calculate and display the
respective value stated in the menu. Use the case statement for this menu
choice. Your script must allow the user to repeat the tasks unless the user
enters the word "Stop". Include a message to inform the user to enter the
choices from the menu only if the input is not one of the four choices in the
menu.


Any help will be appreciated. Thanks

1 reply

Posts
23
Registration date
Thursday September 18, 2008
Status
Member
Last seen
May 11, 2009
7
hi,
try this link to get help on creating script:
http://www.hsrl.rutgers.edu/ug/shell_help.html
this will help you.