subject

Suppose that you have gloves of 3 colours in the drawer: black, brown, and white, 4 pairs of each colour. every glove is either left or right and does not fit on the other hand.
if you are taking gloves out in the dark, without looking, what is the minimum number you need to take out to guarantee that you have a pair (that is, a left and a right of the same colour)?
a) what is the minimum number of gloves you need to take out to guarantee that you have three pairs of gloves? (here, colours do not matter, as long as each pair consists of a left and a right of the same colour)
b) what is the minimum number of gloves you need to take out to guarantee that you have a pair of white gloves?
c) what is the minimum number of gloves you need to take out to guarantee that you have two pairs of different colours?
d) what is the minimum number of gloves you need to take out to guarantee that you have two pairs which are both not white (could be same or different colour)?

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 18:00
Budgets you to do all of the following expect a) send frivolously b) avoid over spending c) gain financial independence d) examine your priorities and goals
Answers: 2
question
Computers and Technology, 23.06.2019 01:50
Write a program that uses a random number generator to generate a two digit positive integer and allows the user to perform one or more of the following operations: a. double the number. b. reverse the digits of the number. c. raise the number to the power of 2, 3, or 4. d. sum the digits of the number. e. if the number is a two-digit number, then raise the first digit to the power of the second digit. f. if the number is a three-digit number and the last digit is less than or equal to 4, then raise the first two digits to the power of the last digit. after performing an operation if the number is less than 10, add 10 to the number. also, after each operation determine if the number is prime. each successive operation should be performed on the number generated by the last operation. your program should not contain any global variables and each of these operations must be implemented by a separate function. also, your program should be menu driven. 7. (fraction calculator) write a program that
Answers: 1
question
Computers and Technology, 24.06.2019 18:20
The following if statement contains a logic error, not a syntax error. rewrite it so that it is correct. assume the variable age already exists and holds a valid number. if (age == 18 & & age == 19) {
Answers: 1
question
Computers and Technology, 25.06.2019 04:30
Consider a list of full names formatted “firstname lastname”, like ["jules verne", "alexandre dumas", "maurice druon"]. write a list comprehension that produces a list with the full names in the format “lastname, firstname”. the resulting list should look like ['verne, jules', 'dumas, alexandre', 'druon, maurice']. the simplest solution may involve a nested comprehension: [ …. for … in [ … for … in … ]].
Answers: 3
You know the right answer?
Suppose that you have gloves of 3 colours in the drawer: black, brown, and white, 4 pairs of each c...
Questions