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

Microsoft Visual C#
7th Edition
ISBN:9781337102100
Author:Joyce, Farrell.
Publisher:Joyce, Farrell.
Chapter7: Using Methods
Section: Chapter Questions
Problem 1CP
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
  • SEE MORE QUESTIONS
Recommended textbooks for you
Microsoft Visual C#
Microsoft Visual C#
Computer Science
ISBN:
9781337102100
Author:
Joyce, Farrell.
Publisher:
Cengage Learning,
EBK JAVA PROGRAMMING
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT
Programming Logic & Design Comprehensive
Programming Logic & Design Comprehensive
Computer Science
ISBN:
9781337669405
Author:
FARRELL
Publisher:
Cengage