Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

I need help with my homework: 1. (TCO 2) What are the values of the variables af

ID: 3540352 • Letter: I

Question

I need help with my homework:



1. (TCO 2) What are the values of the variables after the code fragment below executes if the input data is 37 86.56 32?

int x, y;
double z;
cin >> x;
cin >> y;
cin >> z;

(Points : 5)       x = 37, y = 86.56, z = 32
      x = 37, y = 86, z = 32
      x = 37, y = 86, z = 0.56
      x = 37, y = 86, z = 32.56

2. (TCO 10) For readability, all statements inside a loop body should be (Points : 5)       indented the same distance as the loop control statement.
      indented by one additional tab stop more than the loop control statement.
      surrounded by an open and closing parenthesis.
      written on the same line.

Explanation / Answer

1 . x = 37, y = 86, z = 32


2 . surrounded by an open and closing parenthesis.


3 . A comment block at the start of a program file should contain information about what the program does.


4 . Switch Statements


5. if(keepgoing == 'a' || keepgoing == 'A')


6 .


7 .



8 . any of the above


9.


10 .continue


11 while(answer != 'n' || answer != 'N')



For questions 6,7 and 9 , the image is not visible


Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote