cablebill - import import import import import i import...

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

View Full Document Right Arrow Icon
import java.util.*; import java.lang.*; import java.io.*; import java.text.*; import java.math.*; import java.text.DecimalFormat; i //Jeremy Debruce //3/20/09 // Extra Credit public class cablebill { static Scanner console = new Scanner(System.in); //Named constants - residential customers static final double R_BILL_PROC_FEE = 4.50; static final double R_BASIC_SERV_COST = 20.50; static final double R_COST_PREM_CHANNEL = 7.50; //Named constants - business customers static final double B_BILL_PROC_FEE = 15.00; static final double B_BASIC_SERV_COST = 75.00; static final double B_BASIC_CONN_COST = 5.00; static final double B_COST_PREM_CHANNEL = 50.00; //Variable declaration static int accountNumber; static char customerType; static int noOfPremChannels; static int noOfBasicServConn; static double amountDue; public static void main(String[] args) { System.out.print("Enter the account number: "); accountNumber = console.nextInt(); System.out.println(); System.out.print("Enter the number " + "of premium channels: ");
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.

Page1 / 2

cablebill - import import import import import i import...

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