Question: Problem Statement A parking garage charges a $2.00 minimum fee to park for up to three hours. The garage charges an additional $0.50 per hour


Problem Statement A parking garage charges a $2.00 minimum fee to park for up to three hours. The garage charges an additional $0.50 per hour for each hour or part thereof in excess of three hours. The maximum charge for any 24-hour period is $10.00. This garage does not allow parking for longer than 24 hours at a time. Write a function garage yourLastName to calculate the parking charges for each customer. Also write how this function would be called in your main program garageTest yourLastName.m Input Data Parking hours Output Data . Total charge Before You Begin Start MATLAB (Start > All Programs> MATLAB R2013a) and change your Current Folder to the location of your hard drive (e.g., K:/MATLAB programs/) If you forget to do this, your MATLAB programs will not be accessible whenever the computers in this lab are cleared, which is throughout the semester 1. 2. In the Command Window, type edit garage yourLastName.m Me TI D shuld remg that the fle does not currenty exist, select OK so MATLAB will reate the file in your Current Folder
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
