The cost of renting a car is $125 a day. Write a function for the situation wher
ID: 2937122 • Letter: T
Question
The cost of renting a car is $125 a day. Write a function for the situation where d represents the number of days. cd = 125d + 125 / 24d c(d) = 125[d + 1] c(d) = [125d if [[d]] = d 125[[d + 1]] if [[d]]Explanation / Answer
SOLUTION ----> Choice( C) EXPLANATION: Cars are rented based on number of days or fraction thereof. Thus, (3 days) would be charged {3*$125}, but (3.2 days) would be charged {4*$125}. Notation "[[ ]]" signifies the integer portion of its argument. Hence, if {d = [[ d ]]}, charge amount should be {d*$125}. However, if {d > [[ d ]]}, then extra day is charged so total amount would be {[[ d + 1 ]]*$125}. Choice(C) is the correct response. .
Related Questions
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.