Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

This project is on c++ image text in transcribed
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

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

Step: 3

blur-text-image

Ace Your Homework with AI

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

Get Started

Students also viewed these Databases questions