Assignment 3
Due Monday, January 22 at 9:20am on Canvas

Note: All homework assignments are to be done individually

Optional: Install Eclipse on your home computer or laptop following the tutorial.  If you run into problems with Eclipse, you can visit me during office hours for one-on-one help. Or, you can do your work on the lab computers instead.

Assignment 3.1: Binary-Decimal Review Homework (10 pts)
  • Complete this worksheet by converting any binary numbers to the decimal system and any decimal numbers to the binary system.
  • This assignment will be good practice for your quiz (hint! hint!)
  • When you are finished, upload your assignment to Canvas

Assignment 3.2: Job Interview Questions (10 pts)

  • Imagine someone is applying for a job at your company which sells pet supplies.
  • What are the 5 most important questions to ask candidates during an interview at your company?
  • Objective: Write a program to print this information out onto the screen.
  • Open a new C++ file in CodeBlocks named pet.cpp
  • Write a block comment at the top of your program with your name and section information like so:
* Firstname Lastname
* CIS 22A
  • In the pet.cpp, create 5 cout statements with your five questions. Each question needs to be printed on a separate line (5 endl or \n).
  • When finished, upload your pet.cpp file to Canvas.
  • When you are finished, run your program and you should get output similar to the following (except your program should print 5 questions instead of 2):
Do you have a pet?
Do you like animals?

Assignment 3.3: Writing Your Name (10 pts)
  • For this project write a C++ program that displays your name in banner-sized letters to the console.
  • For example, the output of the program for the name J Parrish would be:
   J P  P A  A R  R R  R  II  S    H  H
J  J P    A  A R  R R  R  II     S H  H
 JJ  P    A  A R  R R  R IIII SSS  H  H
Project Specifications
  • The letters should be written like the above using a 4 character width by 5 character height (4x5) letters.
  • The name of the source code file must be Banner.cpp
  • 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 least 7 banner-sized letters and no more than 18.
    The example above has 8 banner-sized letters.
  • Note: No input is needed or allowed.
  • Hint: 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. Therefore, you will need exactly 5 cout statements.
  • In the above example, this is the first row:
  • When you are finished, upload Banner.cpp to Canvas.

Assignment 3.4: Pair Programming (10 pts)

  • Introduction to Pair Programming: a professionally developed video (10 minutes)
  • Watch the above video and answer the questions on this worksheet
  • Upload your completed worksheet to Canvas when you are finished as a .doc, .docx or .pdf.