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 gliffy,
but you can just write this on paper if it becomes too difficult. Use https://www.gliffy.com/
- click on start drawing.
- Then click on the word FLOWCHART on the left
- Then drag out the terminator oval to start
- Write start in the oval
- Drag out all the other shapes you need
- Click on the connector icon on top and then draw one line from one shape
to another.
- Then click on the line and then on the line edit tool to chose the arrow
end.
- When your chart is done, either export it as a JPG or take a snapshot (snipper)
of the picture of the flowchart.
- 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.