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

  Java program that will prompt the user to input a file

Write a Java program that will prompt the user to input a file (document) in order to count the frequency of each word. This program will display the frequency of each word sorted alphabetically or by frequency (depending on the preference of the use..

  Java program to write-read data from user using i-o function

Write java program to write and read data from user using I/O functions. Describe class with data members name[20],emp_id,basic pay,net pay.calculate all the allowances.

  Java program for real estate agent

Write down java program for real estate agent. Program must perform the following tasks: ask users for average house price for the each of past 5 years for single family residence of 1500 square feet.

  Represent one book in java

Represent one book in java

  Write java program to print price of table-furniture company

Write down the Java program for furniture company. Ask user to select P for Pine, O for Oak or M for Mahogany. Illustrate the price of table produced with chosen wood.

  Write a java program called salesinfominer

Write a Java program called SalesInfoMiner that reads in a file of products, stored in text format. The program must then read in information about past sales transactions and output all the products to a new file, sorted by product description,..

  World data app

Prepare WorldDataApp project. It implements the NameIndex portion, including creating it in SetupProgram, and searching, viewing and updating it in UserApp program.

  Create a driver class in java

Your project is to create a driver class that uses SuperJavaIceCreamClass.

  Write a java applet for grade of gas in costco gas station

Write a java applet (not a java application program) for costco gas station. The applet will first ask you whether you are a costco customer, then the grade of gas you want to use.

  Java program to declares integer array

Write a complete Java program to declares integer array, intArray, and initialize it to {1, 2, 3, 4, 5, 6, 7}.

  Write down the java code for the bank

Write down the java code for the bank of Fraud. User is presented with menu which looks something like this: 1. Deposit 2. Withdrawal 3. Check Balance 4. Exit.

  Bilinear and nearest neighbour algorithm in java

How to do bilinear and nearest neighbour algorithm in java. Show how to eliminate change in pixel aspect ratio in java.

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