Write a program that allows the user to enter his or her name. The program should output

Question:

Write a program that allows the user to enter his or her name. The program should output a username for entry into a website. The user should be prompted to enter a first name, middle initial, and last name. If the user doesn’t have a middle initial, the entry should be “none.” In this case, the output will be a username that concatenates the first and last names with a dot between them. If the user has a middle initial, the output username should be in the form first.middle_initial.last. For example, a user whose name is Harold Nguyen would have Harold.Nguyen for his username and a user whose name is Maria Anna Lopez would have Maria.A.Lopez for a username.

Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer:

Related Book For  book-img-for-question

Prelude To Programming

ISBN: 9780133741636

6th Edition

Authors: Stewart Venit, Elizabeth Drake

Question Posted: