Ask your question

Unix shell script that gets the width, height

ImSorry 3Posts March 12, 2009Registration date - Mar 13, 2009 12:42pm GMT - Last answer on Mar 14, 2009 8:49am GMT ZoeJane
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. ThanksConfiguration: Windows XP Internet Explorer 7.0
Read more ...
Add comment

Kioskea recommends you to read :

Export command in shell script?ForumLinux/Unix
Shell script to telnet and run commands [Solved]ForumLinux/Unix
UNIX - FilesReviewsUNIX
Script for automation of sftpForumLinux/Unix
How to read a file line by lineTipsBash
Shell script for telnet and run commandsTipsLinux
Sort by :   Votes | Date | Date descending 1 answers
+0
moins plus
hi,
try this link to get help on creating script:
http://www.hsrl.rutgers.edu/ug/shell_help.html
this will help you.
Add comment