Computers and Technology

Write a C++ program for the conversion of a decimal number to a binary, octal and hexadecimal equivalents within a given range of the upper and lower limits. Your program needs to follow the
following steps to give the desired output.
(1.a). Your program should ask to choose the upper limit from 256, 128, 32, 16, 8, 4, 2 only. If a
user enters a number other than these numbers, the program should display a message of wrong
entry and should ask for retry, otherwise continue to step (b).
(1.b). Your program should ask to enter the lower limit. The lower limit should be less than the
upper limit (of step 1.a) and greater than 0. If a user enters a number greater than the upper limit
or less than 0 (e. g., a negative value), then the program should display a message of wrong entry
and should ask for retry, otherwise continue to display the output.
(1.c). If a user enters the upper and lower limits correctly, then the program should print a table of
the binary, octal and hexadecimal equivalents of the given decimal numbers in the range of upper
and lower limits

answer
Answers: 3

Other questions on the subject: Computers and Technology

image
Computers and Technology, 22.06.2019 15:00, miracle9704
Atool that matches persoal skills qualities interests and talets to a career is called a
Answers: 1
image
Computers and Technology, 24.06.2019 13:00, toshahoskins0098
What are some websites that you can read manga (ex: manga rock)
Answers: 1
image
Computers and Technology, 24.06.2019 23:00, elha20
The valves of the heart and veins are similar in that they both
Answers: 1
image
Computers and Technology, 25.06.2019 06:30, priscillaoliver5214
If she presses the left arrow , what will happened
Answers: 1
Do you know the correct answer?
Write a C++ program for the conversion of a decimal number to a binary, octal and hexadecimal equi...

Questions in other subjects:

Konu
Mathematics, 09.12.2021 01:00