Question: MATLAB This tool is provided by a third party. Your activity is always recorded, but you may need to refresh the p LAB 23.24.1: Slot

MATLAB This tool is provided by a third party. Your activity isalways recorded, but you may need to refresh the p LAB 23.24.1:MATLAB

This tool is provided by a third party. Your activity is always recorded, but you may need to refresh the p LAB 23.24.1: Slot Machine (Branches) Part 8 What happened? 0 10 ACTIVITY age to fill in the banner Slot Machine Part 9 The double diamond slot machine game has three windows. Each window shows either a double diamond ('DD'), a cherry ('C), a single bar (B'), double bar ('BB) or triple bar (BBB'), or the number seven (7) or a blank ('0). There are nine possibilities that need to be accounted for: 7, AB AB AB where AB = ANY BAR (i.e., a single, double or triple bar) 8. CCX i.e. two C where X could be either B, BB, BBB, 7 or 0 9. CX X i.e. oneC where X could be either B, BB, BBB, 7 or 0 Cherries result in a payout regardless of what appears with them. The double diamond is wild and can represent any of the other signs to maximize payout. Write a function DoubleDiamond to test all possible outcomes given symbols in three windows. The ouput is a 1 x 9 logical array indicating the occurance [three DDs, three 7s, three BBBs, three BBs, three Bs, three Cs, three ABs, two Cs, one C] Restriction: The function DoubleDiamond must use the custom functions written in Part 1 to 8 (should be used either directly, or indirectly when called by another custom function). The custom functions are: AssignNumber, NumberofDoubleDiamonds, NumberofCherries IsOneCherry, IsTwoCherries, IsThreeCherries, IsThreeABs, Is30neBar, Is3TwoBars, Is3ThreeBars, Is3Sevens and Is3Diamonds For example logicVector = 1x9 logical array The output indicates that DD DD DD is recognized as three DDs, three 7s, three BBBs, three BBs, three Bs, three Cs, and three ABs, and not as two Cs, one C. The subfunctions for two Cs exactly two Cs and one C look for exactly one C (DD DD DD is recognized as three Cs) This tool is provided by a third party. Your activity is always recorded, but you may need to refresh the p LAB 23.24.1: Slot Machine (Branches) Part 8 What happened? 0 10 ACTIVITY age to fill in the banner Slot Machine Part 9 The double diamond slot machine game has three windows. Each window shows either a double diamond ('DD'), a cherry ('C), a single bar (B'), double bar ('BB) or triple bar (BBB'), or the number seven (7) or a blank ('0). There are nine possibilities that need to be accounted for: 7, AB AB AB where AB = ANY BAR (i.e., a single, double or triple bar) 8. CCX i.e. two C where X could be either B, BB, BBB, 7 or 0 9. CX X i.e. oneC where X could be either B, BB, BBB, 7 or 0 Cherries result in a payout regardless of what appears with them. The double diamond is wild and can represent any of the other signs to maximize payout. Write a function DoubleDiamond to test all possible outcomes given symbols in three windows. The ouput is a 1 x 9 logical array indicating the occurance [three DDs, three 7s, three BBBs, three BBs, three Bs, three Cs, three ABs, two Cs, one C] Restriction: The function DoubleDiamond must use the custom functions written in Part 1 to 8 (should be used either directly, or indirectly when called by another custom function). The custom functions are: AssignNumber, NumberofDoubleDiamonds, NumberofCherries IsOneCherry, IsTwoCherries, IsThreeCherries, IsThreeABs, Is30neBar, Is3TwoBars, Is3ThreeBars, Is3Sevens and Is3Diamonds For example logicVector = 1x9 logical array The output indicates that DD DD DD is recognized as three DDs, three 7s, three BBBs, three BBs, three Bs, three Cs, and three ABs, and not as two Cs, one C. The subfunctions for two Cs exactly two Cs and one C look for exactly one C (DD DD DD is recognized as three Cs)

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!