Originally Posted by NormR
Can you show the statement where the error is?
Also post the definitions for all variables used in that statement.
Ok, I knocked off what is not important or the mean time:
* Program: isp
* Author: myself
* Date: September 14
* Description, Calculates the customer's monthly bill.
import java.util.Scanner; //Needed for scanner class
public class isp
public static void main(String args)
int isp1; //Defines Internet Service Provider 1.
//isp1 is 9.95/month for 10 hours, plus 2$ extra hours
int number; //used for the decision between 1,2, and 3.
int hours; //holds the number of hours used in the isp.
int bill; //the monthly bill to be defined by any of the cases.
Scanner keyboard = new Scanner(System.in); //adds the ability to use an external scanner
System.out.println("Which # Internet Service Provider do you use? (1, 2, or 3):");
number = keyboard.nextInt();
System.out.println("You picked one");
System.out.println("How many hours of operation did you use?"); //asks how many additional hours used.
hours = keyboard.nextInt();
System.out.println("Hours used: " + hours);
isp1 = ((hours - 10)*2) + 9.95; //calculates the amount of money to use. i get the error here, it says use a double for 9.95, and when I switch it to double, it says int required.
bill = isp1;
System.out.println("Your monthly bill (9.95$/10 hours, plus 2$/additional hour : " + bill);