Matlab Major Airports Separate Lots Long Term Short Term Parking Cost Park Depends Lot Sel Q37117409

**MATLAB

Most major airports have separate lots for long-term andshort-term parking. The cost to park depends on the lot you select,and how long you stay. Consider this rate structure from the SaltLake International Airport during the summer of 2008.

  • Long-Term (Economy) Parking

    • The first hour is $1.00, and each additional hour or fractionthereof is

      $1.00

    • Daily maximum $6.00

    • Weekly maximum $42.00

  • Short-Term Parking

    • The first 30 minutes are free and each additional 20 minutes orfraction

      thereof is $1.00

    • 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? Yourprogram

should then calculate the parking bill.


Solution


Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.