Question

I have a lockbox with the digits 0-9 on it. The passcode is 5 digits, repeats...

I have a lockbox with the digits 0-9 on it. The passcode is 5 digits, repeats are not allowed, and order doesn't matter (I just have to have the correct 5 digit buttons depressed).  

A. If I guess at the code, what is the probability that the box will open?

B. If I have completely forgotten the code, what is the probability that it will take less than 10 tries to get it open?

Homework Answers

Answer #1

There are 10 digits and digits cannnot be repeated and order does not importanat so number of possible different passcodes is:

C(10,5) = 10! / (5! *5!) = 252

A:

Out of these possible passcodes only one is correct so the probability that the box will open is a try is

P(open) = 1 / 252= 0.003968

B:

Out of these 252 possible passcodes 251 are correct and 1 is correct. The probability that it will take less than 10 tries (that is 1, 2, 3..or 9 tries) to get it open is

Hence, the required probability is 0.0357143.

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
Your I-phone has a numeric passcode to press to access it. This code consists of 4...
Your I-phone has a numeric passcode to press to access it. This code consists of 4 numbers. If someone tries the codes and gets them incorrect, the phone will shut down after three incorrect attempts. What is the probability that a person who is just guessing the code will get it correct within three guesses (hint…how does this compare to the probability of not getting it right in three attempts)? also How does the situation (and probability) change with the...
write a code in python Write the following functions below based on their comments. Note Pass...
write a code in python Write the following functions below based on their comments. Note Pass is a key word you can use to have a function the does not do anything. You are only allowed to use what was discussed in the lectures, labs and assignments, and there is no need to import any libraries. #!/usr/bin/python3 #(1 Mark) This function will take in a string of digits and check to see if all the digits in the string are...
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...
I've posted this question like 3 times now and I can't seem to find someone that...
I've posted this question like 3 times now and I can't seem to find someone that is able to answer it. Please can someone help me code this? Thank you!! Programming Project #4 – Programmer Jones and the Temple of Gloom Part 1 The stack data structure plays a pivotal role in the design of computer games. Any algorithm that requires the user to retrace their steps is a perfect candidate for using a stack. In this simple game you...
Read the case and answer the following Multiple choice questions. There are 5 questions total, where...
Read the case and answer the following Multiple choice questions. There are 5 questions total, where some of them might have more than one correct answers. You can choose more than one options where you think is suitable for the above question. PERFORMANCE MANAGEMENT Project Manager Oliver Caine skimmed his notes as he waited for Ben Robins to come to the meeting room. He hoped Ben would arrive soon, as he wanted to get the con-versation finished quickly. Ben walked...
You will write a program that loops until the user selects 0 to exit. In the...
You will write a program that loops until the user selects 0 to exit. In the loop the user interactively selects a menu choice to compress or decompress a file. There are three menu options: Option 0: allows the user to exit the program. Option 1: allows the user to compress the specified input file and store the result in an output file. Option 2: allows the user to decompress the specified input file and store the result in an...
i. True or False -Under the UCC, a contract for the sale of goods that includes...
i. True or False -Under the UCC, a contract for the sale of goods that includes open terms is void. T/F -Oral promises of fact made during the bargaining process are not express warranties. T/F -Warranties of title are assumed to exist in UCC transactions. T/F ii. Multiple choice -The requirements of a contract do not include: a. Consideration b. Practicality c. Legality d. Capacity -Defenses against the enforcement of a contract include: a. The lack of a party’s genuine...
Hi there, I've been asked to write a program in C which can read values from...
Hi there, I've been asked to write a program in C which can read values from a file then sort them, and then write to a binary file. I'm getting stuck when I write my binary file as the output is just spitting out garbage values and not the values that are being read in. When I print my input file reader everything is perfect but after sorting and then writing, the output is completely wrong. I have checked that...
The Martins (Mack and Minnie) own a lovely house in rural BC. One summer, they hired...
The Martins (Mack and Minnie) own a lovely house in rural BC. One summer, they hired two local young people (Tad and Shamir) to help with some landscaping. Tad was especially impressed when he saw the Martin property and asked if he could hang out there from time to time. Mack and Minnie explained that they valued their privacy, and that Tad and Shamir could only attend on the property in order to effect the landscaping work. The day after...
Team 5 answer the questions What are 4 key things you learned about the topic from...
Team 5 answer the questions What are 4 key things you learned about the topic from reading their paper? How does the topic relate to you and your current or past job? Critique the paper in terms of the organization and quality. Incentive Systems             In this paper, we will focus primarily on financial rewards that companies use to attract, retain and motivate the brightest and most talented candidates in the labor market. By providing a reward system that...
ADVERTISEMENT
Need Online Homework Help?

Get Answers For Free
Most questions answered within 1 hours.

Ask a Question
ADVERTISEMENT