Question: Chapter 3 Please do the following lab exercises (10 points for each question). Name your file lab3.txt. 1. Suppose num1 and num2 are int variables

 Chapter 3 Please do the following lab exercises (10 points for

Chapter 3 Please do the following lab exercises (10 points for each question). Name your file lab3.txt. 1. Suppose num1 and num2 are int variables and symbol is a char variable. Consider the following input: 47 18 28 $ What value (if any) is assigned to num1, num2, and symbol after each of the following statements executes? (Use the same input for each statement.) a. cin >> numi >> symbol >> num2; b. cin >> symbol >> numi >> num2; c. cin >> numl; cin.get (symbol); cin >> num2; d. cin >> num1 >> num2; cin.get (symbol); e. cin.get (symbol); cin >> numi >> num2; 2. Suppose x and y are int variables and z is a double variable. Assume the following input data: 6.56 32 What value (if any) is assigned to x, y, and z after each of the following statements executes? (Use the same input for each statement.) a. cin >> x >> y >> 2; b. cin >> x >> z >> y; c. cin >> z >> x >> y

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!