Question

Consider a locker that requires a code to open. For simplicity, assume it only uses digits...

Consider a locker that requires a code to open. For simplicity, assume it only uses digits 0 through 9. To unlock it, you need to use a 3-digit code that uses distinct digits, but you've forgotten your code.

a) How many different codes (maximum) will you have to try to open the locker?

b) Consider the same locker in part a). How many different codes will you have to try if you remember the second number is 9?

Homework Answers

Answer #1

It says 'distinct digits' and 3 digit code.

a) Total different codes = 10*9*8 = 720

As we need to use distinct digits so the one used in first place cannot be used further that's why ways are reduced by 1 in each step.

b) If the second number is 9 then total different codes = 9 * 1 * 8 = 72

As '9' is already used so we cannot use it again at anyother place. That's why counting started from 9 for first place then 9 which is fixed so 1 way and then 8 ways for last place.

I hope this will help. Thank you.

Know the answer?
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for?
Ask your own homework help question
Similar Questions
Suppose you have totally forgotten a 5-digit PIN to open a door locker. There are five...
Suppose you have totally forgotten a 5-digit PIN to open a door locker. There are five distinct digits in the PIN, excluding zero. (a) If you test one 5-digit PIN every 11 seconds, how many minutes will it take to test all possible PINs? Answer =Answer [2 marks] (b) If the system requires you to press the first two digits simultaneously and then the other three digits one at a time a. How many possible PINs can you enter? Answer...
A realtor uses a lock box to store the keys to a house that is for...
A realtor uses a lock box to store the keys to a house that is for sale. The access code for the lock box consists of five digits. The first digit cannot be 9 and the last digit must be even. How many different codes are​ available? (Note that 0 is considered an even​ number.)
1. In hexadecimal (base 16) there are 16 distinct digits that can be used to form...
1. In hexadecimal (base 16) there are 16 distinct digits that can be used to form numbers: {0,1,…,9,A,B,C,D,E,F}. How many 4-digit hexadecimals are there in which the first digit is E or F? 2. A combination lock consists of a dial with 39 numbers on it. To open the lock, you turn the dial to the right until you reach the first number, then to the left until you get to the second number, then to the right again to...
1. Consider sets AA and BB with |A|=9|| and |B|=19.. How many functions f:A→B are there?...
1. Consider sets AA and BB with |A|=9|| and |B|=19.. How many functions f:A→B are there? Note: Leave your answer in exponential form. (Ex: 5^7) 2. Consider functions f:{1,2,3}→{1,2,3,4,5,6}. How many functions between this domain and codomain are injective? 3. A combination lock consists of a dial with 39 numbers on it. To open the lock, you turn the dial to the right until you reach the first number, then to the left until you get to the second number,...
This question is broken into 3 parts, each of which builds on the functions developed in...
This question is broken into 3 parts, each of which builds on the functions developed in the previous part. Note that you can (and should) still answer parts (b) and (c) even if you cannot answer the preceding parts - just assume that the functions work as they should, and continue. Please explain the code as well Write a C function called weighted_digit_sum that takes a single integer as input, and returns a weighted sum of that numbers digits. The...
1. You are playing poker and are dealt 7 cards (without replacement) from a standard 52...
1. You are playing poker and are dealt 7 cards (without replacement) from a standard 52 card deck. How many 7-card poker hands are possible? (Hint: order doesn’t matter in poker, just the hand you are dealt). a.)52P7 = 6.74E11 (Same as 6.74x 1011) b.)52C7 = 133,784,560 c.)52!    = 8.0658E67 d.)7x52 = 3640 2.)Outside of a home, there is a keypad that can be used to open the garage door if the correct four digit code is entered. The key...
Assignment - Practical Coding (CPT) "Medicine" Section Please read the overview and instructions before attempting this...
Assignment - Practical Coding (CPT) "Medicine" Section Please read the overview and instructions before attempting this assignment. You may refer to Buck Step By Step Ch 26 "Medicine". Copy and Paste your completed assignment (only) on a separate MS word document or compatible file, and submit electronically via Moodle prior to due date. OVERVIEW Procedure coding is the transformation of written descriptions of procedures and professional services into numeric designations (code numbers). The physician rendering medical care either writes or...
Using the following code perform ALL of the tasks below in C++: ------------------------------------------------------------------------------------------------------------------------------------------- Implementation: Overload input...
Using the following code perform ALL of the tasks below in C++: ------------------------------------------------------------------------------------------------------------------------------------------- Implementation: Overload input operator>> a bigint in the following manner: Read in any number of digits [0-9] until a semi colon ";" is encountered. The number may span over multiple lines. You can assume the input is valid. Overload the operator+ so that it adds two bigint together. Overload the subscript operator[]. It should return the i-th digit, where i is the 10^i position. So the first...
Do the following problems. 1. Each of three barrels from a manufacturing line are classified as...
Do the following problems. 1. Each of three barrels from a manufacturing line are classified as either above (a) or below (b) the target weight. Provide the ordered sample space. 2. The heat on each of two soldered parts is measured and labeled as either low (l), medium (m), or high (h). State the number of elements in the ordered sample space. 3. Consider the set of Beatles songs with a primary writer as either Paul McCartney (P) or John...
Base Conversion One algorithm for converting a base 10 number to another base b involves repeatedly...
Base Conversion One algorithm for converting a base 10 number to another base b involves repeatedly dividing by b. Each time a division is performed the remainder and quotient are saved. At each step, the dividend is the quotient from the preceding step; the divisor is always b. The algorithm stops when the quotient is 0. The number in the new base is the sequence of remainders in reverse order (the last one computed goes first; the first one goes...
ADVERTISEMENT
Need Online Homework Help?

Get Answers For Free
Most questions answered within 1 hours.

Ask a Question
ADVERTISEMENT