![]() |
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. |
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.
|
Looks like the PM I got, too. Perhaps you should read the FAQ/rules, there's a section titled, "homework".
|
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.
|
Five buck says he doesn't come back
|
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 :)
|
@Dameon: It can be the next PFO project! ;)
|
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.
|
Quote:
|
Quote:
|
| 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