Implement an error-detection mechanism

Assignment Help Basic Computer Science
Reference no: EM131041285

The goal of this lab exercise is to implement an error-detection mechanism using thestandard CRC algorithm described in the text. Write two programs, generator andverifier. The generator program reads from standard input a line of ASCII text containingan n-bit message consisting of a string of 0s and 1s. The second line is the kbitpolynomial, also in ASCII. It outputs to standard output a line of ASCII text withn + k 0s and 1s representing the message to be transmitted. Then it outputs the polynomial,just as it read it in. The verifier program reads in the output of the generatorprogram and outputs a message indicating whether it is correct or not. Finally, write aprogram, alter, that inverts 1 bit on the first line depending on its argument (the bitnumber counting the leftmost bit as 1) but copies the rest of the two lines correctly.By typinggenerator <file | verifieryou should see that the message is correct, but by typinggenerator <file | alter arg | verifieryou should get the error message

Reference no: EM131041285

Questions Cloud

Privately owned retirement community : A privately owned retirement community and nursing home facility employs nurses, nursing assistants, home care workers, cooks and food service employees, as well as custodians and groundskeepers. These employees submitted sufficient authorization car..
What constants are needed for block sizes of 64 and 128 bit : The second subkey is derived in the same manner from thefirst subkey.a. What constants are needed for block sizes of 64 and 128 bits?
Create a network for this project : Do not include summary tasks in the network (i.e., 1.3, Ceremony, is a summary task; 1.2, Marriage license, is not a summary task). Do not consider who would be doing the task in building the network. For example, do not arrange ?hiring a band? to..
Problem regarding the arbitrage opportunity : If Company B's stock price is currently $360 and its intrinsic value is $390, what should you do as an investor? A) Do nothing because there is no arbitrage opportunity here
Implement an error-detection mechanism : The goal of this lab exercise is to implement an error-detection mechanism using thestandard CRC algorithm described in the text.
What is the difference between wet and dry oxidation : What is the difference between wet and dry oxidation? Which one is faster? Which one has a better quality?  What is FOX? Why FOX region goes under the wafer's surface? What is channel stop? Please explain why it is used
Distinguish personal property from real property : 1. Distinguish personal property from real property. 2. What is a fixture and from a legal point of view, is it part of or separate from land. 3. Distinguish joint tenancy from tenancy in common.
What is the wacc : The market value of equity is $325 million and the market value of debt is $525 million. The cost of equity is 14% the pretax cost of debt is 12% and the tax rate is 34%. What is the WACC?
Effective management strategies : Effective management strategies are the key to the continuing prosperity of tourist areas in the UK.

Reviews

Write a Review

Basic Computer Science Questions & Answers

  Identifies the cost of computer

identifies the cost of computer components to configure a computer system (including all peripheral devices where needed) for use in one of the following four situations:

  Input devices

Compare how the gestures data is generated and represented for interpretation in each of the following input devices. In your comparison, consider the data formats (radio waves, electrical signal, sound, etc.), device drivers, operating systems suppo..

  Cores on computer systems

Assignment : Cores on Computer Systems:  Differentiate between multiprocessor systems and many-core systems in terms of power efficiency, cost benefit analysis, instructions processing efficiency, and packaging form factors.

  Prepare an annual budget in an excel spreadsheet

Prepare working solutions in Excel that will manage the annual budget

  Write a research paper in relation to a software design

Research paper in relation to a Software Design related topic

  Describe the forest, domain, ou, and trust configuration

Describe the forest, domain, OU, and trust configuration for Bluesky. Include a chart or diagram of the current configuration. Currently Bluesky has a single domain and default OU structure.

  Construct a truth table for the boolean expression

Construct a truth table for the Boolean expressions ABC + A'B'C' ABC + AB'C' + A'B'C' A(BC' + B'C)

  Evaluate the cost of materials

Evaluate the cost of materials

  The marie simulator

Depending on how comfortable you are with using the MARIE simulator after reading

  What is the main advantage of using master pages

What is the main advantage of using master pages. Explain the purpose and advantage of using styles.

  Describe the three fundamental models of distributed systems

Explain the two approaches to packet delivery by the network layer in Distributed Systems. Describe the three fundamental models of Distributed Systems

  Distinguish between caching and buffering

Distinguish between caching and buffering The failure model defines the ways in which failure may occur in order to provide an understanding of the effects of failure. Give one type of failure with a brief description of the failure

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