Test 1 part c

2 Pages

Electrical Engineering and Computer Science
Course Code
EECS 1520
Heather Jenkins

This preview shows 80% of the first page. Sign up to view the full 2 pages of the document.
Part C [10 points] Use only the data shown to answer the following questions. All ranges have been named using the labels that appear in the worksheets. Recall from Test 1 that the graphic S_ is one of the integers 1, 2, 3, or 4, and is below is from a workbook to analyze randomly chosen. probability in card games. Suit is assigned by an IF statement according This section “deals” cards. to the corresponding value of S_. 1 - Clubs 2 - Diamonds 3 - Hearts 4 - Spades R_ is an integer in the range 2 to 14 inclusive, also randomly chosen. Rank is assigned by an IF statement according to R_, using the following mapping: Values in the range 2 to 10 are copied from R_ 11, 12, 13, and 14 are replaced by “Jack”, “Queen”, “King”, and “Ace” The formula in Card assembles Rank and Suit into the name as shown. R_value AssignRank
More Less
Unlock Document

Only 80% of the first page are available for preview. Some parts have been intentionally blurred.

Unlock Document
You're Reading a Preview

Unlock to view full version

Unlock Document

Log In


Join OneClass

Access over 10 million pages of study
documents for 1.3 million courses.

Sign up

Join to view


By registering, I agree to the Terms and Privacy Policies
Already have an account?
Just a few more details

So we can recommend you notes for your school.

Reset Password

Please enter below the email address you registered with and we will send you a link to reset your password.

Add your courses

Get notes from the top students in your class.