Saturday, March 1, 2014

Help with Dr Java/Loops




Gonna keep this short: I am as tech savvy as a wet paper towel, my school demands I take a tech course in order to graduate, but my focus and past experiences have nothing to do with coding.



My proposition: I don't have the time (job to pay rent, volunteer for a charity etc) and to learn a new skill I'll never utilize after this course is complete so I ask, would any be interested in completing short projects for me? I'll happily reimburse you if the grade I receive is 70%+ with the amount I'd pay reflected on how high the mark was. If you're interested PM this account.




Assignment.



To gain experience with



• Loops in Java (for loops and while loops)



• Picture manipulation




Task:



Your task is to create a collage of various images. A collage is “an artistic composition of



various items glued onto a surface”.




Part A:



In this part of the assignment, you will add two new methods to the Picture class, each of which



does some kind of picture modifications. You can modify the pictures in any way you like! Check out



the textbook and lectures for some examples. Be creative – you can decrease the color, add lines, make



black and white, blur, etc.




Functional Specifications for Part A:




1. One of your new methods must use a for loop and one must use a while loop.




2. You should add your two new methods to the Picture class, after the line that looks like this:




/////////////////////////////////////// methods ///////////////////////////////////////////




Add them to the file Picture.java that you downloaded and used in Lab 5.




3. To show that your two new methods work, you will write a Java test program in a class you make



called TestMethods that will be saved as TestMethods.java. The code to get you started on



TestMethods is provided below; you need to add statements that a) create picture objects and b)



invoke your methods on them to change the pictures and show your methods work. Your test



program must include code that displays both the original image and the image after it has been



changed by your method. Here is an algorithm for the test program:




• Get an original image (use FileChooser)



• Display it on the screen



• Change it using your first method



• Display the changed image on the screen



• Get an original image (use FileChooser)



• Display it on the screen



• Change it using your second method



• Display the changed image on the screen







No comments:

Post a Comment