1. The main method will do the following: · Asks the user for first name, last name, and secret number using Scanner. (first letter Call defaultInfo (String, String) method to PRINT default Kean email address Note: You are using overloaded methods (i.e., same method name with different can be in upper case) Call defaultInfo (String, int) method to PRINT default Kean password parameter lists) 2. Write an overloaded method, defaultInfo, which does the following: public static void defaultInfo (String firstName, String lastName) [Note: you can use your own variable name] print default Kean email address all in low caps: concatenate first letter of firstName, full lastName, and @kean.edu. [Hint: string.charAt(index), string.toLowerCase)1 public static void defaultInfo (String firstName, int secret) [Note: You can use your own variable name] print default password all in low caps: concatenate the full firstName in reverse order and the secret number). [Hint: use a loop, string.lengthO, string.charAt(index), string.toLowerCase()] 3. More useful hints on the next page. Two Sample Runs: Enter first name: Daehan Enter last name: Kwak Enter secret number: 2018 Kean email: dkwak@kean.edu Kean password: nahead2018 Enter first name:Micheal Enter last name: Jordan Enter secret number: 23 Kean email: miordan@kean.edu Kean password: laehcim23

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
icon
Related questions
Question

Write a program in Eclipse that prompts the user for first name, last name, then secret number. The output will generate a default Kean email address and a default password.

1. The main method will do the following:
· Asks the user for first name, last name, and secret number using Scanner. (first letter
Call defaultInfo (String, String) method to PRINT default Kean email address
Note: You are using overloaded methods (i.e., same method name with different
can be in upper case)
Call defaultInfo (String, int) method to PRINT default Kean password
parameter lists)
2. Write an overloaded method, defaultInfo, which does the following:
public static void defaultInfo (String firstName, String lastName) [Note:
you can use your own variable name]
print default Kean email address all in low caps: concatenate first letter of
firstName, full lastName, and @kean.edu. [Hint: string.charAt(index),
string.toLowerCase)1
public static void defaultInfo (String firstName, int secret) [Note: You
can use your own variable name]
print default password all in low caps: concatenate the full firstName in reverse
order and the secret number). [Hint: use a loop, string.lengthO,
string.charAt(index), string.toLowerCase()]
3. More useful hints on the next page.
Two Sample Runs:
Enter first name: Daehan
Enter last name: Kwak
Enter secret number: 2018
Kean email: dkwak@kean.edu
Kean password: nahead2018
Enter first name:Micheal
Enter last name: Jordan
Enter secret number: 23
Kean email: miordan@kean.edu
Kean password: laehcim23
Transcribed Image Text:1. The main method will do the following: · Asks the user for first name, last name, and secret number using Scanner. (first letter Call defaultInfo (String, String) method to PRINT default Kean email address Note: You are using overloaded methods (i.e., same method name with different can be in upper case) Call defaultInfo (String, int) method to PRINT default Kean password parameter lists) 2. Write an overloaded method, defaultInfo, which does the following: public static void defaultInfo (String firstName, String lastName) [Note: you can use your own variable name] print default Kean email address all in low caps: concatenate first letter of firstName, full lastName, and @kean.edu. [Hint: string.charAt(index), string.toLowerCase)1 public static void defaultInfo (String firstName, int secret) [Note: You can use your own variable name] print default password all in low caps: concatenate the full firstName in reverse order and the secret number). [Hint: use a loop, string.lengthO, string.charAt(index), string.toLowerCase()] 3. More useful hints on the next page. Two Sample Runs: Enter first name: Daehan Enter last name: Kwak Enter secret number: 2018 Kean email: dkwak@kean.edu Kean password: nahead2018 Enter first name:Micheal Enter last name: Jordan Enter secret number: 23 Kean email: miordan@kean.edu Kean password: laehcim23
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 6 steps with 4 images

Blurred answer
Knowledge Booster
InputStream
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
Recommended textbooks for you
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education