Starting from:
$35

$29

Project 1 Solution




.-"-.




_/_-.-_\_




 
__} {__ \




 
// " \\ \




 
/ \’---’/ \ \ \ \_/‘"""‘\_/ /




\ /




{ see no evil }=




.-"-.




_/.-.-.\_




/|( o o )|\




| // " \\ |




 
/ \’---’/ \ \ \ \_/‘"""‘\_/ /




\ /




{ hear no evil }=




.-"-.




_/.-.-.\_




 
( o o ) ) |/ " \|




\’/ˆ\’/ /‘\ /‘\ / /|\ \







{ speak no evil }=




.-"-.




_/.-.-.\_




 
( o o ) ) |/ " \| \ .-. / /‘"""‘\







 
\




{ have no fun }=




You will write a Java program to implement the ASCII monkeys above. Please make sure that




you follow these rules in your implementation:




 
Your program should have at least two static methods in addition to your main method.




 
You are not allowed to generate the entire picture or any single line using printing statements such as System.out.print or System.out.println. For example, you cannot have a statement that says:







System.out.println(’’ .-"-. .-"-. ’’);




You need to generate it using for loops.




 
You are not allowed to use statements that we haven’t learned in class as of 12/10/17 (such as if statements, while loops, and so on).




 
Try to minimize the number of for loops you use.




Submission: You will submit a project report and your code over Moodle.




Project report should consist of five sections. These are:




 
Problem Description: In this section, you should describe the problem in your words.




 
Problem Solution: In this section, you should specify the concepts (methods, for loop, etc.) that you use in your program. Explain each one (i.e. why you need it, what you accomplish by using it, so on.). Report how many for loops you use.




 
Implementation: This section will include your whole code with comments. You need to pay attention to indentation in order to improve readability.




Do not forget to explain each variable that you use (i.e. int count=0; // count is the number of items).




Before each method, specify what the method does (i.e. /* This method . */)




 
Output of the program: A screen-shot of your program output should be put in this section.




 
Conclusion: You should evaluate your work here. State whether you have solved the problem correctly. If not, state what is missing, what could have been improved, and so on.




Your .java file should be named with your initials and your student number together (e.g., OS2013800027). You will submit these over Moodle as a single zip file where the file name is your student number. Your zip file should consist of your .java file and your report in .doc or .pdf format.




Partial Submission: If you cannot generate the picture above, you should still submit your code as well as your report. Try to generate most of the picture. In your report, explain which parts you can generate and which parts you cannot.




Late Submission: Any submission after the deadline is considered late and will not be ac-cepted.




2

More products