Answered step by step
Verified Expert Solution
Link Copied!
Question
1 Approved Answer

Question 1 [ 1 5 marks ] Two students who work for a Data Centre have written a program in C + + which is

Question 1[15 marks]
Two students who work for a Data Centre have written a program in C++ which is capable
of converting any number into a 12 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 1s complement approach. These are D0 through to D11 where D0 represents the
most significant bit while D11 the least significant bit.
a) What output would the program give for the inputs (i.),(ii.) & (iii.) in Unsigned Mode.
i.718[2 marks]
ii.19C16[2 marks]
iii. 47610[2 marks]
b) What would be the output for Signed mode with the new inputs (i.),(ii.) & (iii.).
i.-20[2 marks]
ii.+37[2 marks]
iii. -15[2 marks]
do all questions please

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image
Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

How Do I Use A Database Research Tools You Can Use

Authors: Laura La Bella

1st Edition

1622753763, 978-1622753765

More Books

Students explore these related Databases questions