Question: Hello, I need some help with a MATLAB problem I was given. All the givens are stated below. Thank you for the help in advance!
Hello, I need some help with a MATLAB problem I was given. All the givens are stated below. Thank you for the help in advance!
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 the Salt Lake International Airport during the summer of 2016.
Long-Term (Economy) Parking
o The first hour is $2.00, and each additional hour or fraction thereof is $1.00
o Daily maximum $9.00
o Weekly maximum $60.00
Short-Term Parking
o The first 30 minutes are $2.00 and each additional 20 minutes or fraction thereof is $1.00
o Daily maximum $32.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
