Write a script to manage a menu driven program

Assignment Help Operating System
Reference no: EM131848691

Operating Systems UNIX Script Assignment

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 in VU Collaborate Assignment 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!

Reference no: EM131848691

Questions Cloud

Compute the mean and the standard deviation : Compare the distribution of sample means with the distribution of the population. d. Compute the mean and the standard deviation of each distribution
Describe the different market structures : Describe the different market structures (monopoly, oligopoly, perfect competitive and monopolistic competition) and discuss implications.
Asbsolute advantage and comparative advantage : How can a less developed country like Mexico have a comparative advantage relative to the United States?
Probability of responding to an advertisement : Suppose that the probability that a customer plans to make a purchase is 0.34. Suppose that the probability of responding to an advertisement
Write a script to manage a menu driven program : NIT1202 - Operating Systems UNIX Script Assignment. Tasks: You are required to write a Bourne Again Shell Script (bash) to manage a menu driven program
Probability of testing positive for the disease : Suppose that the probability of having a particular disease is 0.06. Suppose that the probability of testing positive for the disease is 0.91 given
Discuss why you have chosen the hypotheses you developed : Discuss why you have chosen the hypotheses you developed above. Be sure to discuss the concept of null hypothesis in your response.
Contemporary examples of efficiency wage : Please give any two contemporary examples of efficiency wage practices and their possible effect.
Boats on the beach before setting off inland : When Hernán Cortés was leading his men in conquest of the Aztecs in Mexico, he famously burned his boats on the beach before setting off inland.

Reviews

len1848691

2/5/2018 1:20:27 AM

Criteria: the degree to which the problem has been correctly solved, the structure and clarity of the solution and the quality of the accompanying documentation. Documentation: Well commented and structured code, Formatted print out of final script, Overall presentation of report (including description, print out of code supplied, test data and referencing).

len1848691

2/5/2018 1:20:19 AM

To Be Handed in: A copy of your working bash shell script needs to be handed in to your tutor and uploaded in VU Collaborate Assignment 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!

len1848691

2/5/2018 1:20:13 AM

Date Due: Week 10 - Sunday 28 by 5 pm. You are required to demonstrate in Week 11 during your lab time. If you do not demonstrate, you get a 0 mark. Late submission of assignment will NOT be accepted. You are strongly advised to plan to hand-in your assignment early to make allowance for any last minute hitches. The accompanying documentation for the assignment must be word-processed.

Write a Review

Operating System Questions & Answers

  Describe to staff the tasks that linux administrator perform

Describe to the staff the tasks that a Linux administrator performs. List and describe the tasks that a Linux administrator performs.

  Give three technical merits of unix

Give three technical merits of UNIX b) Differentiate between "clustered systems" and "real-time systems". c) Describe the purpose of using "trust relationship"

  Supporting a transmission system

A transmission system operates at sixteen MHz. The power output is 1 W and .1 Watt is needed at the receiver. The receiver is located one hundred meters from the transmitter.

  Gain e-perience with process communication

Submit a write-up as well as your program. Your write-up should include any known bugs, limitations, and assumptions in your program. This write-up should be in text-format and titled as ‘README'.

  Create threads causing a racing condition

In your test program you will need to create 100 or more threads causing a racing condition. One racing condition example can be each thread constantly requests a PID in multiple iterations.

  Supporting multiple incoming requests via threads

The email database server is created to accept multiple incoming requests via a socket in order to locate a specific message and return it to the customer email browser

  Important information about windows operating system

Assume you have learned a great deal of important data about the Windows operating system so far. However, we have not even scratched the surface of the capabilities of Windows XP.

  Describe a client - server protocol

Identify and describe a client/server protocol used in everyday life and identify and describe three concerns dealing with Internet security and privacy?

  Create process scheduling algorithm and program for fcfs

Create Process Scheduling Algorithm and Program for FCFS

  Provide examples of famous assignments that have failed

Discuss the examples of famous assignments that have failed because of relatively simple errors?

  Determine the rang of usable ip addresses

Determine the rang of usable IP addresses for the following IP subnet also determine the bradcast address for the subnet?

  Write a non-threaded program to simulation heat dissipation

CSC314 Operating Systems Assignment. Write a non-threaded program to simulation heat dissipation on the surface of a cylinder. You can model a cylinder using a 2D HxC array of cells. H represents the height of the cylinder and C represents the cir..

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd