Search : in
By :

Unix shell script that gets the width, height

Last answer on Mar 14, 2009 8:49:58 am GMT ImSorry, on Mar 13, 2009 12:42:15 pm GMT 
 Report this message to moderators

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

Configuration: Windows XP
Internet Explorer 7.0

Best answers for « Unix shell script that gets the width, height » in :
Unable to delete file: Argument list too long ShowUnable to delete file: Argument list too long Solutions Xargs Command find loop for (bash) Program Perl When trying to delete a file , you receive the following error message : bash: /bin/rm: Argument list too long This is...
Replacing Variables in Bash/shell ShowReplacing Variables in Bash/shell Intro: Expression:Defininition Intro: First of all make sure that you the variable is defined before replacing it, or in other cases determine that it is not empty, and to initialize with a default...
[Shell]Create a file having a specific size ShowShell]Create a file having a specific size The dd command allows you to create "empty" file of desired size, creating these arbitrary heavy files, may be useful for testing purposes. Use command below: dd if=/dev/zero of=file_to...
Download SSH Secure Shell ShowSSH secure shell for workstations is a flexible client SSH allowing to connect in a secured way to remote applications. http://www.commentcamarche.net/faq/images/NHc6wz5jOYBhPXTis.png
Download Vista Live Shell Pack - Pink ShowIf you want to have Vista on your computer but your shape is not rather powerful or if simply you cannot have to be paid this version yet? Then resolution is to change the appearance of your good old XP. Vista Live Shell Pack is a topic of office...
UNIX - Files ShowIntroduction to UNIX files In UNIX systems any element is represented in the form of a file. All files are architectured around a single tree structure where the base, called the root, is written "/". File types UNIX systems define different...
Using Telnet ShowIntroduction to Telnet Telnet is a protocol for emulating a remote terminal, which means that it can be used to run commands entered on a keyboard at a remote machine. The tool Telnet is an implementation of the Telnet protocol, which means that it...
UNIX system - The shell ShowIntroduction to the shell The command interpreter is the interface between the user and the operating system, hence its name "shell". The shell therefore acts as an intermediary between the operating system and the user using command lines...

1

 ZoeJane, on Mar 14, 2009 8:49:58 am GMT

Hi,
try this link to get help on creating script:
http://www.hsrl.rutgers.edu/ug/shell_help.html
this will help you.

Reply to ZoeJane