Entries by Student

write my assignment 13699

I need help with writing a Huffman code encoder, specifically in c++.

You are required to write a Huffman code encoder. Details: Name your program as “hmencoder”.Usage of hmencoder:hmencoder [input_file]where input_file is the file containing the input message. The input message contains normal English text. You need to encode allEnglish letters together with all printable characters such as “. I”, space etc. The capital letter and the corresponding small letter are treatedas two symbols. For example, “A” anda “ ” are regarded as two symbolsHere we don’t consider carriage return In other words, you only need toconsider the characters from “space~ ” in the ASCII table. The output of hmencoder should have two output files, “code.tx ” and“encodemsg.tx ”. The output file “code.txt” stores the codeword for each symbol and theaverage number of bits used for each symbol. The format of this output file is as follows: Each row contains the codeword for a separate symbol, the symbols arelisted according to the increasing order of the corresponding ASCII codevalue. The last row shows the average number of bits used for eachsymbol. E.g. Space: 000!: 001 2:1000Ave = 3.43 bits per symbol The output file “encodemsgtxt” stores the encoded message with 80 0/1characters on each row (except the last row).

 

"Not answered?"


Get the Answer

write my assignment 8926

Discussion 1: A Compelling Argument

For this Discussion, you will identify an issue in the field of special education and present a position.

To prepare:

Review all module Learning Resources.

Review the special education issue(s) you have selected and everything you have examined and researched about it thus far. If you have been focusing on more than one issue, choose one and consider your position on this issue.

Identify at least one current scholarly article supporting your position on the issue and one article against your position.

Evaluate which article makes a more compelling case and why.

A brief summary of the two resources and the positions presented as well as your professional position on the issue. Then, explain which article makes a more compelling case and why. Finally, using information from each article, state whether your professional position on the issue has been validated or changed and how.

 

"Not answered?"


Get the Answer

write my assignment 4174

Percy works two part-time jobs to help pay for college classes. On Monday, he works 3 hours at the library and 2 hours at the coffee cart and earns $36.50. On Tuesday, he works 2 hours at the library and 5 hours at the coffee cart and earns $50. His hourly wage at the library, x, and hourly wage at the coffee cart, y, can be determined using the system of equations below. 3x + 2y = 36.50 2x + 5y = 50.00 At which job does Percy earn the greater hourly wage? How much does Percy earn each hour at this job? Percy earns a greater hourly wage of $7.00 at the library. Percy earns a greater hourly wage of $7.00 at the coffee cart. Percy earns a greater hourly wage of $7.50 at the library. Percy earns a greater hourly wage of $7.50 at the coffee cart.

 

"Not answered?"


Get the Answer

write my assignment 10490

3. (18 points) You are the manager of a firm that produces products X and Y at 0 marginal cost. You know that different types of consumers value your two products differently, but you are unable to identify these consumers individually at the time of the sale. In particular, you know there are three types of consumers (1000 of each type) with the following valuations Consumer 1: Good X- $90, Good Y- $60…..Consumer 2: Good X- $70, Good Y- $140…Consumer 3: Good X- $40, Good Y- $160

a. (4 points) What are your firm’s profits if you charge $40 for product X and $60 for product Y?

b. (4 points) What are your firm’s profits if you charge $90 for product X and $160 for product Y?

c. (4 points) What are your firm’s profits if you charge $150 for a bundle containing 1 unit of product X and 1 unit of product Y?

d. (6 points) What are your firm’s profits if you charge $210 for a bundle containing 1 unit of product X and 1 unit of product Y but also sell the products individually at a price of $90 for product X and $169 for product Y?

 

"Not answered?"


Get the Answer