Question: This project is on c++ Program Requirements 1. The project shall be called: Week2 ConvDec2Binary. 2. Input a. Allow user to input an integer from
Program Requirements 1. The project shall be called: "Week2 ConvDec2Binary". 2. Input a. Allow user to input an integer from 0 -> 2,000,000. b. Validate the input. If input is invalid, make them enter a value again. 3. Processing a. Use the Division method for converting Decimal to Binary. i. Divide the quotient by 2. ii. Get the remainder after dividing by 2. Save the remainders. They are the answer b. Loop and divide the test number by 2. Loop until the quotient is zero. c. Note: Remember remainders are given in reverse order (LSB first). 4. Output a. At beginning of the program, display some kind of welcome message, stating to the user what this program does. b. When printing the results, display both the original decimal value and the calculated binary value. Display the output in a nice format. 5. Testing a. Extensively test your program. Test with all type of integers values; valid and invalid data. b. I will use a set of test data to evaluate your program
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
