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...

  • 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...

  • 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....

  • // 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...

  • 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...

  • JAVA Create a Java project to implement a simple Name class. This class will have the...

    JAVA Create a Java project to implement a simple Name class. This class will have the following class variable: First Name, Middle Name, Last Name, and Full Name Create the accessor/getter and mutator/setter methods. In addition to these methods, create a toString() method, which overrides the object class toString() method. This override method prints the current value of any of this class object. Create a main() method to test your project.

  • 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...

  • Creating a Shell Interface Using Java This project consists of modifying a Java program so that...

    Creating a Shell Interface Using Java This project consists of modifying a Java program so that it serves as a shell interface that accepts user commands and then executes each command in a separate process external to the Java virtual machine. Overview A shell interface provides the user with a prompt, after which the user enters the next command. The example below illustrates the prompt jsh> and the user’s next command: cat Prog.java. This command displays the file Prog.java on...

  • java This lab is intended to give you practice creating a class with a constructor method,...

    java This lab is intended to give you practice creating a class with a constructor method, accessor methods, mutator methods, equals method , toString method and a equals method. In this lab you need to create two separate classes, one Student class and other Lab10 class. You need to define your instance variables, accessor methods, mutator methods, constructor, toString method and equals method in Student class. You need to create objects in Lab10 class which will have your main method...

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
ADVERTISEMENT