Feb 03 2015, 09:52 AM
(Feb 03 2015, 04:58 AM)Dragon Wrote: Let number of hours be x;didnt know you do programming
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