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

  Whena router encounters

Whena router encounters an error in an IP header it:  a.returns the packet to the sending router. b. returns the packet to the sending router with an error advisement.

  Find a recurrence relation for the number

Find a recurrence relation for the number of bit strings that contain the string 01 . what are the initial condition , and how many bit strings of length seven contain the string 01. please explain it fully step by step to better undestand

  Write down the body of method for header

Write down the body of method for the following header. Method must return the welcome message which includes the user's name and visitor number.

  Access and its limitations in distributed business model

describe the difference of the two terms and how they work together. Your post should include the following details: A description of Access and its limitations in a distributed business model.

  The techniques in discovering the requirements

What are some of the techniques in discovering the requirements (fact finding) for a system?

  Dis-assemble each of the following

Dis-assemble each of the following MIPS R2000 object code into source code instructions. Use register names, such as $t2, instead of numbers, such as $20.

  Day trader wants to invest a sum of money

Day Trader wants to invest a sum of money that would generate an annually yield of at least $10,000. Two stock groups are available: blue chips and high tech, with average an annual yields of 10% and 25%, respectively

  Explain global ubiquitous platform for online services

Recognize what you believe to be next set of core future service(s) to be offered via Internet over next 2 to 5 years based on current and evolving technologies.

  Voluntarily gravitating to give up our real world experience

In an age of virtual worlds where people are spending inordinate amounts. Are we voluntarily gravitating to this world and giving up our real world experiences for virtual ones?

  What is meant by artificial intelligence

What is meant by artificial intelligence? What are two essential differences between human brains and the central processing unit of a computer.

  Kind of information monitor check to see if it sanitize

Which kind of information should the monitor check to see if it must sanitize the data to conceal the names of the users and the names and addresses of the computers involved?

  Develop a technique for machines

For artificial intelligence systems to adapt to new conditions, the 1st task is to construct a technique for machines to resolve problems 'on their own'. To do this, one requires to develop a generic method to resolve generic troubles

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