---------------------------------------- ** On paper portion. Points: 25 points total, 6 points #1, 6 points #2, 4 points #3, 9 points #4 Last Name: First Name: 1) Do the conversion. Show your work. No credit if you don't show some work. 1a) Convert 99 decimal to binary. 1b) Convert 1101100 binary to decimal. 2) Answer the questions about C/C++ syntax and data types. 2a) List the 4 different data types that can be used for numbers, and say what is different about each. 2b) List the 6 comparison operators. 2c) List the 3 boolean operators. 3) Memorize program. Write down the code for the validInput.cpp program. It should ask the user for a number between 0 and 100 and check that what they typed is between 0 and 100. If it is, the program says "Ok". If not, the program says "Invalid input". 4) Be the computer. For each, keep track of the values of all the variables as the code runs - as we did in class. 4a) basic arithmetic. // code int x = 30, y = 11; float z = x * y; x = x - y * 2; y = y * 3 + y; y = (x + y) % 3; z = z / 10.0; cout << x << endl << y << endl << z << endl; // variable values. // // x: // // y: // // z: // // printed on screen: 4b) Boolean logic, conditionals. // code int x = 21; float f = 3.14; if (x < 0 || x > 10) { if (f <= 3.14 ) x = x / 2; else x = x - 2; f = f - 1.0; } else { if (f > 3.0) x = x * 2; else x = x + 2; f = f + 1.0; } x = (f <= 3.14 || x < 100) && (f > 0 && x > 0); cout << x << endl << f << endl; // variable values. // // x: // // f: // // printed on screen: 4c) Loops. // code int i = 5; int total=0; while (i < 10) { total = total + i; i += 2 } cout << i << endl << total << endl; // variable values. // // i: // // total: // // printed on screen: