### Exercises

**7.7** What is the value of `x`

after each of the following statements is executed?

a) `x = Math.Abs( 7.5 );`

b) `x = Math.Floor( 7.5 );`

c) `x = Math.Abs( 0.0 );`

d) `x = Math.Ceiling( 0.0 );`

e) `x = Math.Abs( -6.4 );`

f) `x = Math.Ceiling( -6.4 );`

g) `x = Math.Ceiling( -Math.Abs( -8 + Math.Floor( -5.5 ) ) );`

**7.8 ***(Parking Charges)* A parking garage charges a $2.00 minimum fee to park for up to three hours. The garage charges an additional $0.50 per hour for each hour *or part thereof* in excess of three hours. The maximum charge for any given 24-hour period is $10.00. Assume that no car parks for longer than 24 hours at a time. Write an app that calculates and displays the parking charges for each customer who parked in the garage yesterday. You should ...