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

  Modeling the caves

Assignment 2 Description:  You are a mighty warrior, and armed with your trusty bow and 3 arrows, you enter The Caves in search of the mighty Wumpus. If you shoot the Wumpus, you are victorious and the masses will praise you, but if you stumble upon ..

  Develop class which implements interface

Let the ADT called SquareMatrix. (The matrix can be represented by 2-D array of ints w/ n rows and n columns.) Write specification for ADT as Java interface. Develop the class which implements interface.

  Web engineering principles

web application development, Web Engineering methodology, UML-based Web Engineering (UWE), models to the expansion of web applications, Object Oriented Web Solutions (OOWS),Web Modeling Language (WebML) methodology, Object-Oriented Hypermedia Design..

  Tracer for java

Implementation of a tracer of Java objects and the tracer can be invoked from any point of a Java program, accepting an object as argument.

  Create a secure parts inventory catalog system

You will create a secure Parts Inventory Catalog system using Model 2 architecture. The application will require a user to have the proper access right to enter the system, and when satisfied, presents the catalog of items currently available in t..

  Write java program to accept two words as input

Write a Java program that accepts two words as input and determines if one of them is resulting from changing the order of the others' letters.

  Write program in java to calculate interest

Write a program in java to do the following : the following data is stored for each customer in the bank: account number,average balance and number of transaction for each customer it is required to calculate the interest earn

  Client server monitoring system project design

client server monitoring system project design. The server adminstation can send messages to the clients and DESIGN WITH JAVA NETBEANS AND GUI.

  Development of a graphical user interface

To understand actual communication with an SMTP server can be achieved using TCP Sockets and understand the development of a graphical user interface (GUI) and use of event handling.

  Java program to find a value at in index

Construct a main class named Array Program that generates an array of 50-integers, all ranging from one to one hundred.

  A jsp expression can contain any java expression

A JSP expression can contain any Java expression that evaluates to a

  Determine the type of moped

Write a driver class called MopedRental. This class should perform the following: asks the user to enter the size of the moped, the day of the week and the number of hours rented, creates the Moped object, based on the size, and displays the input..

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