Question

in java : Create Java Application you are to create a project using our designated IDE...

in java :

Create Java Application

you are to create a project using our designated IDE (which you must download to your laptop). Create the code to fulfill the requirements below. Demonstrate as stipulated below.

Create a Main Application Class called AddressBookApplication (a counsole application / command line application). It should Contain a Class called Menu that contains the following methods which print out to standard output a corresponding prompt asking for related information which will be used to update the variables in AddressEntry (see Project 1). However, this exercise is only dealing with the standard output portion -- only the display of the prompt. These are the prompt methods you will need to implement:

  • prompt_FirstName();
  • prompt_LastName();
  • prompt_Street();
  • prompt_City();
  • prompt_State();
  • prompt_Zip();
  • prompt_Telephone()
  • prompt_Email();

Create some code in the main method of your Application class (AddressBookApplication) that calls each of the prompt_* methods which generate strings and prints them out to the Standard Console Window. For example, using this method

prompt_FirstName()

we would get a result to the standard output of:

First Name:

Some Starting code for our 2 classes AddressBookApplication and Menu

The Process

because this is your first exercise I am going to give you more guidance than I normally will ---here are the steps I suggest you follow.

Step 1 : Using IntelliJ IDE create a project called AddressBookApplication using the command line template project option and set the main application class to the name AddressBookApplication.

Step 2 : Compile and run ---nothing really will happen but, should run

Step 3 : Create a new class in the src folder of your project called Menu.java and copy the partial code of Menu.java from the starting code I have given you.

Step 4 : Compile and run --still nothing new happens as your AddressBookApplication's main method does nothing

Step 5 : Edit the main method of the AddressBookApplication class to look like what is shown in the starting code I have given you.

Step 6 : Compile and run --now you should see the first prompt method output something to the standard output

Step 7 : Edit both your Menu class to complete the requirements above. Also, edit the main method of the AddressBookApplication class to call ALL of the Menu's static prompt methods. Compile and Run.

0 0
Add a comment Improve this question Transcribed image text
Answer #1

SOURCE CODE IN JAVA:

Menu.java

class Menu

{

//functions to print prompts for particular fields

//function to prompt for first name

public static void prompt_FirstName()

{

System.out.println("First Name:");

}

//function to prompt for last name

public static void prompt_LastName()

{

System.out.println("Last Name:");

}

//function to prompt for street

public static void prompt_Street()

{

System.out.println("Street:");

}

//function to prompt for city

public static void prompt_City()

{

System.out.println("City:");

}

//function to prompt for state

public static void prompt_State()

{

System.out.println("State:");

}

//function to prompt for zip

public static void prompt_Zip()

{

System.out.println("Zip:");

}

//function to prompt for telephone

public static void prompt_Telephone()

{

System.out.println("Telephone:");

}

//function to prompt for email

public static void prompt_Email()

{

System.out.println("Email:");

}

}

AddressBookApplication.java

class AddressBookApplication

{

public static void main(String[] args)

{

//calling functions from Menu

Menu.prompt_FirstName();

Menu.prompt_LastName();

Menu.prompt_Street();

Menu.prompt_City();

Menu.prompt_State();

Menu.prompt_Zip();

Menu.prompt_Telephone();

Menu.prompt_Email();

}

}

OUTPUT:

