Database System Concepts
Database System Concepts
7th Edition
ISBN: 9780078022159
Author: Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher: McGraw-Hill Education
expand_more
expand_more
format_list_bulleted
Bartleby Related Questions Icon
Related questions
Question
Copy& paste your code and screenshot your console output. Please follow the instructions. Thankyou
Transcribed Image Text:Assume you are working for a company and given the task to build an Email Registration Program. The email
registration program functions as follows.
Prompt the user four things: first name, last name, security question answer, and birthyear.
0
Example:
Enter first name: LeBron
Enter last name: James
(Security Question) Favorite car maker: Bentley
Enter birth year: 1984
Generate a default Kean email address based on the first name and last name.
O
The default Kean email address consists of the first letter of the first name, a period, the entire
last name all in lower case appended with @kean.edu.
0 Example: LeBron James →l.james@kean.edu
Generate a default password based on the first name, security question answer, and birthyear.
O
The default password is a sequence of 3 letters from last name, birthyear, and 3 letters from the
security question answer all in upper case.
O
Example: LeBron, 1984, Bentley → LEB1984BEN
Display the email information with first name, last name, email address, and password.
0
Example:
LeBron James
Kean email: l.james@kean.edu
Kean password: LEB1984BEN
1. [Communications and Facilitating Teamwork] Assume you are the team leader with 4 team members to build
this program where you use the divide-and-conquer strategy, (also known as stepwise refinement) to
decompose this into subproblems where subproblems can be implemented using a method. Based on the
structure chart in Figure 1, the code with method headers in Figure 2, and the sample runs in Figure 3, how
would you explain to your team members on how to build this program. (See Rubric)
For each below, specify in no more than three sentences,
A. what each method should do including the main method,
B. what arguments (or value) are passed from the main method to all the other methods,
C. what should the return values be coming back to the main method.
Note: You are using overloading methods (i.e., same method name with different parameter lists)
Transcribed Image Text:public static void main(String[] args) {
// Declare variables
// Prompt user: firstname, lastname, birthyear, security question
// call email registration method
// call password method
// call result screen method
}
// email registration method (Overloading methods)
public static String defaultInfo(String first, String last) {
// password method (Overloading methods)
public static String defaultInfo(String last, String question, int year) {
// result screen method
public static void resultscreen(String first, String last, String email, String pw) {
=========
System.out.println("========
System.out.println(first
System.out.println("Kean email:
System.out.println("Kean password: + password);
System.out.println("=
Enter first name: LeBron
Enter last name: James
LeBron James
Kean email: 1.james@kean.edu
Kean password: LEB1984BEN
====
+ " " + last);
(Security Question) Favorite car maker: Bentley
Enter birth year: 1954
======
+ email);
Figure 2. Method headers
Enter first name: Elon
Enter last name: Musk
(Security Question) Favorite car maker: Jesla
Enter birth year: 1971
⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀====----
Elon Musk
Kean email: e.musk@kean.edu
Kean password: EL01971TES
------
========
Figure 3. Sample Runs
2. [Implementation] Code the main method and the overloaded method, defaultInfo, as shown in Figure 2. Run
it two times to check if the program works. (Useful Hints on the next page)
Expert Solution
Check MarkThis question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
bartleby
Step by stepSolved in 4 steps with 4 images
Knowledge Booster
Background pattern image
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
- Event Listeners Return to the mas_register.js file in your editor. Directly below the initial comment section, insert an event listener for the window load event. Run an anonymous function in response to the event containing the following commands: Call the calcCart() function (which you will create shortly.) Create an onclick event handler for the regSubmit button that runs the sessionTest() function when the button is clicked. Create onblur event handlers for the input boxes with the ids: fnBox, lnBox, groupBox, mailBox, phoneBox, and banquetBox, running the calcCart() function in response to each event. Create an onchange event handler for the sessionBox selection list, running the calcCart() function when the selection list is changed. Create an onclick event handler for the mediaCB check box, running the calcCart() function in response. JavaScript Functions Create the sessionTest() function. The purpose of this function is to provide a validation test for the conference session...arrow_forwardIt is not a graded question. It is a practice question from last year. I'm stuck please help! Question You should be able to do this question after learning about how to display text and learning howto write a basic counting loop.Use a counting loop to draw the eight buttons on the top button bar. Create appropriate globalconstants to specify the width and height of the buttons as well as the number of buttons. Thisloop should draw buttons with no text labels on them. You can choose whatever fill colour youwant for the buttons.Next, add the text labels [New..., Original, UPPER, lower, iNVERT, camelCase, CONSTANT]to the buttons, one at a time1. You can’t do this inside the loop because each label is unique. Youcan create functions to draw each button label if you want. All the labels should be verticallyaligned and each label should be centered in each button. The buttons should follow the ordershown. There is no label for the last button (that’s for the bonus).Finally, add code to the...arrow_forwardVerify that the image buttons inside the Android Studio IDE have the ability to access image files that have been stored in any location on the project explorer.arrow_forward
- QuillBot will rewrite your document. In this field, type or paste anything, then press Enter.arrow_forwardTo set the initial size of a flexbox item to 250 pixels, use: flex-size: 250px; flex-basis: 250px; flex: 250px; flex-from: 250px;arrow_forwardHands-On Project 10-2 (I need help specifically with the JavaScript Portion) Use your code editor to open the project10-02_txt.html and project10-02_txt.js files from the js10 ▶ project02 folder. Enter your name and the date in the comment section of each file and save them as project10-02.html and project10-02.js, respectively. Go to the project10-02.html file in your code editor. Add a script element linked to the project10-02js file. Defer the loading of the script until after the page is loaded. Close the file, saving your changes. Go to the project10-02.js file in your code editor. Below the rotateTan() function add a for loop that iterates through all the pieces in the tans node list. For each piece add an event listener that runs the grabTan() function in response to the pointerdown event. Create the grabTan() function. Within the function do the following: If the Shift key has been pressed down, call the rotateTan() function using the event target and a value of 15 as...arrow_forward
arrow_back_ios
arrow_forward_ios
Recommended textbooks for you
- Text book imageDatabase System ConceptsComputer ScienceISBN:9780078022159Author:Abraham Silberschatz Professor, Henry F. Korth, S. SudarshanPublisher:McGraw-Hill EducationText book imageStarting Out with Python (4th Edition)Computer ScienceISBN:9780134444321Author:Tony GaddisPublisher:PEARSONText book imageDigital Fundamentals (11th Edition)Computer ScienceISBN:9780132737968Author:Thomas L. FloydPublisher:PEARSON
- Text book imageC How to Program (8th Edition)Computer ScienceISBN:9780133976892Author:Paul J. Deitel, Harvey DeitelPublisher:PEARSONText book imageDatabase Systems: Design, Implementation, & Manag...Computer ScienceISBN:9781337627900Author:Carlos Coronel, Steven MorrisPublisher:Cengage LearningText book imageProgrammable Logic ControllersComputer ScienceISBN:9780073373843Author:Frank D. PetruzellaPublisher:McGraw-Hill Education
Text book image
Database System Concepts
Computer Science
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:McGraw-Hill Education
Text book image
Starting Out with Python (4th Edition)
Computer Science
ISBN:9780134444321
Author:Tony Gaddis
Publisher:PEARSON
Text book image
Digital Fundamentals (11th Edition)
Computer Science
ISBN:9780132737968
Author:Thomas L. Floyd
Publisher:PEARSON
Text book image
C How to Program (8th Edition)
Computer Science
ISBN:9780133976892
Author:Paul J. Deitel, Harvey Deitel
Publisher:PEARSON
Text book image
Database Systems: Design, Implementation, & Manag...
Computer Science
ISBN:9781337627900
Author:Carlos Coronel, Steven Morris
Publisher:Cengage Learning
Text book image
Programmable Logic Controllers
Computer Science
ISBN:9780073373843
Author:Frank D. Petruzella
Publisher:McGraw-Hill Education