write acode program in c++

qb0qb0hb0
timer Asked: Dec 8th, 2015

Question Description


modular programming




1) Your program must convert values from Decimal to Binary, Decimal to Octal, and Decimal to Hexadecimal
using the Division Method only for each. Also, offer a bonus conversion of Binary to Decimal for the users as
well.
 The program you write must be able to handle all values up to 4 bytes in size (that’s 32 bits folks)
 Create an opening display screen which shows the new software title, the authors who created it
 Be sure to let the users know what the software will do on the next screen
 The code must include a menu which would allow the user to choose the conversion they want to use or
to quit the program
 Once the program solves the problem and shows the result, the menu must reappear to give the same
options to once more
2) The program must display the following menu (or very similar):
Welcome to the IE Decimal Conversion Program!
To choose a conversion, enter a number from the menu below
1) Decimal to Binary
2) Decimal to Octal
3) Decimal to Hexadecimal
4) Bonus: Binary to Decimal
5) Quit the program
 The switch ( ) function MUST be used to handle the decision-making from the above menu
 Once the program determines the conversion selected by the user, it must branch to the individual
function modules to calculate the necessary math
 Then, output of each solution must also be in its own function(s) as well
 Lastly, the user must be given the opportunity to do another conversion (go back to the initial menu) and
the program should not quit/end on its own unless the user chooses to do so (by selecting 5 in the menu).
3) Your output must show results up to 32 bits wide
Example, if I wanted to convert from the decimal value of 657066119 to binary, you output could look like this:
Your original decimal value of 657066119 is equivalent to the following binary value:
100111001010100000100010000111
Optionally…you could show the full 32 bits with leading zeros. The value would then be displayed as the
following:
00100111001010100000100010000111

User generated content is uploaded by users for the purposes of learning and should be used following Studypool's honor code & terms of service.

This question has not been answered.

Create a free account to get help with this and any other question!

Related Tags

Brown University





1271 Tutors

California Institute of Technology




2131 Tutors

Carnegie Mellon University




982 Tutors

Columbia University





1256 Tutors

Dartmouth University





2113 Tutors

Emory University





2279 Tutors

Harvard University





599 Tutors

Massachusetts Institute of Technology



2319 Tutors

New York University





1645 Tutors

Notre Dam University





1911 Tutors

Oklahoma University





2122 Tutors

Pennsylvania State University





932 Tutors

Princeton University





1211 Tutors

Stanford University





983 Tutors

University of California





1282 Tutors

Oxford University





123 Tutors

Yale University





2325 Tutors