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
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
Chapter7: Using Methods
Section: Chapter Questions
Problem 1CP
Related questions
Question
Write a
Expert Solution
This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
This is a popular solution!
Trending now
This is a popular solution!
Step by step
Solved in 6 steps with 4 images
Knowledge Booster
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.Recommended textbooks for you
Microsoft Visual C#
Computer Science
ISBN:
9781337102100
Author:
Joyce, Farrell.
Publisher:
Cengage Learning,
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT
Programming Logic & Design Comprehensive
Computer Science
ISBN:
9781337669405
Author:
FARRELL
Publisher:
Cengage
Microsoft Visual C#
Computer Science
ISBN:
9781337102100
Author:
Joyce, Farrell.
Publisher:
Cengage Learning,
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT
Programming Logic & Design Comprehensive
Computer Science
ISBN:
9781337669405
Author:
FARRELL
Publisher:
Cengage