Question

Done in Java using Apache NetBeans IDE 11.2 -- Objectives: To create a data structure with...

Done in Java using Apache NetBeans IDE 11.2 -- Objectives: To create a data structure with underlying linked chain; To utilize and implement code dealing with parity big codes for error detection; To read data from file

**The other answer when searching for this question does not have a ParityChain class, a ParityChainDemo class or even include some of the stated requirements (such as hasError method).

**Parity bit was specified by instructor to be LEFT most bit in chain

In this project, you will read bits (0s and 1s) from a file. On each line there will be 8 bits. You must read them into memory and store each bit in a node in a linked chain.

We will use an error detection technique called parity bits. We will specifically use even parity. So, 7 bits represent data and one bit represents the parity. What this means is if there are, for example, an odd number of 1s in the actual data, the parity bit (first bit) is set to 1 to make the number of 1s even. If there is an even number of 1s in the actual data, then we set the parity bit (first bit) to 0.

We know there is an error if the byte (8 bits) we receive ever has an odd number of ones in it, because there should be an even number.

So the input on a single line might contain the following:

0 1 1 1 1 1 0 1

Since we read this and found six 1s, this byte is assumed to be error free (in our scheme.)

But if we read the following:

1 1 1 0 1 1 1 1

By the time we get it, there are seven 1s, so that’s an odd number of 1s. This means there must be an error somewhere.

Your assignment does not require you to fix the errors. However, your ParityChain class must know if it has an error or not (hasError method, which returns true or false). Also, you should be able to tell the chain to print out its bits.

You must read an arbitrary number of bytes (lines of 8 bits with spaces in between) from file. Each “firstNode” may be placed into an ArrayList, but the enter chain itself must be linked, and made manually by you (with nodes.)

0 0
Add a comment Improve this question Transcribed image text
Know the answer?
Add Answer to:
Done in Java using Apache NetBeans IDE 11.2 -- Objectives: To create a data structure with...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • **I asked this question once, and the answer completely ignored a majority of the rules listed...

    **I asked this question once, and the answer completely ignored a majority of the rules listed on this. PLEASE read what is necessary before giving an answer. **NEITHER answer when searching for this question has a ParityChain class, a ParityChainDemo class or even include some of the stated requirements (such as hasError method). **Parity bit was specified by instructor to be LEFT most bit in chain Done in Java using Apache NetBeans IDE 11.2 -- Objectives: To create a data...

  • ****************IN C PROGRAMMING**************** Sometimes even the smallest change in data can make a big difference. Luckily,...

    ****************IN C PROGRAMMING**************** Sometimes even the smallest change in data can make a big difference. Luckily, there are algorithms that will let us not only detect when there has been an error(like checksums), but also correct when an error has occurred. These algorithms are called error-correcting codes.There are many examples of error correcting codes but one of the simplest examples is called a parity bit. A parity bit is just a single bit (1 or 0) that indicates whether a...

  • Extra problem: Use the attached sheet to draw a 8- bit odd parity generator and a...

    Extra problem: Use the attached sheet to draw a 8- bit odd parity generator and a odd-parity checker for the 8 data bits and odd parity bit. Let the Error output be active-low (so that it goes low if there is an error and is high if there is no error) Parity Error-Detection System Using 74280s, design a complete parity generator/checking system. It is to be used in an 8-bit, even-parity computer configuration. Solution: Parity generator: Because the 74280 has...

  • Given the data-bits m = 11010110 , determine the number of k (parity-bits) by using Hamming...

    Given the data-bits m = 11010110 , determine the number of k (parity-bits) by using Hamming Code requirements. Illustrate the error detection and correction scheme using Hamming code method, for both the sender and receiver to detect an error at the following positions: a. 6 th bit position . b. 11 th bit position . Assume an odd-parity scheme for this problem. You must show detailed calculations to receive full-credit.

  • Write a program in 68K assembly code that adds an odd parity to each ASCII character....

    Write a program in 68K assembly code that adds an odd parity to each ASCII character. Your code must satisfy the following specifications: 1. Define the following 64 characters in the SRC address.SRC:DC.B 'Computing and Software Systems, University of Washington Bothell' 2. Define the 64-byte space.DST:DC.B 64 3. Read each of the 64 characters, (i.e., each byte) into D0, check the number of 1s in it, set 1 to the MSB with "ORI.B #$80, D0" to create an odd parity,...

  • 7. Show parity using odd I's with double parity, for following data 11001101110. (10 pt.) UG 8. Show the hamming code for any 6-bit data. (10pt.) 9. What are the polynomial equivalence of fol...

    7. Show parity using odd I's with double parity, for following data 11001101110. (10 pt.) UG 8. Show the hamming code for any 6-bit data. (10pt.) 9. What are the polynomial equivalence of following bits. (10 pt.) 1100101 0011101 1110001 010100 Assume a sender has the following data frames. Suppose the sender using burst error detection/correction. Show the actual row and column that is send and received. (10pt.) 1- 0110 2- 1101 3- 0011 4- 0101 11. In terms of...

  • In this assignment you are to utilize the Node data structure provided on Blackboard. In this...

    In this assignment you are to utilize the Node data structure provided on Blackboard. In this assignmet you are to write a main program that implements two methods and a main method as their driver. So, only main and two methods with it. Note: You may not use any of the LinkedList class provided on Blackboard, you may use the methods in it as a guide (you should actually look at them) but you cannot use any of the methods...

  • All that is needed is to fill in that one area that says "Student provides missing...

    All that is needed is to fill in that one area that says "Student provides missing code to compare computed hammingCode[] bits to the codeword[] bits to determine the incorrect bit." in the code below. THAT IS ALL THAT IS NEEDED PLUS SCREENSHOT OF COMPILED OUTPUT AFTERWARDS. Please TAKE SCREENSHOT of the compiled output which should look similar to the sample one provided. //------------------------------------------------------ // Problem #6 // Problem6.c //------------------------------------------------------ #include <stdio.h> #include <stdlib.h> #include <stdbool.h> #include <string.h> #include <math.h>...

  • an someone explain how to do this? I understand how to do this when there are...

    an someone explain how to do this? I understand how to do this when there are 12 bits like 0x72e. but this hex number has only 8 so i dont get it.    Error Correction, 5 Data bits are interspersed among the parity bits Let pi be the i-th parity bit i means read i, skip i Let di be the j-th data bit Let's encode 0x9A 1001 1010 We'll need 4 parity bits p1 checks positions 1, 3, 5,...

  • Objective: Creating a register file (memory) using Verilog. The register file is made up of four registers and each...

    Objective: Creating a register file (memory) using Verilog. The register file is made up of four registers and each register holds one nibble (half a byte, i.e., four bits) 3. Create a D flip-flop AD flip-flop holds 1 bit of data, and it only changes its data when the clock changes. We want a positive edge triggered flip-flop. Design your Verilog D flip-flop, so we will create them now. Enter the 2 to 4 line decoder. We will need two...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT