Q no. 1:Write a code to perform card counting. First you have to evaluate the card whether it is Ace (A),Jack (J), Queen (Q), or King (K). If card is J, Q, and K then points will be 10. If card is Ace thenpoints will be 11. For the rest of the cards points will be the card number e.g. card 3- points willbe 3, card 4 – points will be 4 and so on.Now you have to perform card counting to track card number 10, Jack, Queen and King. Youhave to display “Count has gone up” message if the points is in between 3 and 6. If the points is10 then you will display “Count has gone down”.a) Draw the flow chart of the above program. Also, write pseudo code of the aboveprogram.b) Implement the above code using conditional statements. Also, explain which controlstructure will be best for the above problem.
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here