I need to make a program that calculates cost for internet usage. The package costs 9.95 for 10 hours and is $2 extra per hour over that. I need help on how to add the extra hours to the total cost. Any help is greatly appreciated.

Thanks

Printable View

- 11-04-2008, 05:07 AMjls7168little help
I need to make a program that calculates cost for internet usage. The package costs 9.95 for 10 hours and is $2 extra per hour over that. I need help on how to add the extra hours to the total cost. Any help is greatly appreciated.

Thanks - 11-04-2008, 05:27 AMEranga
Is this a Java related question, not right? First of all you need a mathematical model to evaluate this. Just think if you have 12 hour usage, how did you calculate the cost.