Develop a small console program driven by a text menu

Assignment Help Computer Engineering
Reference no: EM131985037

Problem

Linux: Have to complete using BASH and PERL scripts for both questions.

Write a BASH & PERL script to help users calculate compressed file size. Prompt the user to enter the original size of a file (in bytes) from the keyboard. Then use the following rules for calculating the compressed file size. Display the result on the screen.

If the size is less than 5000 bytes, the compression ratio is 90%.

If the size is between 5000 and 50000 bytes, the compression ratio is 70%

If the size is more than 50000 bytes, the compression ratio is 40%.

2. Develop a small console program driven by a text menu (see the sample screenshot below):

It displays a simple menu with 4 items indicated by number 1-4.

Users will enter number 1 to 4 to run some commands.

Item #1 to #3 will run some shell commands (it's your choice what to run, but do not use the same commands as in the example). When the command is finished, display the menu again.

If 4 is entered, then quit the program.

Reference no: EM131985037

Questions Cloud

Find the net present value of the project : Simpson Enterprises is considering a new project with cash inflows of $325,000 for the indefinite future. Cash costs are 63 percent of the cash inflows.
List the trip ids and trip names for each pair of trips : List the trip IDs and trip names for each pair of trips that have the same start location. (For example, one such pair would be the trip Id 2 and trip ID 3).
Identify the significance of delta to the bopm : What is the significance of delta to the BOPM? How does it relate to the concept of a replicating portfolio and why is that important?
Discuss the idea that traditional banks may be dying : Discuss the idea that traditional banks may be dying. The argument states that some authorities believe that traditional banks still exist
Develop a small console program driven by a text menu : Write a BASH & PERL script to help users calculate compressed file size. Develop a small console program driven by a text menu.
What should be the projects npv including the effects : Your subordinate just submitted a proposal. You find that the analysis is correct except that it has ignored net working capital.
List and describe down the components of a data center : List and describe down the components of a data center. What did you learn in this process and how will this practice be applicable to your real world career?
Differences between two heroes gilgamesh and sundiata : What are some major similarities and differences between the two heroes Gilgamesh and Sundiata / Sunjata?
How much are you willing to pay for the stock : ABC company is not currently paying cash dividends, but is expected to initiate its first ever dividend of $20 per share three years from today.

Reviews

Write a Review

Computer Engineering Questions & Answers

  Mathematics in computing

Binary search tree, and postorder and preorder traversal Determine the shortest path in Graph

  Ict governance

ICT is defined as the term of Information and communication technologies, it is diverse set of technical tools and resources used by the government agencies to communicate and produce, circulate, store, and manage all information.

  Implementation of memory management

Assignment covers the following eight topics and explore the implementation of memory management, processes and threads.

  Realize business and organizational data storage

Realize business and organizational data storage and fast access times are much more important than they have ever been. Compare and contrast magnetic tapes, magnetic disks, optical discs

  What is the protocol overhead

What are the advantages of using a compiled language over an interpreted one? Under what circumstances would you select to use an interpreted language?

  Implementation of memory management

Paper describes about memory management. How memory is used in executing programs and its critical support for applications.

  Define open and closed loop control systems

Define open and closed loop cotrol systems.Explain difference between time varying and time invariant control system wth suitable example.

  Prepare a proposal to deploy windows server

Prepare a proposal to deploy Windows Server onto an existing network based on the provided scenario.

  Security policy document project

Analyze security requirements and develop a security policy

  Write a procedure that produces independent stack objects

Write a procedure (make-stack) that produces independent stack objects, using a message-passing style, e.g.

  Define a suitable functional unit

Define a suitable functional unit for a comparative study between two different types of paint.

  Calculate yield to maturity and bond prices

Calculate yield to maturity (YTM) and bond prices

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