https://www.liquidpoker.net/


LP international Poland    Contact            Users: 422 Active, 3 Logged in - Time: 21:30

if you know C++, click this for quick $64

New to LiquidPoker? Register here for free!
Forum Index > Poker Blogs
bigredhoss   Cook Islands. Jan 23 2015 21:48. Posts 8648
i have a random $64 on paypal, if anyone can complete and send this code bug-free while following my criteria within 3 hours of posting this, it's yours. most of the code is already done.

it is a gas tank moniter. there's a constructor that creates a gas tank holding 20 gallons, which is empty upon creation. there's a function to fill it and return #gallons filled, a function to use the gas and return #gallons used, and a function telling the user how many gallons are left in the tank. there's also a function to tell when the fuel is getting low, which is when there are <= 5 gallons left.

1. basically, the switch cases are wrong/incomplete, and probably a couple bugs somewhere else in the code. there should be an output something like:

Gallons filled tank 1 -> 20
Gallons filled tank 2 -> 5
fuel OK
Low fuel light
gallons left -> 4
Gallons filled tank 1 -> 16
Gallons filled tank 2 -> 0

2. add whatever functions/variables are needed but don't change any of the class constructors/variables/functions, and don't make any of the currently private class data public. i don't care if you think it looks shitty, leave the basic structure of the program the same.

3. don't add your own comments or remove any of mine.

4. don't import any additional libraries.

sorry for the shitty formatting, idk how to get the code to format the way it appears in codeblocks.



+ Show Spoiler +



0 votes

Facebook Twitter
Truck-Crash LifeLast edit: 23/01/2015 21:51

Trav94   Canada. Jan 23 2015 22:10. Posts 1785

I'd do it, but I'm not going to be home until Monday


bigredhoss   Cook Islands. Jan 23 2015 22:14. Posts 8648

t.t

Truck-Crash Life 

Rinny   United States. Jan 23 2015 22:21. Posts 600

Posting to see what time it is


Santafairy   Korea (South). Jan 23 2015 22:21. Posts 2225

I think I can do this, not sure if it's a dibbs type of thing but hold on I am opening my IDE

It seems to be not very profitable in the long run to play those kind of hands. - Gus Hansen 

bigredhoss   Cook Islands. Jan 23 2015 22:31. Posts 8648

yeah i'm not sure the fairest way to do it, but i think it has to go to first solution that satisfies the criteria. so if someone submitted something but it didn't work or satisfy some criteria the next person will have a chance, etc.

Truck-Crash Life 

Rinny   United States. Jan 23 2015 23:40. Posts 600

I did this shit but I can't upload because I can't transfer to my phone which has Internet TT


bigredhoss   Cook Islands. Jan 23 2015 23:42. Posts 8648

=[ T_T

been sending back and forth some code w/Santafairy but still working on a couple bugs

Truck-Crash Life 

Rinny   United States. Jan 23 2015 23:50. Posts 600

All I did was fix the function for case 3 everything else seems fine


bigredhoss   Cook Islands. Jan 23 2015 23:59. Posts 8648

looks like i've got a winner with santafairy

sorry rinny bad beat

Truck-Crash Life 

Rinny   United States. Jan 24 2015 00:11. Posts 600

1v1 me Santa fairy no syntax hilighting no autocomplete notepad only final destination


Santafairy   Korea (South). Jan 24 2015 01:18. Posts 2225

lol careful rinny i might use my fairy wand to give you a present from my sack

It seems to be not very profitable in the long run to play those kind of hands. - Gus Hansen 

RaiNKhAN    United States. Jan 24 2015 03:17. Posts 4080

hungry hungry hippos

The biggest Rockets, Sixers, and Grizzlies fan you will ever meet! 

lhr0909   China. Jan 24 2015 03:39. Posts 423

ahh i totally missed this.. I would do it in a heartbeat but there's already a winner

no pain no gain 

AndrewSong    United States. Jan 24 2015 08:04. Posts 2355

times up boys


devon06atX   Canada. Jan 24 2015 10:22. Posts 5458


Spitfiree   Bulgaria. Jan 24 2015 11:14. Posts 9634

You should use http://pastebin.com/ to post code, it eases people reading it


Drakk   Canada. Jan 25 2015 01:33. Posts 1199

damn i saw this too late!

Expect the worst, hope for the best 

 



Poker Streams

















Copyright © 2024. LiquidPoker.net All Rights Reserved
Contact Advertise Sitemap