Tom's Guide | Tom's Hardware | Tom's Games
![]() |
![]() |
![]() |
III. 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 showen below:
S for The area of the top and bottom surface of the box
A for The surface area of the box
V for The volume of box
Stop for Exiting the program.
If the user choose 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 yhe user enters the wod “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

![]() |
![]() |
![]() |
| Login or Register to Reply | |
| Login | Register |
| Ads by Google |