Unix shell script that gets the width, height

Closed
ImSorry Posts 3 Registration date Thursday 12 March 2009 Status Member Last seen 13 March 2009 - 13 Mar 2009 à 08:42
ZoeJane Posts 23 Registration date Thursday 18 September 2008 Status Member Last seen 11 May 2009 - 14 Mar 2009 à 04:49
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
Related:

1 response

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