Question: 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
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
Get step-by-step solutions from verified subject matter experts
