Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Write a program with six methods to draw six nautical flags. Your program must contain all six letter methods or it will not compile correctly.
Write a program with six methods to draw six nautical flags. Your program must contain all six letter methods or it will not compile correctly. You will need to download the NauticalFlags.jar file and tell jGRASP where to find it. You are to write a program using Java graphics to display nautical signal flags. I just need the written program, thanks.
Link to NauticalFlags.jar : https://drive.google.com/open?id=0Bx80GCImnDuWTC1KWDgydHdqVHc
COMP163 Nautical Flags Program You are to write a program using Java graphics to display nautical signal flags. NAUTICAL FLAG ALPHABET A BCDEF GHJK W XYZ There are 26 letter signal flags. Each flag is 150 by 150 pixels. You only have to implement the six letters I, J, K, P, U and X. The remaining letters have been implemented by your instructor. Your program must extend the abstract class NauticalFlags. public class MyFlags extends NauticalFlags public static void main (String[] unused) MyFlags prognew MyFlags create object of your program's class public void letterI (java.awt.Graphics page) call Graphics methods to draw the flag for the letter I public void letterJ java.awt.Graphics page) Il call Graphics methods to draw the flag for the letter J similarly for the letters K, P, U and X The methods must have the correct name You will need to download the NauticalFlags.jar file and save it some place where you can find it, such as your MyDocuments directory. In jGRASP, click on: Settings then PATH/CLASSPATH then Workspace then tab Class then tab Classpaths Click the New button and browse to the directory containing the jar file and select NauticalFlags.jar Press OKStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started