Onlinetax - /* * Program Name:Onlinetax.java *ask user get...

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

View Full Document Right Arrow Icon
/** * Program Name:Onlinetax.java *ask user get the name of three products and user's name , address, street ,address,city state.zipcode * weight of product1 price of product1,weight of product2 price of product2,weight of product3 price of product3,count the subTotal , Tax , totalTaxx totalWeight , shippingCost then give user th output. * * @Chengjie Yang * * @recitation section number and recitation instructor's name * * @Fri Sep 24 * * @Fri Sep 24 */ import java.util.*; import java.lang.String; import javax.swing.*; public class Onlinetax { Scanner source =new Scanner(System.in); public Onlinetax() { System.out.println("Please enter the name of product1:"); String productname1 = source.nextLine(); System.out.println("Please enter the name of product2:"); String productname2 = source.nextLine(); System.out.println("Please enter the nmae of product3:"); String productname3 = source.nextLine(); System.out.println("Please enter the name:"); String name = source.nextLine() ; System.out.println("Please enter the street:");
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 01/24/2011 for the course CS 180 taught by Professor Adityamathur during the Fall '10 term at Indiana University-Purdue University Fort Wayne.

Page1 / 3

Onlinetax - /* * Program Name:Onlinetax.java *ask user get...

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