Blackjack C Program
100.2 General school requirements. Administration of elementary and secondary schools. The board of education of each school district shall employ and assign to each school under its supervision a full-time principal holding the appropriate certification as required pursuant to section 80.4(b) of this Title. This code is a simple blackjack game written in C. pepix/blackjack.
Im tasked with developing a simple blackjack program for a class. The program I have currently compiles and runs but it isnt paying out properly. A blackjack (21) should pay out 1.5*the wager, but it is doing it more than it should. Here is the code I have.
I know the problem is in my if else statements im just not sure how to make it work. Thanks for the help.
- 3 Contributors
- forum3 Replies
- 4,883 Views
- 7 Hours Discussion Span
- commentLatest PostLatest Postby spookyfish
Recommended Answers
This may or may not be part of the problem, but it needs to be adressed:
I did the same thing when I was first learning boolean logic and performing tests, and it took me a long time to understand why things are the …
C Program Blackjack
Jump to PostAll 3 Replies
Blackjack Program C++
This may or may not be part of the problem, but it needs to be adressed:
I did the same thing when I was first learning boolean logic and performing tests, and it took me a long time to understand why things are the way they are, but for now just trust me.... you would think the above is correct, but there is a specific way that boolean tests are handled, either in a singular expression, or a stand-alone variable (which yeilds true or false, non-zero and zero respectively)
So, keep in mind, boolean logic is handled individually per expression, or as a stand alone TRUE/FALSE flag.