Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN: 9780133594140
Author: James Kurose, Keith Ross
Publisher: PEARSON
expand_more
expand_more
format_list_bulleted
Question
In Python Create a
- The first character of the username is the first character of the first name.
- The second character of the username is the first letter of the middle name, if one was provided.
- The rest of the characters will be a prefix of the last name, long enough to meet the length requirement.
- The username can have up to 8 characters only, and in lowercase.
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 4 steps with 2 images
Knowledge Booster
Similar questions
- 4 PLease write in Python You have a unique ID number, which is a string of digits. Assume the variable id references a string that contains your ID number. Write a program that repeatedly reads a string as input. If the string that was entered is not equal to your ID number, the program should display the following string: "This is not your ID number." If the string that was entered is equal to your ID number, the program should display the string: "This is your ID number:", followed by a space, followed by the ID number, and then terminate the loop. NOTE: When reading the input, do not display a prompt for the user. Use the input() function with no prompt string. Here is an example: number = input()arrow_forwardpython Please Write a function that finds the number of occurrences of a specified character in a string using the following header: def count(str, c) ex: count("welcome", "e") returns 2.arrow_forwardCreate a function that determines how many number pairs are embedded in a space-separated string. The first numeric value in the space-separated string represents the count of the numbers, thus, excluded in the pairings. Examples number_pairs("7 1 2 1 2 1 3 2") 2 // (1, 1), (2, 2) number_pairs ("9 10 20 20 10 10 30 50 10 20") 3 // (10, 10), (20, 20), (10, 10) number_pairs("4 2 3 4 1") → 0 // Although two 4's are present, the first one is discounted.arrow_forward
- In C# pleasearrow_forwardString.ParseInt(m); will convert the integer value of m to a String True Falsearrow_forwardPython Programming only plz Create a program to perform the following actions: Create a module that will determine if a string is an email address in this pattern XXXX@XXXX.XXX. you cannot use the regex library. Create a module that determines if a string is a phone number in this pattern XXX-XXX-XXXX. you cannot use the regex library. Then prompt the user: Enter an email address, check to see if the e-mail address is in the correct format. If not ask the user to enter an e-mail address in the correct format. If correct print e-mail accepted. Enter a phone number, check to see if the phone number is in the correct format. If not ask the user to enter a phone number in the correct format. If correct print phone accepted. Print the following: The phone number entered The email address entered Describe the numbers and text you print. Do not just print numbers or strings to the screen explain what each number represents.arrow_forward
- In C++arrow_forwardCode is in C++ Instructions Write a program that reads in a line consisting of a student’s name, Social Security number, user ID, and password. The program outputs the string in which all the digits of the Social Security number and all the characters in the password are replaced by x. (The Social Security number is in the form 000-00-0000, and the user ID and the password do not contain any spaces.) Your program should not use the operator [] to access a string element. Input is as follows highlighted in bold John Doe 333224444 DoeJ 123Password My problem is with my output, i am close with the code, but i have attached what happens on my output and i cannot figure out why? You can see how it prints out multiple times but i am lost? The terminal image is also attached. Thank you! Here is the code: #include <iostream> //include statement(s)#include <iomanip>#include <string> using namespace std; //using namespace statement(s) void getInfo(string info); //void…arrow_forwardJS Write a function named "tweets" that takes a string as a parameter. If a message can hold at most 280 characters, calculate the smallest number of messages needed to hold all of the text in the input. The function should return the number it calculated.arrow_forward
- In vim, when the cursor is on the first letter of a word, you may capitalise it by typing x and then p.arrow_forwardVowels and Consonants:Write a program with a function that accepts a string as an argument and returns thenumber of vowels that the string contains. The application should have another function that Programming Exercises 369 VideoNote The Vowels and Consonants problem 370 Chapter 9 More About Strings accepts a string as an argument and returns the number of consonants that the string contains. The application should let the user enter a string and should display the number of vowels and the number of consonants it contains. *python codimgarrow_forwardIn python pleasearrow_forward
arrow_back_ios
SEE MORE QUESTIONS
arrow_forward_ios
Recommended textbooks for you
- Computer Networking: A Top-Down Approach (7th Edi...Computer EngineeringISBN:9780133594140Author:James Kurose, Keith RossPublisher:PEARSONComputer Organization and Design MIPS Edition, Fi...Computer EngineeringISBN:9780124077263Author:David A. Patterson, John L. HennessyPublisher:Elsevier ScienceNetwork+ Guide to Networks (MindTap Course List)Computer EngineeringISBN:9781337569330Author:Jill West, Tamara Dean, Jean AndrewsPublisher:Cengage Learning
- Concepts of Database ManagementComputer EngineeringISBN:9781337093422Author:Joy L. Starks, Philip J. Pratt, Mary Z. LastPublisher:Cengage LearningPrelude to ProgrammingComputer EngineeringISBN:9780133750423Author:VENIT, StewartPublisher:Pearson EducationSc Business Data Communications and Networking, T...Computer EngineeringISBN:9781119368830Author:FITZGERALDPublisher:WILEY
Computer Networking: A Top-Down Approach (7th Edi...
Computer Engineering
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:PEARSON
Computer Organization and Design MIPS Edition, Fi...
Computer Engineering
ISBN:9780124077263
Author:David A. Patterson, John L. Hennessy
Publisher:Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:9781337569330
Author:Jill West, Tamara Dean, Jean Andrews
Publisher:Cengage Learning
Concepts of Database Management
Computer Engineering
ISBN:9781337093422
Author:Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:Cengage Learning
Prelude to Programming
Computer Engineering
ISBN:9780133750423
Author:VENIT, Stewart
Publisher:Pearson Education
Sc Business Data Communications and Networking, T...
Computer Engineering
ISBN:9781119368830
Author:FITZGERALD
Publisher:WILEY