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

Messages In This Thread
RE: Does anyone know how to do this c++ problem - by Call me when humans go extinct - Feb 03 2015, 09:52 AM

Users browsing this thread: 1 Guest(s)