Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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 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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started