| | [meh] Haldamir's Tricky Tray [Ended] | |
|
|
| Author | Message |
|---|
aydog80
Level 1 Member

Posts: 46 Registered: 2010-02-03
 | Subject: Re: [meh] Haldamir's Tricky Tray [Ended] 2010-05-14, 7:37 pm | |
| 60 tickets on Globs of Ectoplasm
20 tickets on Stacks of Feathers 10 tickets A Stack of Merchant Summoning Stones 40 tickets on 10 Rubies 10 tickets on 10 Sapphires 60 tickets Five Domain of Anguish Gemstone Se |
|
 | |
Natch
Level 1 Member

Posts: 14 Registered: 2010-04-25
Age: 23 Location: Northern Virginia
 | Subject: Re: [meh] Haldamir's Tricky Tray [Ended] 2010-05-14, 7:42 pm | |
| 30 on 2 30 on 3 50 on 5 30 on 9 30 on 10 30 on 13 updated! |
|
 | |
Haldamir
Level 2 Member

Posts: 132 Registered: 2010-01-21
Age: 23 Location: GA
 | Subject: Re: [meh] Haldamir's Tricky Tray [Ended] 2010-05-15, 8:44 am | |
| | Code: | #include #include
using namespace std; // So the program can see cout and endl
int winner ( int x, int y, int z ); void prizenames (int prizenum); int main() { int y, z; // integer y equals the number of prizes that are in the tricky tray, z = # of tickets in the prize box cout << "Please enter the number of prizes in this tricky tray: "; cin >> y; cin.ignore(); cout << "\n"; for ( int x = 2; x <= y; x++ ) { cout<< "please enter the number of tickets in the "; prizenames (x); cin>> z; cout<<"CONGRATULATIONS TO NUMBER "<< winner ( x, y, z ) << ": YOU WON "; prizenames(x); cout<<"!\n"; } cin.get(); }
int winner ( int x, int y, int z ) { int winner = rand() % (z) + 1; return winner; }
void prizenames ( int prizenum ) { switch ( prizenum ) { case 1: cout << "Armbrace: "; break; case 2: cout << "10 Globs of Ectoplasm: "; break; case 3: cout << "10 Consets: "; break; case 4: cout << "10 Stacks of Feathers: "; break; case 5: cout << "A Stack of Stack Eggs: "; break; case 6: cout << "A Stack of Golden Eggs: "; break; case 7: cout << "A Stack of Merchant Summoning Stones: "; break; case 8: cout << "80.000 Gold"; break; case 9: cout << "10 Sapphires"; break; case 10: cout << "10 Rubies"; break; case 11: cout << "10 Stacks of Glittering Dust"; break; case 12: cout << "500 Minutes of Alcohol"; break; case 13: cout << "5 Domain of Anguish Gemsets"; break; default: break; } } |
This is what the current code for the program looks like. I'm not finished yet as I need to figure out exactly how I'm going to do the numbers assigned to the tickets to fully randomize it so that I don't really have any hand in it. |
|
 | |
amaretto creme
GOD Member

Posts: 2206 Registered: 2009-07-07
Location: PA
 | Subject: Re: [meh] Haldamir's Tricky Tray [Ended] 2010-05-15, 12:40 pm | |
| |
|
 | |
Haldamir
Level 2 Member

Posts: 132 Registered: 2010-01-21
Age: 23 Location: GA
 | Subject: Re: [meh] Haldamir's Tricky Tray [Ended] 2010-05-15, 8:14 pm | |
| THE FINAL STANDINGS! YOU HAVE 24 HOURS TO SAY IF THERE'S ANY MISTAKES HERE! IF NOT THIS IS WHAT IT'S GOING AS |
|
 | |
Haldamir
Level 2 Member

Posts: 132 Registered: 2010-01-21
Age: 23 Location: GA
 | Subject: Re: [meh] Haldamir's Tricky Tray [Ended] 2010-05-16, 7:46 am | |
| |
|
 | |
Fulla Kick
Level 1 Member

Posts: 44 Registered: 2010-03-10
 | Subject: Re: [meh] Haldamir's Tricky Tray [Ended] 2010-05-18, 9:53 am | |
| anybody got their prizes? |
|
 | |
Haldamir
Level 2 Member

Posts: 132 Registered: 2010-01-21
Age: 23 Location: GA
 | Subject: Re: [meh] Haldamir's Tricky Tray [Ended] 2010-05-18, 10:33 am | |
| Andy currently has the prizes as I've now moved to elsewhere. |
|
 | |
Memmax
Level 2 Member

Posts: 171 Registered: 2009-06-24
Age: 31 Location: Rapid City, SD
 | Subject: Re: [meh] Haldamir's Tricky Tray [Ended] 2010-05-18, 11:34 am | |
| I may have the prizes but don't know how to give them to. I don't know who the winners are |
|
 | |
Industrial Sized
Level 2 Member

Posts: 102 Registered: 2010-01-29
Age: 22 Location: Illinois, USA
 | Subject: Re: [meh] Haldamir's Tricky Tray [Ended] 2010-05-18, 11:53 am | |
| Haldamir has updated his first post, each slot has who won that item |
|
 | |
Memmax
Level 2 Member

Posts: 171 Registered: 2009-06-24
Age: 31 Location: Rapid City, SD
 | Subject: Re: [meh] Haldamir's Tricky Tray [Ended] 2010-05-18, 1:39 pm | |
| O.K. Knowing that I will distribute the items I have left when I see the winner online.
Hopefully I'll be on for a while tonight. |
|
 | |
Memmax
Level 2 Member

Posts: 171 Registered: 2009-06-24
Age: 31 Location: Rapid City, SD
 | Subject: Re: [meh] Haldamir's Tricky Tray [Ended] 2010-05-19, 12:54 pm | |
| Should be on again tonight for a while. Industrial sorry I had to bail last night. Serious kid AG man. |
|
 | |
Khari
Level 2 Member

Posts: 179 Registered: 2010-03-08
Age: 22
 | Subject: Re: [meh] Haldamir's Tricky Tray [Ended] 2010-05-20, 1:47 am | |
| Got my prize, thanks  |
|
 | |
DarknessesDaughter
Level 1 Member

Posts: 81 Registered: 2010-04-05
Location: Texas
 | Subject: Re: [meh] Haldamir's Tricky Tray [Ended] 2010-05-23, 10:54 pm | |
| how many tickets did u end up selling? |
|
 | |
| | [meh] Haldamir's Tricky Tray [Ended] | |
|