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

  Identifies the cost of computer

identifies the cost of computer components to configure a computer system (including all peripheral devices where needed) for use in one of the following four situations:

  Input devices

Compare how the gestures data is generated and represented for interpretation in each of the following input devices. In your comparison, consider the data formats (radio waves, electrical signal, sound, etc.), device drivers, operating systems suppo..

  Cores on computer systems

Assignment : Cores on Computer Systems:  Differentiate between multiprocessor systems and many-core systems in terms of power efficiency, cost benefit analysis, instructions processing efficiency, and packaging form factors.

  Prepare an annual budget in an excel spreadsheet

Prepare working solutions in Excel that will manage the annual budget

  Write a research paper in relation to a software design

Research paper in relation to a Software Design related topic

  Describe the forest, domain, ou, and trust configuration

Describe the forest, domain, OU, and trust configuration for Bluesky. Include a chart or diagram of the current configuration. Currently Bluesky has a single domain and default OU structure.

  Construct a truth table for the boolean expression

Construct a truth table for the Boolean expressions ABC + A'B'C' ABC + AB'C' + A'B'C' A(BC' + B'C)

  Evaluate the cost of materials

Evaluate the cost of materials

  The marie simulator

Depending on how comfortable you are with using the MARIE simulator after reading

  What is the main advantage of using master pages

What is the main advantage of using master pages. Explain the purpose and advantage of using styles.

  Describe the three fundamental models of distributed systems

Explain the two approaches to packet delivery by the network layer in Distributed Systems. Describe the three fundamental models of Distributed Systems

  Distinguish between caching and buffering

Distinguish between caching and buffering The failure model defines the ways in which failure may occur in order to provide an understanding of the effects of failure. Give one type of failure with a brief description of the failure

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