For each of the given program segments, read the code and write the output in th
ID: 3830389 • Letter: F
Question
For each of the given program segments, read the code and write the output in the space provided below each gram. (Note: Do not execute these programs on a computer 30. What is output by the given program segment Assume that the ecnath header file has been included. I double x -5.49; 3 court ceil( x endi fabs(x) endl floor C x Your answer: 31. What is output by the following program segment when function fl is invoked? void flo f20 x cout x endi T end function fl void f20 int x 12 cout endl; 13 end function f2 Your answer: O 2012 Pearson Education, Inc, Upper Saddle River, NJ, All Rights ReservedExplanation / Answer
The outputs are as follows:
30.First Program
-5
5.49
-6
31.Second Program
10
5
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.