Write a procedure hamming

Assignment Help Data Structure & Algorithms
Reference no: EM13189301

Submit your programs by email. The program should have as many comments as necessary. The top comments should explain how to run and test the program. If any two assignments have the same code, zero marks will be assigned to the assignments.

Questions 1: Write a procedure hamming(ascii, encoded) that converts the low-order 7 bits of ascii into an 11-bit integer codeword stored in encoded.

Questions 2: Write a function distonce(code, n, k) that takes an array code of n characters of is bits each as input and returns the distance of the character set as output.

Question 3: An extended ASCII character is represented by an 8-bit quantity. The associated Hamming encoding of each character can than be represented by a string of three hex digits. Encode the following extended five-character ASCII text using an even-parity Hamming code: Earth. Show your answer as a string of hex digits.

Reference no: EM13189301

Questions Cloud

The investment turnover for chicks is: : Chicks Corporation had $1,100,000 in invested assets, sales of $1,210,000, income from operations amounting to $242,000, and a desired minimum rate of return of 15%.
Plant with the building requirements of a water purification : If you were going to build a water purification plant in Lake Michigan, explain how this would be done. Compare and contrast this plant with the building requirements of a water purification plant located in the Red Sea.
What is the estimated simple regression used by the consulta : A small business hires a consultant to predict the increase in weekly sales of their product when advertising is increased to $750. Over the past the consultant finds that the average spend on advertising is $500 per week and the average weekly sa..
Find the two other vertices in all possible cases : suppose that the points a and b are two vertices of a square. find the two other vertices in all possible cases.
Write a procedure hamming : Write a procedure hamming(ascii, encoded) that converts the low-order 7 bits of ascii into an 11-bit integer codeword stored in encoded.
How many are taking calculus but not algebra : At East Zone University (EZU) there are 565 students taking College Algebra or Calculus. 327 are taking College Algebra, 266 are taking Calculus, and 28 are taking both College Algebra and Calculus. How many are taking Calculus but not Algebra?
What is the most that you would pay to install the system : If you install the system, your insurance carrier will reduce your annual premium each year for the 10 year useful life of the system. Your insurance premium is due at the beginning of the year and you expect to save $350 the first year.
How long was the average commute in north dakota : In 2005, the average commuting time to work in New York was 31.2 min. The average commuting time in North Dakota was 14.9 min shorter. How long was the average commute in North Dakota?
Is the set of all irrational numbers countable : Prove that there exist real numbers which are not algebraic.

Reviews

Write a Review

Data Structure & Algorithms Questions & Answers

  Find the minimum cost path from a designated node

Find the Minimum Cost Path from a designated start node to a designated destination node in a graph.

  Implementing the banker algorithm

Prompt user to enter the size of matrix n and m. Your program should accept any n x m matrix and m vectors where n and m are positive integer less than ten.

  Astronaut.data must be read into a 1-d array

Data from the Astronaut.data must be read into a 1-D array of structures(or classes) named ASTRONAUT and thereafter all processing must be performed on the array of structures.

  Explain benefits of isdn

Sometimes ISDNs are used in locations that do not support DSL or cable modem connections. Your selections may be analog modems or an ISDN connection in those remote locations.

  Creating a table of xml documents

Make a table of XML documents with a type of XML. Use a primary key so add a field of type INT that is an identity. Insert many records into XML field in this new table.

  Data structures and algorithm design

Data Structures and Algorithm Design

  Clerical office placement setting

Determine what other databases would be known to benefit a clerical or job placement organization using databases?

  Perform the acyclic-topological sort algorithm

Perform the acyclic-topological sort algorithm on the directed graph having vertex set a-k and edges {(j; a);(j; g);(a; b);(a; e);(b; c);(c; k);(d; e);(e; c);(e; f);(e; i);(f; k); (g; d);(g; e);(g; h);(h; e);(h; i);(i; f);(i; k)} Show the state of th..

  Creating flowchart to compute and print the total sale

A coorporation's salesman are selling toothpaste and tooth powder. The corporation having fifty salesman gives 10% commission on the sale of toothpaste and 20 percent commission on tooth powder.

  Analyzing certain software properties affects

Describe how the lack of metrics for analyzing certain software properties affects the software engineering discipline.

  Creating code for a class called arrayqsn

Create all the code for a class called ArrayQsn. This class will contain 2-techniques. The first technique runningSumMean accepts an array of ints as a parameter, and will return the mean of the values as a double.

  Explaining view of header and footer areas of worksheet

In which view can you see header and footer areas of worksheet?

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