Guest User

Untitled

a guest
Jan 22nd, 2018
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.60 KB | None | 0 0
  1. //: returns the cost per minute of a call to the argument zone;
  2. public double costPerMin(CallZone zone){
  3. double cost=0;
  4. if (zone.toString().equals("CANADA"))
  5. cost= 0.05;
  6. if (zone.toString().equals("USA"))
  7. cost= 0.10;
  8. if (zone.toString().equals("EUROPE"))
  9. cost= 0.20;
  10. if (zone.toString().equals("ASIA"))
  11. cost= 0.40;
  12. if (zone.toString().equals("ANZ"))
  13. cost= 0.30;
  14. if (zone.toString().equals("LATINAM"))
  15. cost= 0.30;
  16. if (zone.toString().equals("AFRICA"))
  17. cost= 0.40;
  18.  
  19.  
  20. return cost;
  21. }
Add Comment
Please, Sign In to add comment