Question
An Internet service provider has three different subscription packages for its customers: Package A: $9.95 per month 10 hours of access are provided. Additional hours
An Internet service provider has three different subscription packages for its customers:
Package A: $9.95 per month 10 hours of access are provided. Additional hours are $2.00 per hour.
Package B: $14.95 per month 20 hours of access are provided. Additional hours are $1.00 per hour.
Package C: $19.95 per month unlimited access is provided.
Write a MATLAB script to calculates a customers monthly bill. It should ask which package the customer has purchased and how many hours were used. It should then display a message with the hours and the total amount due, correct to two decimal places.
Also displays how much money Package A customers would save if they purchased packages B or C, and how much money Package B customers would save if they purchased Package C. If there would be no savings, no message should be printed. Input Validation: Be sure the user only selects package A, B, or C. Also, the number of hours used in a month cannot exceed 744. Display an error message and exit the program if user enters incorrect information.
I would really appreciate any help guys, thanks!
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started