A Main method will have a loop of your choice that will ask five users one...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
• A Main method will have a loop of your choice that will ask five users one by one to provide their first name and last name. Example for 1 input (1 iteration of the loop): 1. Enter your first name: Joanne 2. Enter your last name: Rowling The Main method will call generateEmail() and generatePassword() methods to generate Kean email and its password Method generateEmail() will generate a personal Kean email address based on the first name and last name. Such Kean email address consists of the first letter of the first name and the entire last name all in lower case appended with @kean.edu Example: Joanne Rowling => jrowling@kean.edu To simplify this question, we assume all usernames are unique. Method generatePassword() will generate and return to the caller a Random integer between 100000 and 999999 to be used as a temporary password • The Main method will print information for each of 5 students in the form of small table in the form below on Console: Full name Joanne Rowling Kean email jrowling@kean.edu Password 548876 Example Console Output Screenshot: Enter your first name: Kate Enter your Last name: Beckinsale Full name Kate Beckinsale Enter your first name: Bobby Enter your Last name: Cannavale Full name Bobby Cannavale Enter your first name: Laverne Enter your Last name: Cox Full name Laverne Cox Enter your first name: Stanley Enter your Last name: Tucci Full name Stanley Tucci Enter your first name: Jai Enter your Last name: Courtney /******** * * * * * * * * * *** Kean email kbeckinsale@kean.edu Kean email bcannavale@kean.edu Full name Kean email jcourtney@kean.edu Jai Courtney Your program should start with the following comment lines: Kean email lcox@kean.edu *********/ Kean email stucci@kean.edu Kean University Fall 2023 Course: CPS2231 Computer Programming Author: Your Full Name, course, section Homework 1 Program Description: Password 888498 Password 437280 Password 444907 Password 104891 Password 447857 Submit your source code (.java file) and the screenshot of console output to Canvas. ***** • A Main method will have a loop of your choice that will ask five users one by one to provide their first name and last name. Example for 1 input (1 iteration of the loop): 1. Enter your first name: Joanne 2. Enter your last name: Rowling The Main method will call generateEmail() and generatePassword() methods to generate Kean email and its password Method generateEmail() will generate a personal Kean email address based on the first name and last name. Such Kean email address consists of the first letter of the first name and the entire last name all in lower case appended with @kean.edu Example: Joanne Rowling => jrowling@kean.edu To simplify this question, we assume all usernames are unique. Method generatePassword() will generate and return to the caller a Random integer between 100000 and 999999 to be used as a temporary password • The Main method will print information for each of 5 students in the form of small table in the form below on Console: Full name Joanne Rowling Kean email jrowling@kean.edu Password 548876 Example Console Output Screenshot: Enter your first name: Kate Enter your Last name: Beckinsale Full name Kate Beckinsale Enter your first name: Bobby Enter your Last name: Cannavale Full name Bobby Cannavale Enter your first name: Laverne Enter your Last name: Cox Full name Laverne Cox Enter your first name: Stanley Enter your Last name: Tucci Full name Stanley Tucci Enter your first name: Jai Enter your Last name: Courtney /******** * * * * * * * * * *** Kean email kbeckinsale@kean.edu Kean email bcannavale@kean.edu Full name Kean email jcourtney@kean.edu Jai Courtney Your program should start with the following comment lines: Kean email lcox@kean.edu *********/ Kean email stucci@kean.edu Kean University Fall 2023 Course: CPS2231 Computer Programming Author: Your Full Name, course, section Homework 1 Program Description: Password 888498 Password 437280 Password 444907 Password 104891 Password 447857 Submit your source code (.java file) and the screenshot of console output to Canvas. *****
Expert Answer:
Related Book For
Systems Analysis And Design
ISBN: 978-1119496489
7th Edition
Authors: Alan Dennis, Barbara Wixom, Roberta M. Roth
Posted Date:
Students also viewed these programming questions
-
Explain the methodology of calculation of HDI.
-
Planning is one of the most important management functions in any business. A front office managers first step in planning should involve determine the departments goals. Planning also includes...
-
THIRD AVENUE SOFTWARE HEALTH-CARE APP PROJECT This case is new for the ninth edition of Information Technology Project Management . The case provides an opportunity to apply agile and Scrum...
-
The pilot of a small boat charts a course such that the boat will always be equidistant from an upcoming rock and the shoreline. Describe the path of the boat. If the rock is 2 miles offshore, write...
-
Consider the two vectors A = 3i 2j and B = i 4j. Calculate (a) A + B, (b) A B, (c) |A + B|, (d) |A B|, and (e) the directions of A + B and A B.
-
Warwick's Co., a women's clothing store, purchased $75,000 of merchandise from a supplier on account, terms FOB destination, 2/10, n/30. Warwick's returned $9,000 of the merchandise, receiving a...
-
Find the median of the weights listed in Example 1. Data from Example 1 The weights (in pounds) for a sample of adults before starting a weight-loss study are listed. What is the mean weight of the...
-
Washington Mining began operations by issuing common stock for $150,000. The company paid $135,000 cash in advance for a one-year contract to lease machinery for the business. The lease agreement was...
-
1. Over the past thirty years, post-secondary tuition rates in Canada have increased dramatically. Had tuition grown at the rate of inflation, the average in 2019-20 would have been only $2,541. What...
-
Imagine a sedimentary basin on some planetary body that is confined on all sides and filled to a depth of 1 km. The horizontal strains, xx and yy are both zero, and the vertical stress at any depth...
-
Merelyn Ltd reported a profit before tax for the year to 30 June 2017 of $600 000. The company's statements of financial position include assets and liabilities as follows: 2016 2017 Accounts...
-
Find all mixed strategy Nash Equilibria of the game in table 4 by first eliminating any strictly dominated actions and then constructing the players' best response functions. Player 2 LMR T 2,2 0,3...
-
Belize's hot pepper industry position in the global hot pepper industry. What do you conclude about the selected industry's competitiveness?
-
Complete the following reaction schemes by adding the appropriate reactant(s), reagent(s), conditions, and/or major product(s). Make sure to indicate the proper regiochemistry and stereochemistry...
-
Can you explain why a repeated measures design is effective at controlling for random error?
-
How do cells intricately orchestrate the flux of metabolic intermediates through complex regulatory networks to maintain homeostasis amidst fluctuating environmental cues ?
-
a) Define the term respiration 2mks b) Explain the various factors that affect the rate of respiration in man
-
A simple random sample of 220 university students were asked what pasta they usually order and with which sauce. The preferences of these respondents are summarised below: Sauce Bolognese Pasta...
-
Create a set of use cases for the process of buying glasses from the viewpoint of the patient, but do not bother to identify the steps within each use case. (Just complete the information at the top...
-
Describe the principal steps in the implementation phase. What are the major deliverables?
-
Suppose that you are installing a new accounting package in your small business. What conversion strategy would you use? Develop a conversion plan (i.e., technical aspects only).
-
Steam at 8 bar pressure and dryness fraction of 0.9 expands at constant pressure until the temperature is \(200^{\circ} \mathrm{C}\). Calculate the work input and heat supplied per \(\mathrm{kg}\) of...
-
Find the enthalpy and internal energy of steam at a pressure of 10 bar and temperature \(200^{\circ} \mathrm{C}\). Assume \(c_{p s}=2.1 \mathrm{~kJ} / \mathrm{kg}\).K for superheated steam.
-
The following readings were taken with a separating and throttling calorimeter: \[ \begin{aligned} \text { Initial pressure } & =12 \mathrm{bar} \\ \text { Final pressure } & =1.2 \mathrm{bar} \\...
Study smarter with the SolutionInn App