An Internet service provider has three different subscription packages for its customers: Package A: $9.95 per month...

50.1K

Verified Solution

Question

Mechanical Engineering

An Internet service provider has three different subscriptionpackages for its customers:

Package A: $9.95 per month 10 hours of access areprovided.   Additional hours are $2.00 per hour.

Package B: $14.95 per month 20 hours of access areprovided. Additional hours are $1.00 per hour.

Package C: $19.95 per month unlimited access isprovided.

Write a MATLAB script to calculates a customer’s monthly bill.It should ask which package the customer has purchased and how manyhours were used. It should then display a message with the hoursand the total amount due, correct to two decimal places.

Also displays how much money Package A customers would save ifthey purchased packages B or C, and how much money Package Bcustomers would save if they purchased Package C. If there would beno savings, no message should be printed.

Input Validation: Be sure the user only selects package A, B, orC. Also, the number of hours used in a month cannot exceed 744.Display an error message and exit the program if user entersincorrect information.

I need it answered in MATLAB syntex

Answer & Explanation Solved by verified expert
3.5 Ratings (567 Votes)
    See Answer
Get Answers to Unlimited Questions

Join us to gain access to millions of questions and expert answers. Enjoy exclusive benefits tailored just for you!

Membership Benefits:
  • Unlimited Question Access with detailed Answers
  • Zin AI - 3 Million Words
  • 10 Dall-E 3 Images
  • 20 Plot Generations
  • Conversation with Dialogue Memory
  • No Ads, Ever!
  • Access to Our Best AI Platform: Flex AI - Your personal assistant for all your inquiries!
Become a Member

Other questions asked by students