Java Program

Published on January 2017 | Categories: Documents | Downloads: 70 | Comments: 0 | Views: 520
of 1
Download PDF   Embed   Report

Comments

Content

package billingapplication; /* * Program to compute user's electric bill. User is prompted for account, * identification and billing information by text queries shown on the system * console. Set price for electricity is multiplied by user input number of * units used to obtain price of service. Results are * printed to the console. This program does not handle exceptions or contain * any input restrictions not provided by the Java system proper. * Use at your own risk!!! * @author (Thomas Rates) * @version (1.0 Due/Date/2010) */ import java.util.*; //Dependency for the Scanner method. public class BillingProgram1 ( RATE = .0624 public static void main (String[] args){ String Name, Address, Acct; double KWH, Rate = .0624; System.out.println ("Enter your account number: "); Acct = ) ) System.out.println("The value in \"" + s2 + "\" is not an integer"); System.out.println ("You entered the integer: " + num); } }double KWH, RATE; int ACCT; String CustName, CustAdd, CustCity, CustState, CustZip, CustPhone; Please enter your 14 digit account number

Sponsor Documents

Or use your account on DocShare.tips

Hide

Forgot your password?

Or register your new account on DocShare.tips

Hide

Lost your password? Please enter your email address. You will receive a link to create a new password.

Back to log-in

Close