Search for question
Question

3. [35 points] Write MATLAB codes that calculates the cost of renting a car according to the following price schedule: The MATLAB codes need to ask the user to enter

the number of days and and the number of miles driven. The program then displays the cost (rounded to cents) for the rent. (Hint: conditional statement scan be used; If I were to enter the number of days as 3 and the number of miles as 511, print out the following: The cost of the rent is $423.99)

Fig: 1

Fig: 2

Fig: 3