| marp | true |
|---|---|
| title | Programming 1 - Homework 5 |
| author | Benjamin Wilking |
| theme | uncover |
| style | section { font-size: 30px } |
| class | invert |
| paginate | false |
Requirements: CMake, User Input, Basics in C #2
Create an executable to convert a decimal number to a binary number
- read in a decimal number from the user on the command prompt
- convert the number into a binary number.
- the binary number is represented as an unsigned long long
- us a while loop for your calculation
- print the binary number to the console
Create an executable to print two triangles to the console
-
read in the height for the triangles form the user on the command prompt
-
use two for loops to create two prints
Enter height: 5 * ** *** **** ***** * *** ***** ******* *********
Create a single CMake project to create two independent executables for the binary converter and the triangle printer from above.