COSC 1P02 Lecture Notes - Lecture 1: Internal And External Angles, Cosc, Cutepdf

273 views3 pages

Document Summary

Due: oct. 5, 2015 @ 10:00am (late date oct. 8 @ 10:00 am) In preparation for this assignment, create a folder called assign_1 and for the drjava project for the assignment. The problem is described in two parts, however you only submit the final result from part b. As part of a package called assign_1, w rite a java class called flower. For the first part, the class will draw a diamond shape on the display as shown below. The exterior angle between the sides at the left and right is 2 /3 and the exterior angle between the sides at top and bottom is /3. Drawing from the center of the canvas, the angle to draw down the bottom-left side (i. e. drawing down and to the right) is /6. Use a for loop to draw the diamond. Since the angles are different top/bottom and left/right, the loop will have to draw 2 sides and repeat twice.

Get access

Grade+
$40 USD/m
Billed monthly
Grade+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
10 Verified Answers
Class+
$30 USD/m
Billed monthly
Class+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
7 Verified Answers

Related Documents