True because i had heard my friend doing her homework and i was helping her study
Answer:
![\left[\begin{array}{ccccc}1&1&1&0&1\\0&1&1&0&0\\1&0&0&1&0\\1&1&0&1&1\\1&1&0&0&0\end{array}\right]](https://tex.z-dn.net/?f=%5Cleft%5B%5Cbegin%7Barray%7D%7Bccccc%7D1%261%261%260%261%5C%5C0%261%261%260%260%5C%5C1%260%260%261%260%5C%5C1%261%260%261%261%5C%5C1%261%260%260%260%5Cend%7Barray%7D%5Cright%5D)
Explanation:
To keep the checksum length minimum ,checksum field should be a 4x4 matrix with two dimensional even parity bit.
For this purpose first create a matrix of RxC dimensions and add one even parity bit at the end of each row and column.
parity bit is sort of a check flag used to detect errors in binary data.Error detection is done by adding total number of 1's in the binary sequence.
There are two types of parity bits
- Even
- Odd
For even parity if total number of 1 is even parity bit for that sequence would be (0).
For even parity if total number of 1 is odd parity bit for that sequence would be (1)
For odd parity if total number of 1 is odd parity bit for that sequence would be (0)
For odd parity if total number of 1 is even parity bit for that sequence would be (1)
Answer:
Both careers speak to an audience; however, people involved in the performing arts speak only to a live audience.
Explanation:
sorry im late but im not sure
Answer:
FileOutputStream out = new FileOutputStream("ObjectData.dat");
ObjectOutputStream ostream = new ObjectOutputStream(out);
ostream.writeObject(r);
Explanation:
For object serialization, we can use the writeObject method of java.io.ObjectOutputStream class.
The complete code fragment is as follows:
import java.io.*;
class Demo{
public static void main(String args[]){
try{
r = <Reference to Object to be serialized> ;
FileOutputStream out = new FileOutputStream("ObjectData.dat");
ObjectOutputStream ostream = new ObjectOutputStream(out);
ostream.writeObject(r);
ostream.close();
} catch(Exception e){
e.printStackTrace();
}
}
}