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

28. What is the final value of the following program segment? 4 double result; r

ID: 3738690 • Letter: 2

Question

28. What is the final value of the following program segment? 4 double result; result-4-25%3 ; 29. (3 pts) What are the values of the following logical conditions given: Al B a. (A&&B;)II B&& C) 30. X=1.5 Y-8.6 K" 10 True or false Y-K>X7 31. A CONTINUE statement is used to immediately exit from a loop Tor F 32. Which loop implementation will t out of data ? a. end-of-data b. sentinel c.counter- controlled d. for loop terminate a loop by a single special value being entered but not due to running 33. what technique to end a loop would you use if you knew in advance how many data values you were going to use but not due to running out of data? a. end-of-data Given this program setment b. sentinel c. counter-controlled d. for loop Int moon(O), play: For ( play-0:playc4; play++) moon moon+play; cout

Explanation / Answer

Please find the answer for first 8 question. Remaining is just need to run on c++ compiler.

28 => 4 -25%3 = 3 (25%3 is reminder when divide by 3 = 1)

........................................

29 =>

a = 1 A&&B is 1. so result will be one as or is there

b = 0 all are and so due c result will be zero

c= 1 !C&& B will result 1

........................................

30 => 0 y-k will be 1.4

........................................

31 => F continue will take controller back to loop

........................................

32 That is sentinel loop that will keep loop controlled using variable

........................................

33 for loop -for loop will loop through the list of data those are known

........................................

34 screen will print moon = 10 and play = 4

........................................

35 loop will run 5 times

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