Difference between revisions of "Assessment 2012 Easy"

From Progzoo
Jump to: navigation, search
(Naval Jack)
(Naval Jack)
Line 8: Line 8:
 
*The stars have radius 6
 
*The stars have radius 6
 
[[Image:roaddiversionsquare.png|frame|Diversion]]
 
[[Image:roaddiversionsquare.png|frame|Diversion]]
<prog lang="java">
+
<prog lang="java">static void drawFlag(Graphics2D g){
static void drawFlag(Graphics2D g){
+
 
   g.setColor(new Color(0,41,140));
 
   g.setColor(new Color(0,41,140));
   drawStar(g,170,127,12);
+
   for (int i=0;i<7;i++)
 +
    drawStar(g,170+26*i,127,12);
 
}
 
}
 
static void drawStar(Graphics2D g,int x, int y, int r)
 
static void drawStar(Graphics2D g,int x, int y, int r)

Revision as of 13:39, 29 August 2012

Each of these flags is worth 9 points.

Naval Jack

Line: 123 DOMDocument::loadXML(): StartTag: invalid element name in Entity, line: 8