Question: This program requires APLX Langaue. Please help. WHAT TO PROGRAM: Your program2 will modify the P2 workspace and define two functions related to 'license plate
This program requires APLX Langaue. Please help.



WHAT TO PROGRAM: Your program2 will modify the P2 workspace and define two functions related to 'license plate poker, a game designed to keep the little ones in the back seat from driving you nuts on long car trips. Each child picks out a license plate on a nearby car, and tries to make a poker hand out of it. For example, WZ636Z6 is a "full hoyse" (three sixes and a pair of 2's). Your task is to program DEAL (which creates license plates) and SCORE (which determines the best hand (1) Create a function called DEAL which will [randomly] deal out' a specified number of [7-character] license plates, displayed as a two-dimensional character matrix. For example, when given a right argument of 3, DEAL will return a 3x7 matrix, such as: DEAL 3 4ST7SM4 XxW1X2X 599E5EE While every DEAL 3' will have shape 3x7, the contents of the character matrix will vary each time (and in general, 'DEAL N' will have shape Nx7) The poker hand examples in my tutorial did not allow repeats, so the [dyadic] 'deal' operator is not appropriate here. To get random numbers, you'11 need the 'roll' operator (?, Page 51 of the APLX Language Manual). My tutorial script always handed the roll operator a scalar integer; imagine what will happen if you give?" a higher-dimensional object rather than a scalar (or, lacking imagination, experiment: e.g., 2 2 9' The license plates in this programming assignment will always consist of 7 characters, and every character must be either a letter or a number. That is, the characters must come from the set: 0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ (This is predefined in the P2 workspace as the variable CHARS.) Be careful to ensure that DEAL returns* an array of plates, rather than just *printing* an array of plates. That is, make sure you understand why I have: HAND
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
