Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

A computer system uses passwords that contain exactly eight characters, and each character is one of 26 lower-case letters (a-z) or 26 upper-case letters (A-Z)

image text in transcribed

A computer system uses passwords that contain exactly eight characters, and each character is one of 26 lower-case letters (a-z) or 26 upper-case letters (A-Z) or 10 integers (0-9). Let Ohm are denote the set of all possible passwords, and let A and B denote the events that consist of passwords with only letters or only integers, respectively. Suppose that all passwords Ohm are equally likely. Determine the probability of each of the following (a) A (b) B (c) A password contains at least 1 integer. (d) A password contains exactly 2 integers. The following Julia, code generates 100 random passwords and counts how many of them contain 1 or less lower case letters. all Possible Chars = ['a': 'z'; 'A': '0': '9'] passwordsSample = [string (rand (allPossibleChars,8)) for _ in 1:100] ash Returns the number of lower case characters in the string str function numLowerCasechars (str) sum ([contains (str string (ch) for ch in 'a' 'z']) end ash This is the proportion of passwords with 1 or less lower case characters proportion = sum ([numLowerCaseChars (pw) K=1 for pw in passwordssample])/100 (e) In your view, are 100 passwords sufficient for obtaining a sensible estimate for the event of having 4 or less lower case characters? Modify the code to obtain a more accurate estimate. (f) Modify the code to obtain estimates for the probabilities of the events in (a)-(d). Compare with your theoretical results

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Securing SQL Server Protecting Your Database From Attackers

Authors: Denny Cherry

1st Edition

1597496251, 978-1597496254

More Books

Students also viewed these Databases questions

Question

2. Identify the employees who are included in the plan.

Answered: 1 week ago

Question

7. Discuss the implications of a skill-based pay plan for training.

Answered: 1 week ago