Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Does anyone know how to do this c++ problem
#1
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.
#2
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 Big Grin
[Image: 1552267_101.png]
#3
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 Big Grin
[Image: mrpa43.png]
#4
I stand by get C.
[Image: 1552267_101.png]
#5
(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 Big Grin
didnt know you do programming
[Image: Photo%20collage-climate%20scenarios-glob...k=rcowMNf5]
#6
(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 Big Grin
didnt know you do programming
I do.I think I told you oO
[Image: mrpa43.png]
#7
(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?
[Image: Photo%20collage-climate%20scenarios-glob...k=rcowMNf5]
#8
(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
[Image: mrpa43.png]
#9
(Feb 03 2015, 03:16 PM)Dragon Wrote: just finished my B.tech :v
u ass
you can ask in steam chat :O
bish asss

what is B.tech?
[Image: Photo%20collage-climate%20scenarios-glob...k=rcowMNf5]
#10
what is this even for jimmy? lol

Users browsing this thread: 1 Guest(s)