Hey guys, I'm new to programming and I need a lot of help! It'd be greatly appreciated if anyone tells me what I should do to make this program work.
I have to write a program that calculates a customer’s monthly bill. It should ask which package the customer has purchased and how many hours were used. It should then display the total amount due.
Package A: For $9.95 per month 10 hours of access are provided. Additional hours are $2.00 per hour.
Package B: For $14.95 per month 20 hours of access are provided. Additional hours are $1.00 per hour.
Package C: For $19.95 per month unlimited access is provided.
It looks simple but I need major help! All I have is this
It can help to write out the steps of how you'd solve this on paper first before translating into C++ code - I've done this with the more complicated projects I've had to do for my class and it's really helped me.
Something like ...
Get information
- Ask customer which package they've purchased (save this info for later)
- Ask how many hours were used (save this info for later)
Calculate bill
If they have Package A and have used 10 hours or less, then the bill is $9.95.
If they have Package A and have used 10 hours or more, then the bill is $9.95 plus $2.00 times the number of hours over 10.