Answered step by step
Verified Expert Solution
Link Copied!

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.

image text in transcribed

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 OK

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Advances In Databases And Information Systems 25th European Conference Adbis 2021 Tartu Estonia August 24 26 2021 Proceedings Lncs 12843

Authors: Ladjel Bellatreche ,Marlon Dumas ,Panagiotis Karras ,Raimundas Matulevicius

1st Edition

3030824713, 978-3030824716

More Books

Students also viewed these Databases questions

Question

Explain the strength of acid and alkali solutions with examples

Answered: 1 week ago

Question

Introduce and define metals and nonmetals and explain with examples

Answered: 1 week ago