Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

CSC110 Java Programming Name: Ch 3 Program 1: UserNameGenerator.java Please adhere to the Standards for Programming Assignments and the Java Coding Guidelines Write an application

image text in transcribed
CSC110 Java Programming Name: Ch 3 Program 1: UserNameGenerator.java Please adhere to the Standards for Programming Assignments and the Java Coding Guidelines Write an application that prompts for and reads the user's first name and last name. You must prompt them separately for that. Then print a string composed of the first letter of the user's first name, followed by the first five characters of the user's last name, followed by a random number in the range 10 to 99. Assume that the last name is at least five letters long. Hint: Use the String class's method, CharAt to get the first letter of the first name and the substring method to get the first five letters of the last name. Expected output: ******User Name Generator****** Enter your first name: Dennis Enter your last name: Ritchie Username Generated: DRitch80 Good Bye

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

Database Programming With Visual Basic .NET

Authors: Carsten Thomsen

2nd Edition

1590590325, 978-1590590324

More Books

Students also viewed these Databases questions

Question

Example. Evaluate 5n+7 lim 7-00 3n-5

Answered: 1 week ago

Question

How do Excel Pivot Tables handle data from non OLAP databases?

Answered: 1 week ago