The mall car park: the first 2 hours are free, then each hour costs 5, but never more than 30 for the day. Write parking_fee(hours) to return what to pay (hours is a whole number of hours).
parking_fee(1)→0parking_fee(4)→10int parking_fee(int hours)int parking_fee(int hours) {
int fee = 0;
// your code here: over 2 hours, fee is the extra hours times 5
// your code here: if fee is over 30, make it 30
return fee;
}
Run tries the examples. When they look right, Submit.