Beverycarefulhintyoucanusethe

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
This is the end of the preview. Sign up to access the rest of the document.

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.

Ask a homework question - tutors are online