![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Newbie
Join Date: Jul 2007
Posts: 3
Rep Power: 0
![]() |
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. Last edited by mae67; Jul 31st, 2007 at 7:38 PM. Reason: the problem is not complete. |
|
|
|
|
|
#2 |
|
Expert Programmer
|
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.
|
|
|
|
|
|
#3 |
|
Resident Grouch
![]() ![]() ![]() ![]() ![]() ![]() Join Date: Jun 2005
Posts: 6,453
Rep Power: 10
![]() |
Looks like the PM I got, too. Perhaps you should read the FAQ/rules, there's a section titled, "homework".
__________________
Abstraction doesn't make it impossible to write bad code; it makes it possible to write superior code. Contributor's Corner: Grumpy on C++ Exceptions DaWei on Pointers |
|
|
|
|
|
#4 |
|
Professional Programmer
Join Date: Jan 2006
Location: Ontario, Canada
Posts: 368
Rep Power: 0
![]() |
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.
__________________
I am Addicted to Linux! |
|
|
|
|
|
#5 |
|
Expert Programmer
|
Five buck says he doesn't come back
|
|
|
|
|
|
#6 |
|
Troll
Join Date: Apr 2005
Location: Texas
Posts: 732
Rep Power: 4
![]() |
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
![]()
__________________
MD5(sig) = bcef75433db02e9ad9bf81d6f7c5c270 |
|
|
|
|
|
#7 |
|
Caffeinated Neural Net
Join Date: Jun 2005
Location: Dry west coast of Canada
Posts: 925
Rep Power: 4
![]() |
@Dameon: It can be the next PFO project!
![]()
__________________
A man's knowledge is like an expanding sphere, the surface corresponding to the boundary between the known and the unknown. As the sphere grows, so does its surface; the more a man learns, the more he realizes how much he does not know. Hence, the most ignorant man thinks he knows it all. - L. Sprague de Camp |
|
|
|
|
|
#8 |
|
Newbie
Join Date: Jul 2007
Posts: 17
Rep Power: 0
![]() |
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.
|
|
|
|
|
|
#9 |
|
Professional Programmer
|
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:
__________________
Amateurs built the ark Professionals built the Titanic |
|
|
|
|
|
#10 | |
|
Newbie
Join Date: Jul 2007
Posts: 17
Rep Power: 0
![]() |
Quote:
__________________
Part of the inhumanity of the computer is that, once it is competently programmed and working smoothly, it is completely honest. Isaac Asimov US science fiction novelist & scholar (1920 - 1992) |
|
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| <td> height problem | grimpirate | HTML / XHTML / CSS | 19 | May 4th, 2007 6:01 AM |
| Storing BLOBs in a database - problem | jonyzz | Other Programming Languages | 8 | Jan 31st, 2007 4:38 AM |
| cgi/perl script + IE problem | joyceshee | Perl | 2 | Jan 24th, 2006 11:10 AM |
| help with recursion problem | the_new_guy_in_town | Java | 3 | Apr 7th, 2005 3:04 AM |