{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

program3

# program3 - import import import import import i import...

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

import java.util.*; import java.lang.*; import java.io.*; import java.text.*; import java.math.*; import java.text.DecimalFormat; i //Jeremy Debruce //Professor Campbell //Computer Science One public class program3 { static Scanner scan = new Scanner(System.in); public static void main(String[] args) { //variables int customer, sq_yd; double cost_per_sq_yd, labor_per_sq_yd, prep_cost, discount; double cost_for_carpet, cost_for_labor, tax_on_carpet, charge_to_customer, tax; System.out.println("************************************************************"); System.out.println("* Maripot Carpet Store *"); System.out.println("*The purpose of this program is to compute Customer Bills *"); System.out.println("* By Inputing from the Keyboard. *"); System.out.println("************************************************************"); // input System.out.println("Please enter the following in interger form:"); System.out.println("Enter number of customers. Then press Enter"); customer= scan.nextInt(); System.out.println("Enter number of sq_yd. Then press enter"); sq_yd= scan.nextInt(); System.out.println("Please enter the following in decimal form:"); System.out.println("Enter cost_per_sq_yd. Then press enter"); cost_per_sq_yd= scan.nextDouble();

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

View Full Document
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}