Create a java application that displays your name

Assignment Help JAVA Programming
Reference no: EM131937190

Problem

In order to practice writing, compiling, and running Java, you decide to create a Java application that displays your name and address on the screen. Perform the following steps.

1. Start Text Pad. Save the file on the Data Disk with your first name as the file name. Make sure you choose Java (*.java) in the Save as type box. Click the Save in box arrow to save the file on drive A in the folder named Chapter02.

2. Type the block comments to include your name, the date, the program's name, the course number, and the program's purpose. Press the TAB key as needed to align the comments. Remember to use /* to begin the block comment and */ to end it.

3. Type the class header. Use your first name as the name of the class. Do not forget to enter the keywords, public and class, before your name. On the next line, type an opening brace.

4. Type the main() method header, using the keywords public, static, and void. The main() method takes a String[] parameter named args. As you type, remember that Java is case-sensitive. On the next line, type an opening brace.

5. Type three lines that begin System.out.println(" and then include your name, address and city each on a separate line. Do not forget to close the quotation mark and parentheses. Place a semicolon at the end of each line.

6. Type a closing brace for the main () method.

7. Type a closing brace for the class.

8. Compile the program by clicking Compile Java on the Text Pad Tools menu. If necessary, fix any errors in the coding window and then compile the program again.

9. Once the program compiles correctly, run the program by clicking Run Java Application on the Text Pad Tools menu. After viewing your output, click the Close button in the command prompt window title bar.

10. In the Text Pad window, use the Print command on the File menu to print a copy of the source code.

11. Close the Text Pad window.

Text Book: Java Programming: Comprehensive Concepts and Techniques By Gary B. Shelly, Thomas J. Cashman, Joy L. Starks, Michael Mick.

Reference no: EM131937190

Questions Cloud

Create an html host document that calls splash applet class : Create an HTML host document that calls the Splash Applet class. Set the attributes of the applet to have a width of 400 and a height of 300 when it displays.
Explain why le chatelier principle is equivalent : Explain why Le Chatelier's Principle is equivalent to saying that a system at chemical equilibrium will be stable against small fluctuations.
Control the ph of physiological fluids : A buffer, consisting of H2PO4^1- and HPO4^2-, helps control the pH of physiological fluids. Many carbonated soft drinks also use this buffer system.
Planning to transport oxygen : A company is planning to transport oxygen, chlorine, and phosphorous by train to another city.
Create a java application that displays your name : In order to practice writing, compiling, and running Java, you decide to create a Java application that displays your name and address on the screen.
Draw a flowchart to represent sequence of events in program : Pay careful attention to the size and spacing request. Write either pseudocode or draw a flowchart to represent the sequence of events in your program.
How many moles of sodium hypobromite : How many moles of sodium hypobromite (NaBrO) should be added to 1.00 L of 5.0×10-2 M hypobromous acid (HBrO) to form
Write the lines of code inside the main method : Write the lines of code inside the main() method to print the bibliographic entry as outlined by the flowchart in Figure 2-74.
Insert your name as the programmer in the comment header : Read through the code and fix any errors that you see. Insert your name as the programmer in the comment header. Insert the current date.

Reviews

Write a Review

JAVA Programming Questions & Answers

  Recursive factorial program

Write a class Array that encapsulates an array and provides bounds-checked access. Create a recursive factorial program that prompts the user for an integer N and writes out a series of equations representing the calculation of N!.

  Hunt the wumpus game

Reprot on Hunt the Wumpus Game has Source Code listing, screen captures and UML design here and also, may include Javadoc source here.

  Create a gui interface

Create GUI Interface in java programing with these function: Sort by last name and print all employees info, Sort by job title and print all employees info, Sort by weekly salary and print all employees info, search by job title and print that emp..

  Plot pois on a graph

Write a JAVA program that would get the locations of all the POIs from the file and plot them on a map.

  Write a university grading system in java

University grading system maintains number of tables to store, retrieve and manipulate student marks. Write a JAVA program that would simulate a number of cars.

  Wolves and sheep: design a game

This project is designed a game in java. you choose whether you'd like to write a wolf or a sheep agent. Then, you are assigned to either a "sheep" or a "wolf" team.

  Build a graphical user interface for displaying the image

Build a graphical user interface for displaying the image groups (= cluster) in JMJRST. Design and implement using a Swing interface.

  Determine the day of the week for new year''s day

This assignment contains a java project. Project evaluates the day of the week for New Year's Day.

  Write a java windowed application

Write a Java windowed application to do online quiz on general knowledge and the application also displays the quiz result.

  Input pairs of natural numbers

Java program to input pairs of natural numbers.

  Create classes implement java interface

Interface that contains a generic type. Create two classes that implement this interface.

  Java class, array, link list , generic class

These 14 questions covers java class, Array, link list , generic class.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd