Every C++ program starts with this function:____________________ 2. If A is > 100 I want cnt to be equal to 32 but if A 100 or less I want cnt to be 2. Write a single line using a conditional operator...

Every C++ program starts with this function:____________________ 2. If A is > 100 I want cnt to be equal to 32 but if A 100 or less I want cnt to be 2. Write a single line using a conditional operator to do this. 3. I want to store into B the remainder of dividing B by the total of A plus D. Write the statement: as a combined operator statement not using a combined operator 4. I want to print the following, including quotes, apostrophes and slashes "My system's programs are in c:\prog" Write the code below. 5. I have the following bit patterns stored in 2 variables, A and B. In the answer part of each column write the results of the following bitwise operations. A 1 1 0 0 1 1 0 1 1 1 1 1 0 1 1 1 0 1 1 1 0 1 1 B 1 0 1 0 1 0 1 1 1 0 0 1 0 1 0 1 1 1 1 0 0 0 1 operation ^ & | answer 6. Write an if ... else to do the following, all having to do with the variables A, B, C, D. Your answer should not have independent if statements but should be one if...else...if...else......... If the variable A is between 1 and 17, but not 10, print “hello” . 1 and 17 are included If the variable A is greater than 72 and also less than 100 print “Goodbye” or if the variable D is 12 print "Goodbye" If the variable A is between 200 and 300 while C is not 12 print “waiting” 7. Write the if statement which will satisfy the following conditions about the variables A, B, and C. a. If A is not equal to 23 at the same time that either B or D is equal to 11 then print the value of A otherwise print the value of B. b. If A is 23 at the same time that B is 3 then cout the value of C otherwise print “Bye”. 8. What is the value of the variable Number after each statement. Each answer is dependent on the previous answer. int Number=0; ___________________ Number = 100; __________________ Number /= 3 + 2; ________________ Number--; ________________ 9. Based on the last answer above, what will this print : cout
May 19, 2022
SOLUTION.PDF

Get Answer To This Question

Submit New Assignment

Copy and Paste Your Assignment Here