Write a script to help users calculate compressed file size

Assignment Help Computer Engineering
Reference no: EM132193630

Write a Bash script AND a Perl script

Write a 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%

Reference no: EM132193630

Questions Cloud

How important is diversity as goal in university admissions : How important is diversity as a goal in university admissions? If you think that it is important, how should universities go about selecting diverse students?
Write a bash script to ask a user for a password : Write a bash script to ask a user for a password and determine if it matches the following rules: Must be at least 8 characters.
Discuss the effects science had on the enlightenment : Discuss the effects science had on the Enlightenment. Examples. After viewing the short videos and reading from Maddison, on slavery, discuss the following.
Considering updating current production line : A small business company is considering updating the current production line.
Write a script to help users calculate compressed file size : Write a script to help users calculate compressed file size. Prompt the user to enter the original size of a file (in bytes) from the keyboard.
The economic order quantity based on eoq model : The economic order quantity based on EOQ model? The total cost of ordering and carrying?
The world is coping with an economic recession : Suppose you are the CEO of Nike and the world is coping with an economic recession.
Use system calls for printing your result to the console : Write an assembly code (MIPS) to multiply two (4x4) matrices A and B and store the result in C (also a matrix obviously).
Role of human resources in the strategic planning process : Discuss the role of human resources in the strategic planning process, and how human resources can expand their influence throughout the strategic process.

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