MailOrder - /* Author: * Section #: * Instructor: * Project...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
/* Author: Eric Adlam * Section #: D5 * Instructor: Coach * Project Name: MailOrder * Assignment #: 5 * Due Date: 9/24/09 * * Description: Java Applet which calculates the retail price * of a given item of a given qty and displays * this price along with the grand total of all * purchases for the session. A message is displayed * in red if an item is entered which does not exist. */ package week4; p import java.math.*; import java.applet.Applet; import java.awt.*; import java.awt.event.*; i public class MailOrder extends Applet implements ActionListener { Label prompt1; // prompt user to input first value TextField input1; // input first value here Label prompt2; // prompt user to input second value TextField input2; // input second value here int sku; // store input values i // store a message or alert String message = new String(""); S // BigDecimal is the Sun recommended format to // calculate currency BigDecimal total = new BigDecimal("0.00"); BigDecimal subtotal = new BigDecimal("0.00");
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 10/12/2009 for the course CS 120 taught by Professor Robertdependahl during the Fall '09 term at Santa Barbara City.

Page1 / 2

MailOrder - /* Author: * Section #: * Instructor: * Project...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online