This preview shows page 1. Sign up to view the full content.
Unformatted text preview: urse, until you write a MATLAB code to simulate such a game (a) Fill in the black boxes in lines 4, 5, 6 and 7. Deduce suitable initialization values for these variables (These can be scalars or vectors). (b) The card to be drawn can be simulated by generating random numbers. There are 52 unique cards in a standard deck, so each card can be thought of being a number between 1 and 52. Fill in the black box in line 11, so that the newcard variable represents a randomly drawn card. (c) What purpose does the loop between line 12 and line 17 serve? Why is it important? (d) Fill in the black boxes in lines 24 and 30. Be very careful. (Hint:...
View Full Document
This test prep was uploaded on 03/02/2014 for the course CS 100 taught by Professor Sohaibkhan,arifzaman,murtazataj during the Spring '11 term at Lahore University of Management Sciences.
- Spring '11