Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Jul 31st, 2007, 7:32 PM   #1
mae67
Newbie
 
Join Date: Jul 2007
Posts: 3
Rep Power: 0 mae67 is on a distinguished road
Unhappy 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.

Last edited by mae67; Jul 31st, 2007 at 7:38 PM. Reason: the problem is not complete.
mae67 is offline   Reply With Quote
Old Jul 31st, 2007, 7:49 PM   #2
Booooze
Expert Programmer
 
Booooze's Avatar
 
Join Date: Mar 2006
Location: Igloo
Posts: 710
Rep Power: 3 Booooze is on a distinguished road
Send a message via MSN to Booooze
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.
Booooze is offline   Reply With Quote
Old Jul 31st, 2007, 8:31 PM   #3
DaWei
Resident Grouch
 
DaWei's Avatar
 
Join Date: Jun 2005
Posts: 6,453
Rep Power: 10 DaWei is on a distinguished road
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
DaWei is offline   Reply With Quote
Old Jul 31st, 2007, 8:45 PM   #4
King
Professional Programmer
 
King's Avatar
 
Join Date: Jan 2006
Location: Ontario, Canada
Posts: 375
Rep Power: 0 King is an unknown quantity at this point
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!
King is offline   Reply With Quote
Old Jul 31st, 2007, 9:31 PM   #5
Booooze
Expert Programmer
 
Booooze's Avatar
 
Join Date: Mar 2006
Location: Igloo
Posts: 710
Rep Power: 3 Booooze is on a distinguished road
Send a message via MSN to Booooze
Five buck says he doesn't come back
Booooze is offline   Reply With Quote
Old Jul 31st, 2007, 9:48 PM   #6
Dameon
Troll
 
Dameon's Avatar
 
Join Date: Apr 2005
Location: Texas
Posts: 732
Rep Power: 4 Dameon is on a distinguished road
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
Dameon is offline   Reply With Quote
Old Aug 1st, 2007, 2:00 AM   #7
lectricpharaoh
Caffeinated Neural Net
 
lectricpharaoh's Avatar
 
Join Date: Jun 2005
Location: Dry west coast of Canada
Posts: 1,010
Rep Power: 5 lectricpharaoh will become famous soon enough
@Dameon: It can be the next PFO project!
__________________
And once again, Probability proves itself willing to sneak into a back alley and service Drama as would a copper-piece harlot.
- Vaarsuvius, Order of the Stick
lectricpharaoh is offline   Reply With Quote
Old Aug 1st, 2007, 2:07 AM   #8
Z3nathur
Newbie
 
Z3nathur's Avatar
 
Join Date: Jul 2007
Posts: 17
Rep Power: 0 Z3nathur is on a distinguished road
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.
Z3nathur is offline   Reply With Quote
Old Aug 1st, 2007, 8:26 AM   #9
peace_of_mind
Professional Programmer
 
peace_of_mind's Avatar
 
Join Date: Sep 2004
Location: Hell if I know most of the time
Posts: 439
Rep Power: 4 peace_of_mind is on a distinguished road
Send a message via MSN to peace_of_mind Send a message via Yahoo to peace_of_mind
Quote:
Originally Posted by Z3nathur View Post
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:
__________________
Amateurs built the ark
Professionals built the Titanic

peace_of_mind is offline   Reply With Quote
Old Aug 1st, 2007, 10:25 PM   #10
Z3nathur
Newbie
 
Z3nathur's Avatar
 
Join Date: Jul 2007
Posts: 17
Rep Power: 0 Z3nathur is on a distinguished road
Quote:
Originally Posted by peace_of_mind View Post
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.
__________________
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)
Z3nathur is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

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




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 11:27 PM.

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