Write a script to help users calculate compressed file size

Assignment Help Basic Computer Science
Reference no: EM13189406

1. Write a script to help users calculate compressed file size. Prompt the user to enter the original size of a file (inbytes) from the keyboard. Then use the following rules for calculating the compressed file size. Display the result onthe 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 samecommands as in the example). When the command is finished, display the menu again.? If 4 is entered, then quit the program.

Reference no: EM13189406

Questions Cloud

Communicate diagnostic information : Do think there should be mandatory training for physicians and nurses about how to communicate diagnostic information to patients? Explain your answer.
Organizational hierarchies is correct : Which of the following organizational hierarchies is correct?
What is the break-even sales (units) : If fixed costs are $350,000, the unit selling price is $29, and the unit variable costs are $20, what is the break-even sales (units) if the variable costs are decreased by $4?
Syndrome resulting from a robertsonian translocation : Why would Down syndrome resulting from a Robertsonian translocation not be affected by the age of the mother?
Write a script to help users calculate compressed file size : 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.?
Difference between motivation and job satisfaction : What is the difference between motivation and job satisfaction, class? And why should managers be more concerned with motivation than with job satisfaction? Or should they? Why?
Find the size of the labor force in a community : The size of the labor force in a community is 800, and 720 of these folks are gainfully employed. In this community, 200 people over the age of 16 do not have a job and are not looking for work. In addition, 100 people in the community are under t..
What is the temperature of the coffee after 14 minutes : A cup of coffee at 173 degrees is poured into a mug and left in a room at 65 degrees. After 4 minutes, the coffee is 142 degrees. Assume that the differential equation describing Newton's Law of Cooling is (in this case) .
Definition of normal-abnormal vary from culture to culture : How does the definition of normal and abnormal vary from culture to culture? Give examples in our culture (US) where what is considered normal by some is considered abnormal by others.

Reviews

Write a Review

Basic Computer Science Questions & Answers

  Show with diagrams how the median filters work

Explain why in some image processing scenarios, filters are used instead of point operations on pixel values Show with diagrams how the Median Filters work

  Advantages and disadvantages of asymmetric or symmetric key

The Institute has collaborated with XYZ inc. for research on genetics. Information should be kept top secret at any cost. At ABC Institute, researchers are not sure about kind of key.

  Is problem solving easier and more effective in solving

Is problem solving easier and more effective in solving business problems without information systems or with? (justify your position)

  Acilisis, lacinia, curabitur egestas

Acilisis, lacinia, curabitur egestas, lorem, risus. Class Ac amet laoreet parturient, quam justo interdum hendrerit erat faucibus, facilisi scelerisque commodo, odio. Ligula conubia potenti, per praesent est egestas felis a facilisis potenti vehicula..

  Distinguish online learning with classroom learning

Write the exploratory essay in which you distinguish online learning with classroom (on-ground) learning. Your estimation may incorporate preparation time.

  Adding two unsigned and signed binary numbers

Add the two binary numbers and interpret the sum assuming that the numbers are (1) unsigned, and (2) signed.

  Explain professional responsibility to complete installation

You are an engineer involved in the development of a financial system. During installations, you discover that this system will make a significant number of people redundant. It is your professional responsibility to complete the installation as..

  Finding whether two machines are equivalent

Consider the problem of finding whether two of these machines are equivalent. Formulate this problem as the language, and illustrate that it is undecidable.

  Determine independent variable and dependent variable

The length of the string is shortened by 5cm and the time is measured. Determine the independent variable? Determine the dependent variable? What must the controlled variables be?

  Write the definition of a method

Write the definition of a method , isReverse , whose two parameters are arrays of integers of equal size. The method returns true if and only if one array is the reverse of the other. ("Reverse" here means same elements but in reverse order.)

  Explain how rsa algorithm works

Use the example to illustrate how RSA algorithm works. Deciper following ciphertext, that was enciphered using Caesar cipher.

  Explain local telephone calls-long distance telephone calls

Will distinction between local telephone calls and long distance telephone calls ever disappear? What may cause this to happen?

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