|
|||||||||
|
|
|||||||||
|
Advanced Computer Discussion Talk about more advanced computer related subjects in here. i.e. programming, networking, OS configurations, etc. |
|
||||||
![]() |
|
|
#1
|
||
|
||
|
Here are the directions: "Mr.Paul has an amusement park. On one ride, there are many different cabins painted different colors. Since the colors evoke different emotions, each cabin is priced individually. A group of friends want to ride Mr.Paul's cabin ride. They want to sit together, or in cabins right next to each other. The amount of friends: N The capacity of one cabin: K The amount of cabins: M Now, the program will get these numbers from a file on the desktop (the file should have N,K,M separated by a space, plus the $$ amount each cabin costs), then it should calculate how many cabins are needed, then which combination is the cheapest for the friends. So, for an example: Input: 7 2 10 80 70 40 90 100 60 70 80 80 50 Output: 240 Good luck!" Ok, so I have absolutely no idea. I wanted to ask you for help- please please please if anyone knows how to make this program, don't hesitate to write at least a little part of it. Thank you!!!! |
| Join GeneralForum.com Today! |
Join GeneralForum.com today for FREE!GeneralForum.com is the fastest growing general forum on the web!
» Click here to join the fun! |
![]() |
|
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Pascal's Wager | Kazmarov | Religion | 21 | 01-21-2008 12:14 PM |