Question: Question 1 [ 1 5 marks ] Two students who work for a Data Centre have written a program in C + + which is
Question marks
Two students who work for a Data Centre have written a program in C which is capable
of converting any number into a bit binary number system. The program has two soft
buttons. The first is Unsigned & second is Signed which indicates the type of number
that is initially entered in the command prompt. For the Signed function the programs
uses the s complement approach. These are D through to D where D represents the
most significant bit while D the least significant bit.
a What output would the program give for the inputs iii & iii in Unsigned Mode.
i marks
iiC marks
iii. marks
b What would be the output for Signed mode with the new inputs iii & iii
i marks
ii marks
iii. marks
do all questions please
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
