An ISP has 3 different subscription packages a) $16.99 per month, 10 hours access. Additional hours are $0.95 up to 20 hours then $0.85 for all additional hours. b) $26.99 per month, 20 hours access. Additional hours are $0.74 up to 30 hours then $0.64 for each hour above this limit. c) $36.99 per month unlimited access Input package a,b, or c, hours access then outputs dollar amount with package they should switch to save most amount of money. Calculate the money saved and output as well. Prompt ISP charges for service delivered. Input package A,B,C then hours used for the month Input a 5 Output $16.99 A $0.00 So choosing package a) with 5 hours of access gives a charge of $16.99 and A is the lowest package with $0.00 dollars saved. Input a 55 Output $56.24 C $19.25 So you are charged $56.24 but choosing package C saves 19.25 Input b 45 Output $43.99 € $7.00 So you are charged $43.99 but choosing package C saves $7.00

Systems Architecture
7th Edition
ISBN:9781305080195
Author:Stephen D. Burd
Publisher:Stephen D. Burd
Chapter14: System Administration
Section: Chapter Questions
Problem 5VE
icon
Related questions
Question

Hello, I would like assistance on writing a C++ program for this problem without using a double. Thank you

An ISP has 3 different subscription packages
a) $16.99 per month, 10 hours access. Additional hours
are $0.95 up to 20 hours then $0.85 for all additional
hours.
b) $26.99 per month, 20 hours access. Additional hours
are $0.74 up to 30 hours then $0.64 for each
hour above this limit.
c) $36.99 per month unlimited access
Input package a,b, or c, hours access then outputs dollar amount with package they should switch to save most amount of money. Calculate the money saved
and output as well.
Prompt
ISP charges for service delivered.
Input package A,B,C then hours used for the month
Input
a 5
Output
$16.99 A $0.00
So choosing package a) with 5 hours of access gives a charge of $16.99 and A is the lowest package with $0.00 dollars saved.
Input
a 55
Output
$56.24 C $19.25
So you are charged $56.24 but choosing package C saves 19.25
Input
b 45
Output
$43.99 C $7.00
So you are charged $43.99 but choosing package C saves $7.00
Transcribed Image Text:An ISP has 3 different subscription packages a) $16.99 per month, 10 hours access. Additional hours are $0.95 up to 20 hours then $0.85 for all additional hours. b) $26.99 per month, 20 hours access. Additional hours are $0.74 up to 30 hours then $0.64 for each hour above this limit. c) $36.99 per month unlimited access Input package a,b, or c, hours access then outputs dollar amount with package they should switch to save most amount of money. Calculate the money saved and output as well. Prompt ISP charges for service delivered. Input package A,B,C then hours used for the month Input a 5 Output $16.99 A $0.00 So choosing package a) with 5 hours of access gives a charge of $16.99 and A is the lowest package with $0.00 dollars saved. Input a 55 Output $56.24 C $19.25 So you are charged $56.24 but choosing package C saves 19.25 Input b 45 Output $43.99 C $7.00 So you are charged $43.99 but choosing package C saves $7.00
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 4 steps with 6 images

Blurred answer
Knowledge Booster
Linux
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Systems Architecture
Systems Architecture
Computer Science
ISBN:
9781305080195
Author:
Stephen D. Burd
Publisher:
Cengage Learning
LINUX+ AND LPIC-1 GDE.TO LINUX CERTIF.
LINUX+ AND LPIC-1 GDE.TO LINUX CERTIF.
Computer Science
ISBN:
9781337569798
Author:
ECKERT
Publisher:
CENGAGE L
Np Ms Office 365/Excel 2016 I Ntermed
Np Ms Office 365/Excel 2016 I Ntermed
Computer Science
ISBN:
9781337508841
Author:
Carey
Publisher:
Cengage