Close Button
Signup/Login
Back All services Close Button

World's Leading Assignment Library

Continued assistance through writing and revision till final submission by the professional and experienced writers.

  • 10 subjects

  • 2,10,1000
    solved Questions

  • 500 Solved Questions
    Added Everyday

  • Download Solution
    in Seconds

You are required to write a Bourne Again Shell Script (bash) to manage a menu driven program. When executed the user should be presented with a menu with 4 (four) options: 1.Print the following use

Question Preview:

For this assignment, you may work with one partner, if desired. Tasks:
You are required to write a Bourne Again Shell Script (bash) to manage a menu driven program.

When executed the user should be presented with a menu with 4 (four) options:

1.Print the following user information: the home directory, path, userid , login shell together with the current date and time.

2.Ask a user a range and it displays eight random number between the range. [Range difference must be 100. Example Enter a range: 200 300

3.Print out the highest and the lowest nu...

View complete question »

Question Preview:

For this assignment, you may work with one partner, if desired. Tasks:
You are required to write a Bourne Again Shell Script (bash) to manage a menu driven program.

When executed the user should be presented with a menu with 4 (four) options:

1.Print the following user information: the home directory, path, userid , login shell together with the current date and time.

2.Ask a user a range and it displays eight random number between the range. [Range difference must be 100. Example Enter a range: 200 300

3.Print out the highest and the lowest numbers of the generated eight random numbers

4.Exit the program

Requirements:

Your script must allow one of these options to be chosen at a time. The menu must be presented over and over again, until the fourth option (exit) is chosen. An appropriate error message must be displayed if an invalid option is chosen.

Option one, your script should list the specified environment variables. The current output of the date command, together with the userid and the full name of the user also needs to appear in this file, before the environment variables.

Option two should prompt the user a range and displays eight (8) random numbers.

Option three should list the highest and lowest number of the generated random numbers.

Option four should cause a graceful exit from the menu and the whole program.

To Be Handed in:

A copy of your working bash shell script needs to be handed in to your tutor and uploaded on Dropbox.
Make sure your script includes your name and ID.
Make sure the code is well commented.

Documentation including:
A neatly formatted print-out of your bash shell script
Appropriate and specific acknowledgments of aid you received from people, books, journals, etc. for this assignment.

Remember to make your script user-friendly and easy to read!

Criteria:

the degree to which the problem has been correctly solved
the structure and clarity of the solution
the quality of the accompanying documentation

View less »

Solution preview

Solution in attached file

Get solution

java assignment help

© Livewebtutors. All Rights Reserved 2018

Livewebtutors
Rated 4.9/5 based on 2480 reviews
Arrow up