Programming Forums

Programming Forums (http://www.programmingforums.org/forumindex.php)
-   C++ (http://www.programmingforums.org/forum15.html)
-   -   solving a problem... (http://www.programmingforums.org/showthread.php?t=13677)

mae67 Jul 31st, 2007 7:32 PM

solving a problem...
 
can anyone help me how to solve this problem...

The cost of a long distance call is based on the destination; the time of day the call was made, as well as the duration of the call. The rates are as follows:

America Region
Asian Region
African Region
Europe Region

DAYTIME
50 every 3 minutes
30 every 2 minutes
40 every 3 minutes
35 every 2 minutes

NIGHTTIME
45 every 3 minutes
27 every 2 minutes
36 every 3 minutes
30 every 2 minutes


it is using a switch statement.

Booooze Jul 31st, 2007 7:49 PM

Looks an awful lot like the PM you just sent me. I reckon it's homework too. Is it online? Let's see the link to the question.

DaWei Jul 31st, 2007 8:31 PM

Looks like the PM I got, too. Perhaps you should read the FAQ/rules, there's a section titled, "homework".

King Jul 31st, 2007 8:45 PM

I have no problem helping people with their homework. But I do have a problem helping people with their homework when they have made no attempt at the problem on their own. My suggestion would be to actually try it and if you can't get it post the code you have so far and we can point you in the right direction. You will never learn if you don't try things on your own.

Booooze Jul 31st, 2007 9:31 PM

Five buck says he doesn't come back

Dameon Jul 31st, 2007 9:48 PM

When something like this comes up again, I propose that the first reply consist of a seemingly valid solution that in actuality displays "Do your own homework." Bonus points if the string constant doesn't appear in the source :)

lectricpharaoh Aug 1st, 2007 2:00 AM

@Dameon: It can be the next PFO project! ;)

Z3nathur Aug 1st, 2007 2:07 AM

Mae, do you mind if i copy down that question? in a little while when i get to switches i'd like to use it as a problem.

peace_of_mind Aug 1st, 2007 8:26 AM

Quote:

Originally Posted by Z3nathur (Post 131458)
Mae, do you mind if i copy down that question? in a little while when i get to switches i'd like to use it as a problem.

Methinks Mae will not be returning. Since this is obviously homework or at the very least a problem put to her by someone (given she has no clue where to even begin solving it) I'd say it's safe for you to just go ahead and copy it on down and knock yourself out. :beard:

Z3nathur Aug 1st, 2007 10:25 PM

Quote:

Originally Posted by peace_of_mind (Post 131480)
Methinks Mae will not be returning. Since this is obviously homework or at the very least a problem put to her by someone (given she has no clue where to even begin solving it) I'd say it's safe for you to just go ahead and copy it on down and knock yourself out. :beard:

Hehe well i guess i get the spoils from this one.


All times are GMT -5. The time now is 10:18 AM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC