Question: Please write the matlab code for this problem correctly thank you Note: MATLAB has a menu function that generates a menu of choices for user
Note: MATLAB has a menu function that generates a menu of choices for user input. An example of the use of this function is the following code choice = menu ( ' Choose a color ' , ' Red' , ' Blue ' , ' Green' ) The number entered by the user in response to the prompt is returned as choice (i.e choice 2 implies that the user selected Blue). Practice the use of menu function Problem 1 Most major airports have separate lots for long-term and short-term parking. The cost to park depends on the lot you select, and how long you stay. Consider this rate structure from an International airport during September 2017 Long-Term Lot o The first hour is $1.00, and each additional hour or fraction thereof is $1.00 o Daily maximum $6.00 o Weekly maximum $42.00 Short-Term Lot The first 30 minutes are free and each additional 20 minutes or fraction thereof is $1.00 o o Daily maximum $25.00 Write a program that asks the user the following .Which lot are you using? How many weeks, hours, days, and minutes did you park? Your program should then calculate the parking bill
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
