Assignment 2

Due Tuesday, April 21 at 11:59pm on Canvas


Note that these assignments should be completed individually. We will start working with partners for assignment 3!



Assignment 2.1: Writing Your Name (10 pts)
  • For this project write a Java program that displays your name in banner-sized letters to the console (video screen).
  • For example, the output of the program for the name J Parrish would be:
   J PPP   AA  RRR  RRR  IIII SSSS H  H
   J P  P A  A R  R R  R  II  S    H  H
   J PPP  AAAA RRR  RRR   II  SSSS HHHH
J  J P    A  A R  R R  R  II     S H  H
JJJJ P    A  A R  R R  R IIII SSSS H  H
  • The letters should be written like the above using a 4 character width by 5 character length (4x5) letters.
  • The name of the source code file must be Banner.java. <-note that the B is capitalized!
  • Each banner letter must be made from the uppercase letters of the letter being created.
    For example, a banner "A" would be made of uppercase A's as shown above.
  • Print at least5 banner-sized letters and no more than 18.
    • The example above has 8 banner-sized letters.
  • Note: No input is needed or allowed.
  • Hint: To complete this assignment, write 5 System.out.println statements.
  • Think in terms of horizontal lines! You will not be able to print one letter at a time. Rather, you will need to print out each row of the output one by one.
    • In the above example, this is the first row:
        System.out.println("   J PPP   AA  RRR  RRR  IIII  SSSS H  H");
  • When you are finished, upload Banner.java to Canvas.


Assignment 2.2: Pair Programming Fundamentals (10 pts)
  • Watch Introduction to Pair Programming Video (10 minutes)
  • Then, complete the Pair Programming Video Quiz posted on Canvas
  • You can take the quiz as many times as you would like until the deadline
  • The score of the final quiz attempt will be the one entered into the gradebook