Convert decimal 6,514 to both BCD and ASCII codes. For ASCII, an even parity bit is to be appended at the left.
1.22
Ans: A number with k decimal digits will require 4k bits in BCD.
So Decimal 6514 requires 16bits in BCD
(6514)₁₀= (0110 0101 0001 0100) BCD
ASCII is a seven‐bit code
(0 0110110 0110101 0110001 0110100)ASCII
The ‘0’ in the left most position is the even parity.