COSC 1PO2 Assignment CODE PDF

Title COSC 1PO2 Assignment CODE
Author Joel Jongwe
Course Introduction to Computer Science
Institution Brock University
Pages 5
File Size 37 KB
File Type PDF
Total Downloads 85
Total Views 167

Summary

Answers to assignment...


Description

package Part_A; import Media.*; import static java.lang.Math.*;

//This class is a program to draw a heptagram using Turtle Graphics

// Joel Jongwe // student number 7275738

// Oct-5-2021

public class Heptagram{

private TurtleDisplayer display; // display to draw on

private Turtle

yertle; // turtle to perform drawing

public Heptagram( ) {

display=new TurtleDisplayer();

yertle=new Turtle();

display.placeTurtle(yertle);

yertle.penDown();

for (int i=1; i...


Similar Free PDFs