Question

The dial on a combination lock shows the integers 0 through 39. Turning the dial to...

The dial on a combination lock shows the integers 0 through 39. Turning the dial to three specific numbers (in order) opens the lock.

a) How many different locks can a manufacturer produce before they have to reuse combinations, if numbers cannot be repeated in a combination (i.e., 25-17-25 is not allowed)?

How many different locks can a manufacturer produce before they have to reuse the combination if numbers can be repeated in a combination?

0 0
Add a comment Improve this question Transcribed image text
Answer #1

(a). There can be 40 possible first numbers in a combination, but for each of them, the condition against repeating means there are only 39 possible second number, and 38 choices for the third. Therefore, the number of different combinations is,

(b). If we can repeat numbers, then we can use any of the 40 numbers for each stage, therefore, the number of different combinations is,

Add a comment
Know the answer?
Add Answer to:
The dial on a combination lock shows the integers 0 through 39. Turning the dial to...
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. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • To open a combination lock, you turn the dial to the right and stop at a number; then you turn it...

    To open a combination lock, you turn the dial to the right and stop at a number; then you turn it to the left and stop at a second number. Finally, you turn the dial back to the right and stop at a third number. If you used the correct sequence of numbers, the lock opens. If the dial of the lock contains 12 numbers, 0 through 11, determine the number of different combinations possible for the lock. Note: The...

  • 4. (3 pts) A combination lock has a four-digit combination nin^ngn4, where ni,n2, ng, and n4 are integers in {0,1,...,9...

    4. (3 pts) A combination lock has a four-digit combination nin^ngn4, where ni,n2, ng, and n4 are integers in {0,1,...,9}. (a) (1 pt) How many lock combinations are possible if each digit can be repeated? (b) (2 pts) If the digits in the combination cannot be repeated, then what is the probability of someone guessing the correct four-digit combination? 3 4. (3 pts) A combination lock has a four-digit combination nin^ngn4, where ni,n2, ng, and n4 are integers in {0,1,...,9}....

  • Declare a class ComboLock that works like the combination lock in a school or gym locker.....

    Declare a class ComboLock that works like the combination lock in a school or gym locker.. The lock is constructed with a combination dial numbers between 0 and 39. The constructor sets the three "secret" numbers and the current position to 0. The reset method resets the dial so that it points to 0. The turnLeft and turnRight methods turn the dial by a given number of ticks to the left or right. The open method attempts to open the...

  • A combination lock uses 4 numbers, each of which can be 0 to 37. If there...

    A combination lock uses 4 numbers, each of which can be 0 to 37. If there are no restrictions on the numbers, how many possible combinations are available?

  • 14. A combination lock uses three numbers between 1 and 91 with​ repetition, and they must...

    14. A combination lock uses three numbers between 1 and 91 with​ repetition, and they must be selected in the correct sequence. Which of the five counting rules is used to find that​ number? How many different​"combinations" are​ possible? Is the name of​ "combination lock"​ appropriate? If​ not, what other name would be​ better? Which of the five counting rules is used to find that​ number? A. Permutations rule​ (when all of the items are​ different) B.Combinations rule C.Factorial rule...

  • Lab 2 (ADTs) 1) LockADT – Show the interface and all abstract methods LockDataStructureClass – Show the following methods: default constructor, overloaded constructor, copy constructor, setX, setY, s...

    Lab 2 (ADTs) 1) LockADT – Show the interface and all abstract methods LockDataStructureClass – Show the following methods: default constructor, overloaded constructor, copy constructor, setX, setY, setZ, alter (change the lock’s combination to the numbers passed) turn (use for loops to show the dial turning), close (locks the lock), attempt (tries to unlock the lock – calls turn( ), inquire (locked or unlocked), current (returns the number the dial is pointing to), toString LockClientDemoClass – You should have a...

  • MULTIPLE CHOICE SECTION . Lisa has 4 skirts, 8 blouses, and 2 jackets. How many 3-piece...

    MULTIPLE CHOICE SECTION . Lisa has 4 skirts, 8 blouses, and 2 jackets. How many 3-piece outfits can she put together? A) 32 B) 64 C) 14 D) 128 34. A combination lock has 20 numbers on it. How many different 3-digit lock combinations are possible if no digit can be repeated? A) 2280 B) 6840 C) 1140 D) 380 35. A church has 10 bells in its bell tower. Before each church service 3 bells are rung in sequence....

  • 2) (25 pts) Consider a brute force attempt to crack keys for the following scenario. You...

    2) (25 pts) Consider a brute force attempt to crack keys for the following scenario. You have in your possession a wireless emulator the size of a 6" cube (i.e., 6" x 6" x 6) with a weight of less than 5 pounds which you can take to a parking lot containing 1,000 new cars. Each car has a four-digit wireless door key (between "0000" and "9999 using wireless symbols) as well as a three-digit engine key (between "000" and...

  • Question 1 An array is NOT: A - Made up of different data types. B - Subscripted by integers. C -...

    Question 1 An array is NOT: A - Made up of different data types. B - Subscripted by integers. C - A consecutive group of memory chunks. D - None of the choices. Question 2 How many times is the body of the loop executed? int i=1; while(true) { cout << i; if(++i==5) break; } A - Forever B - 4 C - 5 D - 6 E - 0 Question 3 What is wrong with the following piece of...

  • Y. Daniel Liang’s 8 Class Design Guidelines were posted on the File Manager and handed out...

    Y. Daniel Liang’s 8 Class Design Guidelines were posted on the File Manager and handed out in class. Please choose 5 guidelines and discuss them in depth. For each guideline, use 1 page or more for your discussion. You can use the code provided in class to demonstrate your points. The code should not be more than one-third of your writing. 1. Cohesion • [✓] A class should describe a single entity, and all the class operations should logically fit...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT