hts.StevenWood.com

Assignment 2-2

Home ] Up ] Machine Code ] Simple Program ] [ Assignment 2-2 ] Syntax Errors ] Logic Errors ] Assignment ][ Last Page ]

Assignment 2-2

Complete each of the following using NetBeans and Java.

For each of the following, be sure use the proper headings, indentation and internal comments.
All assignments must have the following comment headings:
/*  Name         :
Due Date     :
Program Name :
Description  :
*/
 

Save, compile and test.  

 

  1. Create a program that will print  all of the following as shown in the image below.
  • your first and last name
  • your street number and street name
  • your city/town
  • your province
  • your postal code

 

Practice program:

  • Use println()  and 4 programming statements -- one for each of the lines in the address


Hand in this one:

  • You must use 5 programming statements -- use one for each of the above 5 items. You will need to use the println() and print() methods to accomplish this. Hint: Try to use the print() method on the first line of the "beginner level" and see what happens. What happens when you don't use 'ln' at the end?



    (Output is the same, you accomplish it in a different way.)

 

 

  1. Write a program that leaves 2 blank lines before it prints your name.


Steven Wood

Process completed

 

When completed, e-mail the TWO NetBeans project folders to .

Check the Late Submissions policy.

Home ] Up ] Machine Code ] Simple Program ] [ Assignment 2-2 ] Syntax Errors ] Logic Errors ] Assignment ][Last Page]
All material on this site is copyright © 1997- by Steven Wood or as credited. All right reserved. Use of this site indicates you agreement with the  terms of use.
Send comments or questions to about this page.
Every attempt has been made to credit work under copyright. If there are any claims that copyright has been missed please contact the .
+SDG+