Introduction to Computer Science

Program 1 (grading rubric)

Create a Java program to display some personal information.

Sample output:

 
Dana John Everett
****** ********** **********
** ** ** **
** ** ** **
** ** ** **
** ** ** ********
** ** ** ** **
** ** ** ** **
** ** ** ** **
***** **** **********
Major: Physics
Home town: Randolph
Favorite food: pizza

You will develop your solution as a class, named PrintInitials. Your main method code will be a sequence of System.out.println statements. One approach for the initial portion is to experiment in a text editor until you get the letters to look right to you. Add System.out.println(" at the beginning of the first line, then copy and paste it to the beginning of each of the other lines. (You don't need to type it out on each line! Creative use of copy-and-paste can save you a lot of work.) Then add "); to the end of each line. In your program, you should also add a System.out.println() statement at the beginning and the end, and after your name. The extra blank lines will make the output look better. In order to have a complete program, you will put the program statements in a main method and put that method in a public class named PrintInitials.

Submission instructions

Be sure to follow the Documentation Standards (for this and every program). When you are ready to submit, obtain a printed copy of your program. Remember to sign and attach the required Academic Integrity Pledge cover sheet. The printed program must be turned in to your instructor by the start of class on the date the program is due. You must also email a zipped copy of the program to your instructor. Identify the email with the subject: ICS Program 1 and be sure that your name appears inside the message. The attached zip file must be named as your last name and the program number (example: smith_1.zip). The zip file must contain a folder having the same name (smith_1). The program files (all related files) should be inside this folder. Be sure to email your working solution before the due date! Do not submit non-working programs.

Email addresses: