Show the value of x after each of the following statements is performed:
a) x = fabs( 7.5 )
b) x = floor( 7.5 )
c) x = fabs( 0.0 )
d) x = ceil( 0.0 )
e) x = fabs( -6.4 )
f) x = ceil( -6.4 )
g) x = ceil( -fabs( -8 + floor( -5.5 ) ) )
a) 7.5
b) 7.0
c) 0.0
d) 0.0
e) 6.4
f) -6.0
g) -14.0
Computer Science & Information Technology
You might also like to view...
What is the efficiency of linear search?
a. O(1). b. O(log n). c. O(n). d. O(n2).
Computer Science & Information Technology
What are the benefits of containers compared to full virtual machines?
What will be an ideal response?
Computer Science & Information Technology
What technologies have largely replaced infrared (IR) technology?
What will be an ideal response?
Computer Science & Information Technology
WiMax and UMB are competing standards for ______.
A. Ethernet B. LTE C. Wi-Fi D. Bluetooth
Computer Science & Information Technology