Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

solve in simple python Problem: Generating login names * This program generates a login name for multiple customers. Write a program that prompts a user

image text in transcribed

solve in simple python

Problem: Generating login names * This program generates a login name for multiple customers. Write a program that prompts a user to enter two inputs. The first input represents the first, and last name of a customer (names should be separated by a comma), the second input represents a six d ID of the customer. Then the program generates and displays a login name of the customer. Login name rules: The login name has eight characters and it is created as follows: first two characters of the first no of the customer, first two characters of the last name of the customer, and first three digits of the number. The name characters and ID digits are separated by '_. If the first or/and the last name do not have at least two characters, the program displays "the lo name will be not created.' All letters of the login name are in upper form. The program creates login names for multiple customers, by entering "NONE" for the name input, program ends. Page 1 See a possible outputs of the program: -WY. This program creates login names of users. By entering "NONE" for the name you end the program. Enter the first name, and the last name separated by a space: Anna Bertran Enter the ID of the customer: 124578 The generated login name is: ANBE_124 Enter the next name (separated by a space): Phil Greate Enter the ID of the customer: 784578 The generated login name is: PHGR_784 Enter the next name (separated by a space): A K Enter the ID of the customer: 457896 The login name will be not created. Enter the next name (separated by a space): NONE Thank you for using my program! >>>

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

Machine Learning And Knowledge Discovery In Databases European Conference Ecml Pkdd 2015 Porto Portugal September 7 11 2015 Proceedings Part 3 Lnai 9286

Authors: Albert Bifet ,Michael May ,Bianca Zadrozny ,Ricard Gavalda ,Dino Pedreschi ,Francesco Bonchi ,Jaime Cardoso ,Myra Spiliopoulou

1st Edition

ISBN: 3319234609, 978-3319234601

More Books

Students also viewed these Databases questions

Question

LO2 Compare three types of individual incentives.

Answered: 1 week ago