Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Please respond in Python, Thanks! Q3. (20 points) Write a program that returns True if the sentence string sentence_str contains every letter of the alphabet.

image text in transcribedimage text in transcribedimage text in transcribedimage text in transcribedPlease respond in Python, Thanks!

Q3. (20 points) Write a program that returns True if the sentence string sentence_str contains every letter of the alphabet. If the sentence does not contain each letter, print which ones are missing. The results should not depend on capitalization. Sample Output: Input a string: This is a test string. String is missing: b, c, d, f, j, k, l, m, o, p, q, u, v, w, x, y, z Input a string: abcdefghijklmnoPQRSTUVWXYZ String contains every letter. Q4. ( 25 points) You are creating a new account and need to provide a password. The password has the following requirements: a) The password must be at least 6 characters and at most 20 characters. b) It must contain at least one lowercase letter, one uppercase letter, and one number. Write a program that prompts the user to input a password and checks if the password is valid. If the password is valid, print a confirmation statement. If it is not, print a statement that the password is not valid. Sample Output: Enter your password: abcd Invalid password. Enter your password: Abcd 123 Valid password. Q5. (25 points) Write a program that prompts for the user to input a sentence. Then check this sentence to make sure the first word of the sentence is capitalized, and the sentence ends with a punctuation mark. If it not properly written, fix the sentence, print the type of error, and print the fixed sentence. Sample Output: Input a sentence: how are you today? Error: first word not capitalized. How are you today? Input a sentence: doing great Error: first word not capitalized. Error: in punctuation. Doing great. Input a sentence: What about you Error: in punctuation. What about you. Input a sentence: I am doing well too. I am doing well too. Deliverable

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

Seven Databases In Seven Weeks A Guide To Modern Databases And The NoSQL Movement

Authors: Luc Perkins, Eric Redmond, Jim Wilson

2nd Edition

1680502530, 978-1680502534

More Books

Students also viewed these Databases questions