Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Does anyone know how to do this c++ problem
#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]

Messages In This Thread
RE: Does anyone know how to do this c++ problem - by Dragon - Feb 03 2015, 04:58 AM

Users browsing this thread: 1 Guest(s)