Question: 3) (10 points) Tracing pseudocode: Trace the following pseudocode. List the values of COUNTER and ANSWER throughout and then show the final values. 1) Set

 3) (10 points) Tracing pseudocode: Trace the following pseudocode. List the

3) (10 points) Tracing pseudocode: Trace the following pseudocode. List the values of COUNTER and ANSWER throughout and then show the final values. 1) Set COUNTER to 0. 2) Set ANSWER to 100. 3) Divide ANSWER by 2 and set ANSWER to the new result 4) IF ANSWER is even, go back to step 3 and add 1 to COUNTER. IF ANSWER is odd, go to the next line. 5) Repeat lines 6 and 7 until COUNTER is greater than 3 6) Increase ANSWER by the value of COUNTER. 7) Increase COUNTER by 1. 8) While COUNTER is greater than or equal to 2 do lines 9 and 10. 9) Decrease ANSWER by 5 10) Decrease COUNTER by 1 11) Display ANSWER and COUNTER 4) (8 points) Data types: For each of the following, list the data type that would be most appropriate and efficient to use to store the information. Choose from: short int, int (same as long int), long long int, float, and double. Also include unsigned if appropriate. a. (2 points) The weight of a ball bearing to the nearest tenth of a gram. b. (2 points) The number of employees in a standard office building. c. (2 points) The temperature, in Celsius, to many, many significant digits. d. (2 points) The number of ants in Santa Clara County (over 100 trillion) 5) (8 points) char and ASCII: What will be the output of this code? The intention is for you to think about this and then determine the output NOT to type it in and run it... include using namespace std; int main() { char chari = 87; char char2 68; char char3 = 45; char char4 = 48; cout

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!