Database System Concepts
7th Edition
ISBN: 9780078022159
Author: Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher: McGraw-Hill Education
expand_more
expand_more
format_list_bulleted
Question
thumb_up100%
Using Python, Many user-created passwords are simple and easy to guess. Write a
- i becomes !
- a becomes @
- m becomes M
- B becomes 8
- o becomes .
Ex: If the input is:
mypassword
the output is:
Myp@ssw.rdq*s
Expert Solution
This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
This is a popular solution
Trending nowThis is a popular solution!
Step by stepSolved in 2 steps
Knowledge Booster
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.Similar questions
- Help me with this zybook questionarrow_forwardSamething this is not a graded question it's all in python.arrow_forwardAssignment: Check the Sample run first, then carefully read the instructions and write aprogram that prompts the user for first name, last name, then secret number. The output willgenerate a default email address and a default password. 1. The main method will do the following:• Asks the user for first name, last name, and secret number using Scanner. (first lettercan be in upper case)• Call defaultInfo(String, String) method to PRINT default Kean email address.• Call defaultInfo(String, int) method to PRINT default Kean password.• Note: You are using overloaded methods (i.e., same method name with differentparameter lists) 2. Write an overloaded method, defaultInfo, which does the following:• public static void defaultInfo(String firstName, String lastName) [Note:you can use your own variable name]‒ print default email address all in low caps: concatenate first letter offirstName, full lastName, and @gmail.com. [Hint: string.charAt(index),string.toLowerCase()]• public static void…arrow_forward
- Passwords that are created by users are usually very simple and easy to guess. Create a Python program that takes a simpler pswrd + makes it stronger by taking characters using the rules below, and by appending "!" to the ending of the input string. i becomes 1 a becomes @ m becomes M B becomes 8 s becomes $ Example: If the input is: mypassword the output is: Myp@$$word! Hint: Python strings are immutable, but support string concatenation. Store and build the stronger password in the given password variable This is what I have so far.... word = input()password = ''arrow_forwardDesign a program with an algorithm that will take a string from the user and then decide if each character in that string is unique. For example, if you ask the user to enter a string and that user enters the world ‘hello’, the result of the algorithm implementedshould return ‘false’ or ‘not unique’. If the user enters a string such as the word ‘phone’ the program will return ‘true’ or ‘unique’ since every character in the word phone is unique and is not repeated. An example of this program follows: Output should show as : enter a string rizma This string has all the unique characters would u like to continue?(y for yes n for no) y Enter a string waali This string is not unique Your code should work for all strings and essentially all characters, as many examples will be tested.arrow_forwardIN PYTHON: Given a string representing a 10-digit phone number, output the area code, prefix, and line number using the format (800) 555-1212. Ex: If the input is: 8005551212 the output is: (800) 555-1212 Hint: Use string slicing operators. 18005551212 is not allowed.arrow_forward
- Write a program that prints all letters that occur a single time in a string. For example, if the string is Mississippi, print M, and if it is Missouri, print Mour. Use nested loops to solve this problem. CAN NOT EDIT ANY CODE OUTSIDE OF THE /* Your code goes here */arrow_forwardWrite a python program that takes a string as an input from the user. Then check which email domain the user is using and print it. For this question, assume you have only 4 email domains available and they are gmail, yahoo, outlook, and bracu. [You are NOT allowed to use split() and sting slicing for this task] Sample Input 1: tom@gmail.com Sample Output 1: The user is using gmail as a mailing domain. Explanation 1: Since gmail domain is being used by the user. Sample Input 2: kelvin@yahoo.com Sample Output 2: The user is using yahoo as a mailing domain. Explanation 2: Since yahoo domain is being used by the user. IIarrow_forward"000" is a string commonly found in weak passwords. Count the number of occurrences of "000" in keyWord and remove all instances of "000" from keyword. Ex: If the input is 000kgnklv$L#x000, then the output is: Number of violations: 2 Remaining string: kgnklv$L#X Note: string.find(item) returns the index of the first occurrence of item in string. If no occurrence is found, then the function returns string:npos. • string.replace(indx, num, subStr) replaces characters at indices indx to indx+num-1 with a copy of subStr. 3 using namespace std; 4 5 int main() { 6 7 8 9 10 11 count = 0; 218H15 16 18 19 string keyword; int count; int index; 12 index = 0; 13 cin >> keyword; 17 14 /* Your code goes here */ cout << "Number of violations: " << count << endl; cout << "Remaining string: " << keyword << endl; return 0; Darrow_forward
- Many user-created passwords are simple and easy to guess. Write a program that takes a simple password and makes it stronger by replacing characters using the key below, and by appending "q*s" to the end of the input string. • i becomes ! • a becomes @ • m becomes M • B becomes 8 • o becomes . Ex: If the input is: mypassword the output is: Myp@ssw.rdq*s LAB 6.19.1: LAB: Password modifier 0/10 ACTIVITY main.cpp Load default template. 1 #include 2 #include 3 using namespace std; 4 5 int main() { 7 /* Type your code here. */ 8 return e; 10 }arrow_forwardWrite a program that reads a string (password) and a number. The maximum number of attempts (3). The program with stop asking data if the word ‘quit’ is provided in the password value. If user provide correct credential the message access granted will be displayed otherwise the message access denied with be generated.arrow_forwardAssume a given email is valid. Write a program which extracts the username and domain from a valid email address using string::find and string::substr methods. Sample output: Type your valid email: eyildirim@qcc.cuny.edu Username: eyildirim Domain: qcc.cuny.edu C++ #include <iostream>#include <string>using namespace stdarrow_forward
arrow_back_ios
SEE MORE QUESTIONS
arrow_forward_ios
Recommended textbooks for you
- Database System ConceptsComputer ScienceISBN:9780078022159Author:Abraham Silberschatz Professor, Henry F. Korth, S. SudarshanPublisher:McGraw-Hill EducationStarting Out with Python (4th Edition)Computer ScienceISBN:9780134444321Author:Tony GaddisPublisher:PEARSONDigital Fundamentals (11th Edition)Computer ScienceISBN:9780132737968Author:Thomas L. FloydPublisher:PEARSON
- C How to Program (8th Edition)Computer ScienceISBN:9780133976892Author:Paul J. Deitel, Harvey DeitelPublisher:PEARSONDatabase Systems: Design, Implementation, & Manag...Computer ScienceISBN:9781337627900Author:Carlos Coronel, Steven MorrisPublisher:Cengage LearningProgrammable Logic ControllersComputer ScienceISBN:9780073373843Author:Frank D. PetruzellaPublisher:McGraw-Hill Education
Database System Concepts
Computer Science
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:McGraw-Hill Education
Starting Out with Python (4th Edition)
Computer Science
ISBN:9780134444321
Author:Tony Gaddis
Publisher:PEARSON
Digital Fundamentals (11th Edition)
Computer Science
ISBN:9780132737968
Author:Thomas L. Floyd
Publisher:PEARSON
C How to Program (8th Edition)
Computer Science
ISBN:9780133976892
Author:Paul J. Deitel, Harvey Deitel
Publisher:PEARSON
Database Systems: Design, Implementation, & Manag...
Computer Science
ISBN:9781337627900
Author:Carlos Coronel, Steven Morris
Publisher:Cengage Learning
Programmable Logic Controllers
Computer Science
ISBN:9780073373843
Author:Frank D. Petruzella
Publisher:McGraw-Hill Education