First Java Assignment
Work in groups of two people. Write a program in Java to print out 2 lines. Each team member will write a user story for their partner and then code the story that their partner gives them. The master programmer will put the two programs together so the first story runs and then the second one runs. Remember to use the HELP board if you have trouble. Instructions for downloading BLUEJ are in the syllabus.
Here are the steps:
1) Write a story that describes what the user should see when they run this program. It is just 2 lines the program should print. (You should have finished this in class.)
2) Give your story to your partner by replying to your names on the moodle discussion board.
3) Design and code your partner's story. (Each person will code their teammate's story.)
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("I am looking forward to learning to program");
System.out.printn("Java is better than a cup of coffee.");
} // closes the pepper method
public static void mary(){
System.out.println("Programming will be like solving a puzzle.");
System.out.println("and I love doing puzzles");
} // 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.)