Add a comment
Know the answer?
Add Answer to:
in java : Create Java Application you are to create a project using our designated IDE...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • MasterMind in Java Activity MasterMind project Create a new Java Application project named MasterMind allowing Netbeans...

    MasterMind in Java Activity MasterMind project Create a new Java Application project named MasterMind allowing Netbeans IDE to create the main class called MasterMind.java MasterMind class Method main() should: Call static method System.out.println() and result in displaying “Welcome to MasterMind!” Call static method JOptionPane.showMessageDialog(arg1, arg2) and result in displaying a message dialog displaying “Let’s Play MasterMind!” Instantiate an instance of class Game() constants Create package Constants class Create class Constants Create constants by declaring them as “public static final”: public...

  • help please Perform the following steps: a) Using NetBeans, Create a New Java Application Project with...

    help please Perform the following steps: a) Using NetBeans, Create a New Java Application Project with Project Name BasePlusCommission Employee Test with Create Main Class check box selected. Create comments to form a descriptive header that has the course name, your name, the assignment title, and a pledge that you have neither received nor provided help to any person. Assignments submitted without this pledge will not be graded. When you have completed the steps (b) and (c) below, you will...

  • // Client application class and service class Create a NetBeans project named StudentClient following the instructions...

    // Client application class and service class Create a NetBeans project named StudentClient following the instructions provided in the Starting a NetBeans Project instructions in the Programming Exercises/Projects Menu on Blackboard. Add a class named Student to the StudentClient project following the instructions provided in the Starting a NetBeans Project instructions in the Programming Exercises/Projects Menu on Blackboard. After you have created your NetBeans Project your application class StudentC lient should contain the following executable code: package studentclient; public class...

  • Java Project In Brief... For this Java project, you will create a Java program for a...

    Java Project In Brief... For this Java project, you will create a Java program for a school. The purpose is to create a report containing one or more classrooms. For each classroom, the report will contain: I need a code that works, runs and the packages are working as well The room number of the classroom. The teacher and the subject assigned to the classroom. A list of students assigned to the classroom including their student id and final grade....

  • Java(Eclipse). The task will create a server and client and send a message from the client...

    Java(Eclipse). The task will create a server and client and send a message from the client to the server. We will have two classes NetworkClient and NetworkServerListener classes. These will each have a main to run from the command line The NetworkServerListener class will listen for a client connection from NetworkClient , receive a message, display the message to the console (stdout) and exit. The NetworkClient class will create a connection to the NetworkServerListener and send a message to the...

  • create a new Java application called "WeightedAvgWithExceptions" (without the quotation marks), according to the following guidelines...

    create a new Java application called "WeightedAvgWithExceptions" (without the quotation marks), according to the following guidelines and using try-catch-finally blocks in your methods that read from a file and write to a file, as in the examples in the lesson notes for reading and writing text files. Input File The input file - which you need to create and prompt the user for the name of - should be called 'data.txt', and it should be created according to the instructions...

  • This exercise guides you through the process of converting an Area and Perimeter application from a...

    This exercise guides you through the process of converting an Area and Perimeter application from a procedural application to an object-oriented application. Create and use an object 1. Open the project named ch04_ex2_Area and Perimeter that’s stored in the ex_starts folder. Then, review the code for the Main class. 2. Create a class named Rectangle and store it in the murach.rectangle package. 3. In the Rectangle class, add instance variables for length and width. The, code the get and set...

  • create a new Java application called "WeightedAvgDataAnalyzer" (without the quotation marks), that modifies the DataAnalyzer.java in...

    create a new Java application called "WeightedAvgDataAnalyzer" (without the quotation marks), that modifies the DataAnalyzer.java in Horstmann Section 7.5, pp. 350-351 according to the specifications below. The input file should be called 'data.txt' and should be created according to the highlighted instructions below. Note that even though you know the name of the input file, you should not hard-code this name into your program. Instead, prompt the user for the name of the input file. The input file should contain...

  • create a new Java application called "CheckString" (without the quotation marks) according to the following guidelines....

    create a new Java application called "CheckString" (without the quotation marks) according to the following guidelines. ** Each method below, including main, should handle (catch) any Exceptions that are thrown. ** ** If an Exception is thrown and caught, print the Exception's message to the command line. ** Write a complete Java method called checkWord that takes a String parameter called word, returns nothing, and is declared to throw an Exception of type Exception. In the method, check if the...

  • Java

    Task #1 Creating a New Class1. In a new file, create a class definition called Television.2. Put a program header (comments/documentation) at the top of the file// The purpose of this class is to model a television// Your name and today's date3. Declare the 2 constant fields listed in the UML diagram.4. Declare the 3 remaining fields listed in the UML diagram.5. Write a comment for each field indicating what it represents.6. Save this file as Television.java.7. Compile and debug....

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT