Question: This is my blackjack code in C++ The second screen shot is the output of my code which runs perfectly. But I dont know why

This is my blackjack code in C++
The second screen shot is the output of my code which runs perfectly. But I dont know why I keep getting 52/100. Can you please help and see what is wrong? last screen shot it the description, just in case.
Thank you so much  This is my blackjack code in C++ The second screen shot
is the output of my code which runs perfectly. But I dont
know why I keep getting 52/100. Can you please help and see
what is wrong? last screen shot it the description, just in case.

Online C++ Compiler-online editor CS1-CIS-6-CIS-7 Programming 7 > ? Blackjack.cpp 1 #include//header file for input and output 2 #include//for random number function 3 #include//for pseudo random integer 4 using namespace std; 5. int mainot 6 char chry: 7 int numi, num2, num3, sum-, delsum-18;/uni for fisrt randon number, num2 for second random 8- while(chyst//when user enter y 9 srand(time()); 10 cout>ch://for reading yes or no 19 cout>ch://for reading yes or no 31 } 32 1/closing of inner while loop. As it will keep on aaskig from the user if they 33 V/wwant other card, so if this segmen he code will be outside from the while loop // so it will keep on running untill the sun is less than 22 without asking wheter the user 35 I/wants other card or not. 36 if(sum-ndelsum) 37 cout 48 cout First cards: 3,2 > Total: > Do you want another card? (y): Y > Card: 6 > Total: 11 >> Do you want another card? > Card: 7 >Total: 10 > Do you want another card? lynn > Win Would you like to play again? twinky >First cards: 10,2 >Total: 12 >> Do you want another card tyicy > Card: 6 >Total: 18 > Do you want another card? Why > Card: > Totat: 25 >> Bust > Would you like to play again? Winn Claritying Questions to Ask Yourself When you are designing and implementing Blackjack you should consider. 1. Are your random numbers really charging each time you run you don't set the seed for the random number generator you will prettySkely get the same values of cards

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!