Graphicsframe class

Assignment Help JAVA Programming
Reference no: EM13160162

This program makes use of the GraphicsFrame class and the Drawable interface. Your missions is to create the class Airplane. Each Airplane object should store the following information (fields): manufacturer modelNumber maximumSpeed // in knots maximumFuel // in gallons grossWeight // in lbs emptyWeight Each airplane object should have the following behaviors (methods): public float usefulLoad() // this is the grossWeight - emptyWeight public float usefulLoadWithFuel( in gallons ) // this is the useful load - gallons x 6. The programmer user will pass in the number of gallons on board. public void draw( Graphics g ) // this method will make a line drawing of an airplane. You don't have to get fancy. Do use drawString() to display the Airplanes information. You will also need a constructor to initialize the fields. You will need to put the GraphicsFrame, Drawable, Airplane, and the test driver all in one folder. The files need to 'see' each other. You can just add on the the test driver for the example. Some starter code for the Airplane class: public class Airplane implements Drawable { // fields // constructor or constructors // general methods }

Reference no: EM13160162

Questions Cloud

Preferred and common stockholders receive under assumptions : As of December 31, 2011, it is desired to distribute $488,000 in dividends. Insructions: How much will the preferred and common stockholders receive under the following assumptions:
Who has a comparative advantage in producing wine : Who has a comparative advantage in producing wine and who has a comparative advantage in producing schnitzel?
State complete dissociation of the electrolyte : The normal freezing point of water H2O is 0.00 oC and its Kf value is 1.86 oC/m. Assuming complete dissociation of the electrolyte,
Graphicsframe class : This program makes use of the GraphicsFrame class and the Drawable interface. Your missions is to create the class Airplane. Each Airplane object should store the following information (fields): manufacturer modelNumber maximumSpeed // in knots maxim..
Create a windows form application : Create a Windows Form application that Reads a list of products from an xml file and shows a form that a customer can order
How many moles of gas were there in the sample : A 350.0 mL sample of oxygen gas was collected over water at a temperature of 25.0ºC and 740.0 mm Hg. How many moles of gas were there in this sample if the vapor pressure of water at 25.0ºC is 23.8 mm Hg?
Calculating the cost of the inventory : Compute the cost of the inventory on December 31, 2010, assuming that the inventory at retail is (a) $294,300 and (b) $359,700.
Explain mol of potassium hydroxide is added to the buffer : A buffer initially contains 0.10 mol acetic acid and 0.13 mol of sodium acetate in 1.00 L. 0.02 mol of potassium hydroxide is added to the buffer

Reviews

Write a Review

JAVA Programming Questions & Answers

  Recursive factorial program

Write a class Array that encapsulates an array and provides bounds-checked access. Create a recursive factorial program that prompts the user for an integer N and writes out a series of equations representing the calculation of N!.

  Hunt the wumpus game

Reprot on Hunt the Wumpus Game has Source Code listing, screen captures and UML design here and also, may include Javadoc source here.

  Create a gui interface

Create GUI Interface in java programing with these function: Sort by last name and print all employees info, Sort by job title and print all employees info, Sort by weekly salary and print all employees info, search by job title and print that emp..

  Plot pois on a graph

Write a JAVA program that would get the locations of all the POIs from the file and plot them on a map.

  Write a university grading system in java

University grading system maintains number of tables to store, retrieve and manipulate student marks. Write a JAVA program that would simulate a number of cars.

  Wolves and sheep: design a game

This project is designed a game in java. you choose whether you'd like to write a wolf or a sheep agent. Then, you are assigned to either a "sheep" or a "wolf" team.

  Build a graphical user interface for displaying the image

Build a graphical user interface for displaying the image groups (= cluster) in JMJRST. Design and implement using a Swing interface.

  Determine the day of the week for new year''s day

This assignment contains a java project. Project evaluates the day of the week for New Year's Day.

  Write a java windowed application

Write a Java windowed application to do online quiz on general knowledge and the application also displays the quiz result.

  Input pairs of natural numbers

Java program to input pairs of natural numbers.

  Create classes implement java interface

Interface that contains a generic type. Create two classes that implement this interface.

  Java class, array, link list , generic class

These 14 questions covers java class, Array, link list , generic class.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd