i need your help
i need you help for my project..(prisoner queue application system)
import java.util.*; public class CableCompanyBilling { 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; 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; { int accountNumber; char customerType; int noOfPremChannels; int noOfBasicServConn; double amountDue; accountNumber = console.nextInt(); + "R or (Residential), " + "B or (Business): " ); customerType = console.next().charAt(0); switch (customerType) { case 'r': case 'R': noOfPremChannels = console.nextInt(); amountDue = R_BILL_PROC_FEE + R_BASIC_SERV_COST + noOfPremChannels * R_COST_PREM_CHANNEL; break; case 'b': case 'B': noOfBasicServConn = console.nextInt(); noOfPremChannels = console.nextInt(); if (noOfBasicServConn <= 10) amountDue = B_BILL_PROC_FEE + B_BASIC_SERV_COST + noOfPremChannels * B_COST_PREM_CHANNEL; else amountDue = B_BILL_PROC_FEE + B_BASIC_SERV_COST + (noOfBasicServConn - 10) * B_BASIC_CONN_COST + noOfPremChannels * B_COST_PREM_CHANNEL; break; default: } } }
This program computes cable bill Enter the account number: 23456 Enter the customer type: R or (Residential), B or (Business): R Enter the number of premium channels: 40 Account Number = 23456 Amount Due + 325.0