Variable Exercise & linear motion, both
with flow chart
Work in groups of two people. One partner will create a flow chart for and
code the variable exercise . The other will create a flow
chart for and code the linear motion exercise .
A third person would code the rectangle exercise.
The master programmer will put the two (or three) programs together and upload
to moodle. The flow charts can be handed in on paper in class.
Here are the steps:
1) Write a flow chart for your problem. Please try to create this in google
docs, but you can just write this on paper if it becomes too difficult. Here
is a good google doc template for a flowchart:
https://drive.google.com/a/adelphi.edu/templates?view=public&authorId=06097363232057223299#
(This may not be available to you, so you can sign into your mail and hit drives
above and then search your google drive public templates for "google doc
flow chart stencil by olmo maldonado")
- Click "use this template"
- Highlight everything on the page and delete it.
- Draw around the terminator oval and press ctrl/c to copy and ctrl/v to paste
- Then drag the terminator over to the paper
- double click to change the name to start
- Draw around the process box and press ctrl/c to copy and ctrl/v to paste
and then drag that to the paper. Change it to describe the process you need
to complete.
- Repeat the step above for all process steps.
- Repeat the first process of creating a terminator, but this time it should
say "end".
- Click the line and draw a line between each box.
- Right click on each line to choose the arrowhead.
- File / Dowload as a pdf (If pdf is not an option, jpg or gif or png is fine.)
- You can upload this pdf with your assignment later.
- Do not worry if this is not perfect, and do not spend more than 30 minutes
on this. If you do this on paper instead, just bring it to the next class.
2) Design and code your problem.
- Please create your class name as the names of the team members. (ex: If
I worked with Mary Jones, my class name would be: KrisPepperAndMaryJones)
- Please create a main method and a method named with your name. (ex: I would
have 2 methods, main and pepper)
- Please code your story inside the method named with your name. (ex: I would
put all your code inside the pepper method.)
3) Test your own method to see it prints what it should.
4) 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.
5) The master programmer will merge the two by doing the following:
- Please find your partners posted code on the discussion board.
- Copy their method right after your print method ends.
- ex: If Mary Jones had posted: public static void mary(){.............;}
I would put all that before my last }
- Change your main method to call your partner's method after your own
6) 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.)