Write a c program to achieve the indeed compression

Assignment Help C/C++ Programming
Reference no: EM132104911

Problem:

Your C program needs to compress a text file. The file 'text.txt' contains the text to be compressed and this file contains lower case letters only. The file 'alpha.txt' contains the code for each letter.

You need to create a file called 'out.txt' to store the compressed text.

It is sure that all the letters in 'text.txt' will have one and only one corresponding code in the file 'alpha.txt'.

Your C program needs to achieve the indeed compression and could solve the "tail bit problem". You need to submit a one-page document to introduce how these two problems are solved. To solve the "tail bit problem", you may write some additional information into the output file.

Sample Input & Output:

The content of 'text.txt' is:

adbb

The content of 'alpha.txt' is :

a 00
b 01
c 10

d 11

The content of 'out.txt' is:

5

Note: I don't know what the "tail bit problem" is.

Reference no: EM132104911

Questions Cloud

Design a web page to provide a metric conversion guide : Design a web page to provide a metric conversion guide for college students.
Calculate how much to pay their hourly employees : Wombat Corporation needs a GUI program to calculate how much to pay their hourly employees.
What is the current price of aa co : It is expected that dividends will grow at 4% indefinitely. Assuming a discount rate of 12%, what is the current price of AA Co.?
What is taggart constant growth : Based on this information, what is Taggart's constant growth rate in dividends
Write a c program to achieve the indeed compression : Your C program needs to compress a text file. The file 'text.txt' contains the text to be compressed and this file contains lower case letters only.
The costs of environmental protection than poor countries : Briefly, according to Shue, why should rich countries bear more of the costs of environmental protection than poor countries?
Write a program which will declare an array for the prices : Write a program which will declare an array for the prices, and an array for the names of the parts, open the files, and load data in the arrays.
Using cooperative strategies : ow can the resource-based view of the firm help us understand why firms develop and use cooperative strategies such as strategic alliances and joint ventures?
Discuss about the problem of the cubs caps : The problem is this: A teacher comes to class with a box and shows the contents of the box to the students.

Reviews

Write a Review

C/C++ Programming Questions & Answers

  Create program that uses functions and reference parameters

Create program that uses functions and reference parameters, and asks user for the outside temperature.

  Write a program using vectors and iterators

Write a program using vectors and iterators that allows a user to maintain a personal list of DVD titles

  Write the code required to analyse and display the data

Calculate and store the average for each row and column. Determine and store the values for the Average Map.

  Write a webservices application

Write a webservices application that does a simple four function calculator

  Iimplement a client-server of the game

Iimplement a client-server version of the rock-paper-scissors-lizard-Spock game.

  Model-view-controller

Explain Model-View-Controller paradigm

  Design a nested program

How many levels of nesting are there in this design?

  Convert celsius temperatures to fahrenheit temperatures

Write a C++ program that converts Celsius Temperatures to Fahrenheit Temperatures.

  Evaluate and output the value in the given base

Write C program that will input two values from the user that are a Value and a Base with which you will evaluate and output the Value in the given Base.

  Design a base class shape with virtual functions

Design a base class shape with virtual functions

  Implementation of classes

Implementation of classes Chart and BarChart. Class barChart chould display a simple textual representation of the data

  Technical paper: memory management

Technical Paper: Memory Management, The intent of this paper is to provide you with an in depth knowledge of how memory is used in executing, your programs and its critical support for applications.

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