Determining the format of the number to be entered first -


HOMEWORK

1) Determining the format of the number to be entered first (binary, decimal and hexadecimal)

This should be done using the CheckBoxes found in the interface.

- Access to the other two text boxes outside the relevant text box according to the preferred option

- When Binary is selected, the corresponding TextBox must be set to 1 or 0 only. And also When binary is selected, 0b per line should be automatically written to the TextBox.

- When Hexadecimal is selected, 0X per textbox should be written automatically. Again, When hexadecimal is selected, only the numbers 0-9 or A-F English characters between ;

2) After that, it will be selected how many bits should be expressed. Here 8 bit and 16 bit options

- If the number entered cannot be expressed as 8 or 16 bits according to the selected bit value, the program

"The number entered is 8/16 (whichever is selected) cannot be expressed in bits" warning (Example given in the annexes) (Annex 1)

3) When the numbers are signed (signed) or unsigned (unsigned)

- If the unsigned option is selected and a negative number is entered, the program
Should give warning. (Example given in the annexes) (Annex 2)

4) The operation should be done not only for integer (integer) numbers but also for float (real number) numbers.

The format and bit number (32 bit or 64 bit) of the entered number must be selected again.

(Floating point numbers are also expressed in the selected bit, and only the corresponding format

The selection of TextBox is valid.)

The operation of the program for the sample numbers is given in Annex 3 to Annex 6.

The floating point conversion for 32 bits will be explained in detail. (A similar for 64 bit

Demonstration and is given in Annex 7).

32 bit float representation
- 1 bit sign bit,
- 8 bit Exponent;
- 23 bit Mantissa shape.

I E E E E E E E E M M M M M M M M M M M M M M M M M M M M M M M

The sign bit varies depending on whether the count is positive or negative. If the number is positive

The sign bit is 0; the sign bit is 1 if it is negative;
- If Exponent is the integer part of the number,
. This value is the bias (27
-1 = 127) and writes with 8 bits

Is the value formed?

- Mantissa is the root value of the number. Mantissa is described in detail in the example.

Request for Solution File

Ask an Expert for Answer!!
Computer Engineering: Determining the format of the number to be entered first -
Reference No:- TGS01718091

Expected delivery within 24 Hours