Players try to make the total value of their cards as high as possible without exceeding 21. Write a program which acts as the blackjack dealer. Sample Solution Problem C Write a program which classifies users according to their age. The program is to allow entries from any number of users, each one entering their age at the keyboard. The negative age which is used as a sentinel is not to be included in the calculations.
Data is read into the computer in groups of three numbers.
For each group of three numbers, the program is to write out the numbers and indicate the smallest number and its position in the group. If more than one number in a group shares the same lowest value, the position of the last occurrence of that value is to be reported. The smallest number was 13 in position 3. In the game, two ordinary six sided dice are thrown and the two numbers showing on their top face are added into a total. If this total is 7 or 11, the player wins immediately.