An ISP has 3 different subscription packages
a) $19.95 per month, 5 hours access. Additional hours
are $0.75 up to 20 hours then $1 for all additional
hours.
b) $24.95 per month, 15 hours access. Additional hours
are $0.75 up to 25 hours then $0.50 for each
hour above this limit.
c) $29.75 per month unlimited access
Write a program that calculates a customers monthly bill. Ask which
package, and how many hours then display the monthly charge. Also, output
when customers should transition to another package to save money.
No idea what c++ is just doing this with basic maths cause im bored.
a) $35 for 25 hrs not including additional
b) $44.70 for 40 hours not inc additional
c) Get C
Sorry i couldnt help
Let number of hours be x;
let monthly charge be y;
make a switch case for the choices
then according to the pick calculate the monthly charge
if else loops would be used here
compare the x with the given number of hours in choice like
if(x<=5) elseif(5<x<21)
like this you can calculate the monthly charge.
hope i helped
i might be wrong though
(Feb 03 2015, 04:58 AM)Dragon Wrote: [ -> ]Let number of hours be x;
let monthly charge be y;
make a switch case for the choices
then according to the pick calculate the monthly charge
if else loops would be used here
compare the x with the given number of hours in choice like
if(x<=5) elseif(5<x<21)
like this you can calculate the monthly charge.
hope i helped
i might be wrong though
didnt know you do programming
(Feb 03 2015, 09:52 AM)Angel Wrote: [ -> ] (Feb 03 2015, 04:58 AM)Dragon Wrote: [ -> ]Let number of hours be x;
let monthly charge be y;
make a switch case for the choices
then according to the pick calculate the monthly charge
if else loops would be used here
compare the x with the given number of hours in choice like
if(x<=5) elseif(5<x<21)
like this you can calculate the monthly charge.
hope i helped
i might be wrong though
didnt know you do programming
I do.I think I told you oO
(Feb 03 2015, 10:59 AM)Dragon Wrote: [ -> ]I do.I think I told you oO
really? what do u do? student? or already work?
(Feb 03 2015, 03:07 PM)Angel Wrote: [ -> ] (Feb 03 2015, 10:59 AM)Dragon Wrote: [ -> ]I do.I think I told you oO
really? what do u do? student? or already work?
just finished my B.tech :v
u ass
you can ask in steam chat :O
bish asss
what is this even for jimmy? lol