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

  Produce a design document

You will design and deliver a website foes fictional client part-1 Website Design Document and produce a design document

  Write a method in java that uses a switch statement

Write a method in JAVA that uses a switch statement and takes a person's age using an integer parameter , then checks if the age is valid (0-110), and then RETURNS a string based on the age

  Implement the lexical and syntactic analysis

Implement the lexical and syntactic analysis of Minifun programming language.

  Java program which demonstrates cellular automata

Using the internet, locate a Java program (or Java applet) which demonstrates "Cellular Automata", in particular "the Game of Life".

  Creating the gui for the game interface

A GUI-based application that allows a user to play a simple trivia game

  Java program to find solution of cryptarithmetic puzzle

A solution to puzzle is S=9, R=8, O=0, M=1, Y=2, E=5, N=6, D=7. Write down a java program which finds solution to cryptarithmetic puzzle of: TOO + TOO + TOO + TOO = GOOD.

  Simulate some people catching fish in a lake in java program

In this project, you will simulate some people catching fish in a lake. The purpose of the assignment is to get used to using Arrays as well as getting more experience in having objects interact together.

  Please write the code in java

Please write the code in java for  Recursion,  Sorting and Searching

  Minimal spanning tree decreasing edge dismissal

Minimal Spanning Tree Decreasing Edge Dismissal, Reverse-delete algorithm. Develop an implementation that computes the MST

  Determine if strings are equal

Complete the recursive method match in the code below which will determine whether or not two strings match.

  Write ijvm program to multiply two hexadecimal numbers

Write the IJVM program that multiplies two (hexadecimal) numbers. The user inputs the hex numbers and the result is printed out. The program then accepts another pair of numbers.

  Write java program to reads ten values from user

Write the java program which reads 10 values from user and store them in 1 daimantion array. your program will ask the user wich operation he wants to perform:

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