Search:

Type: Posts; User: JennyDang

Search: Search took 0.29 seconds.

  1. Replies
    14
    Views
    463

    Re: HELP: If-Else Statement

    I know to call them I have to go to my tester class and insert them here


    System.out.println("You have " + pack.getPackage());
    System.out.println("Your bill for this month is $" +...
  2. Replies
    14
    Views
    463

    Re: HELP: If-Else Statement

    Oh yeah, I thought I wrote something after that.
    I was wondering if it had to do with the "return" part such as "return savings1 = savingsB?"
    Like when the user inputs the hour, then the value of...
  3. Replies
    14
    Views
    463

    Re: HELP: If-Else Statement

    public double getSavingsB(){

    final double SAVINGS_B =((Math.ceil(hours)-10)*2 + PACKAGE_A_PER_MONTH)-((Math.ceil(hours)-20) + PACKAGE_B_PER_MONTH);
    double savingsB;

    //if/else...
  4. Replies
    14
    Views
    463

    Re: HELP: If-Else Statement

    I'm so confused..I feel like the problem would be in the getSavingsB and getSavingsC methods, but I don't know what's wrong with it since I made it so that the values in savingsB and savingsC would...
  5. Replies
    14
    Views
    463

    Re: HELP: If-Else Statement

    I found out that the zeros are coming from these:

    (at the very top of the InternetPackage class)
    private double savings1;
    private double savings2;

    When I do this:
    private double savings1 =...
  6. Replies
    14
    Views
    463

    Re: HELP: If-Else Statement

    Which package do you have: A, B. or C?
    How many hours did you use?
    a
    50
    You have Package A
    Your bill for this month is $89.95
    You would save $0.0 if you changed to Package B and $0.0 if you...
  7. Replies
    14
    Views
    463

    HELP: If-Else Statement

    An Internet service provider has three different subscription packages for its customers:

    Package A: For $9.95 per month 10 hours of access are provided. Additional hours are $2.00 per hour....
Results 1 to 7 of 8