Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

CSCI 1470 University of Central Arkansas Lab 5 Assignment #3 Topic: Selection (switch statement)) Reading: Chapter 4 Point Value: 10 points Note: Include the following

image text in transcribed

CSCI 1470 University of Central Arkansas Lab 5 Assignment #3 Topic: Selection (switch statement)) Reading: Chapter 4 Point Value: 10 points Note: Include the following set of comments at the top of your source code for all assignments. //Your Name //Brief description of the purpose of the program (Example: Displays student information.) Assignment: (Save this file as Lab5-3-YourLastName.cpp) An Internet service provider has three different subscription packages for its customers Package A: $9.99/month for 10 hours of access provided with any additional hours charged at $2.99 per hour Package B: $14.99/month for 20 hours of access provided with any additional hours charged at $1.99 per hour Package C: $19.99 per month unlimited access Write a program that calculates and displays a customer's monthly bill. It should prompt for the customer's name, the month being billed for, which package the customer purchased and how many hours were used. It should then display the customer's bill. Prompt for the customer's name and the current month being billed for a. Display a menu to allow the user to enter the desired Internet Package and use a switch statement to calculate the monthly charge based on their Package choice b. Display an "ERROR MESSAGE" if the hours entered is less than 0 or greater than 744. (The customer cannot use a negative amount of access time nor can they be charged for more time than there is in one month 24 hours a day times 31 days which is a maximum of 744 hours.) c. Use the appropriate symbolic (named) constants Sample Input: Please enter the customer's name: John Jones Please enter the current billing month:? June ackage Options: Package Package B Package C Enter the package purchased (A, B, or C): ?B How many hours did the customer use? 43.5

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access with AI-Powered Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions