Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Your task is to create a simple console program that will ask the user to enter their name and then will output a new Blogger

Your task is to create a simple console program that will ask the user to enter their name and then will output a new "Blogger name" for them to use

1) Prompt the user to enter a full name. A full name should be LETTERS ONLY (no numbers or special

symbols) and should include a single space.

2) Assume that everything before the space is the user's first name, and everything after the space is

their their surname.

3) Create a new "Blogger name" by using STRING METHODS to manipulate and/or add to the

user's name [See notes below] and output the new "Blogger Name". The more manipulation you

do using STRING METHODS, the higher your mark will be (assuming you have commented

your code and explained what you have done!)

4) Ensure that the Blogger name uses SOME ELEMENTS of the original user name

5) Output suitable error message(s) if the user enters invalid data.

Blogger name notes

You can use any String methods / manipulation at all to create a Blogger Name.

A very simple example would be to take the first letter of the firstname and put it with the surname.

So:

Maxwell Healy

Mhealy

More complex rules could be based on the length of a name, what letter a name starts with, whether a name contains certain letters, etc. You can also add your own characters/parts to create a Blogger name, as long as you ensure that the user's original name is used somehow

So:

Maxwell Healy

Handsome MH Blogger

or

Maxwell Healy

Maxwell the Blog Ylaelh.

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

Financial management theory and practice

Authors: Eugene F. Brigham and Michael C. Ehrhardt

12th Edition

978-0030243998, 30243998, 324422695, 978-0324422696

Students also viewed these Programming questions