Java Initial of your Name Assignment
Work in groups of two people. Write a program in Java to print out the first initial of each person in stars and then in double quotes. Each team member will write their own initials. The master programmer will put the two programs together so the first person's initial prints in stars and then in double quotes and then the second person's initial prints in stars and then double quotes. Remember to use the HELP board if you have trouble. Instructions for downloading BLUEJ are in the syllabus.
Here are the steps:
1) Design and code the printing of your initial using all asterisks * and then using all quotes.
public class KrisPepperAndMaryJones {
public static void main(){
pepper();
}// close the main method
public static void pepper(){
System.out.println("*********");
System.out.println("* *");
System.out.println("* *");
System.out.println("*********");
System.out.println("*");
System.out.println("*");
System.out.println("*");
System.out.println();
System.out.println("\"\"\"\"\"\"\"\"\"");
System.out.println("\" \"");
System.out.println("\" \"");
System.out.println("\"\"\"\"\"\"\"\"\"");
System.out.println("\"");
System.out.println("\"");
System.out.println("\"");
} // close the pepper method
} // close the class
4) Test your own method to see it prints what it should.
5) Give the finished program to the master programmer for this assignment (and this position should rotate for the next assignment). Copy and paste all your code into a reply on the discussion board.
6) The master programmer will merge the two by doing the following:
public class KrisPepperAndMaryJones {
public static void main() {
pepper();
mary();
} // closes the main method
public static void pepper() {
System.out.println....
} // closes the pepper method
public static void mary(){
System.out.println(....
} // closes the mary method
} // closes the class
7) Master programmer will upload the .java file or copy the code
into notepad and upload the txt file in moodle. (Please don't use Word,
though I will accept it if you cannot find notepad or the java file.)
Here is a sample result:
*********
* *
* *
*********
*
*
*
"""""""""
" "
" "
"""""""""
"
"
"
* *
* * * *
* * *
* *
* *
" "
" " " "
" " "
" "
" "