Test 1 version 2 part d

2 Pages
102 Views
Unlock Document

Department
Electrical Engineering and Computer Science
Course
EECS 1520
Professor
Heather Jenkins
Semester
Winter

Description
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 below is S_ is one of the integers 1, 2, 3, or 4, and is from a workbook to analyze probability in randomly chosen. 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.
More Less

Related notes for EECS 1520

Log In


OR

Join OneClass

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

Sign up

Join to view


OR

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.


Submit