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 $" +...
Type: Posts; User: JennyDang
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 $" +...
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...
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...
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...
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 =...
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...
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....