FileDocCategorySizeDatePackage
SalaryDetails.javaAPI DocExample842Thu Sep 14 15:34:10 BST 2000None

SalaryDetails

public class SalaryDetails extends Applet

Fields Summary
private double
grossWage
Constructors Summary
Methods Summary
public voidpaint(java.awt.Graphics g)

		grossWage  =  350.55;		// assign the variable grossWage the value 350.55
											// concatenate the value held in the variable
											// grossWage with the string and print 
											// the result
		g.drawString("The gross wage is " + grossWage, 20, 20);
			// now calculate the tax due, store the result in taxDue
			// now calculate the net pay, store the result in netWage
			// now print out the gross wage, the tax due and the net wage