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)



Submit query

Getting answers to your urgent problems is simple. Submit your query in the given box and get answers Instantly.

Submit a new Query

Please Add files or description to proceed


Assignment is successfully created