Background
Problem: Complete Chapter 4. Loops – End-of-Chapter Exercises – Practice Exercises – E4.17. From the textbook: Big C++: Late Objects, Enhanced:
Practice Exercises E4.17
Write a program that reads a number and prints all of its binary digits: Print the remainder number % 2, then replace the number with number / 2. Keep going until the number is 0. For example, if the user provides the input 13, the output should be
1
0
1
1
Horstmann, C. S. (2017). Big C++: Late Objects, Enhanced eText (3rd ed.). Wiley Global Education US.
Design Specification: Verify that the program design aligns with the description of the desired interface, including prompts for input and output. Remember that the design should clearly communicate the purpose of the program, the desired behavior the user should engage in, and the results with effective labeling of the output.
Functional Specification: Verify that the program functions based on the desired capability and process as described in the program description. Instructions
After analyzing the problem and specifications described in the background above, in a Word document, create the pseudocode (language agnostic and using conventions in the text) that describes the algorithm and logic for the proposed solution to the problem scenario. Verify that the algorithm and logic are well structured (unambiguous, executable, and terminating) based on conventions described in the reading. Create a C++ project in Visual Studio and translate the algorithm and logic described in pseudocode to a working program that has been tested and compiled. Ensure that a comment header (based on the template provided under Learning Resources) is included at the top of your .cpp file and that descriptive in-line comments that follow conventions described in the reading are used throughout your code. Create a single zip file containing your Visual Studio project folder and pseudocode document. Name the zip file using the following convention – LastNameFirstNameAssignmentNumber. Example: SmithJohnAssignment2
The first name for the Zip file is Maryam, last name is Jumah.
Background Problem: Complete Chapter 4. Loops – End-of-Chapter Exercises – Pract
By admin