Advertisement
476179

Untitled

Oct 4th, 2019
142
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.90 KB | None | 0 0
  1. package activities;
  2.  
  3. public class PercentsAndConversion
  4. {
  5.  
  6. public static void main(String[] args)
  7. {
  8. //1
  9. // east coast sales makes 62% of all sales
  10. //if company makes $4.6 mil in yearly revenue, how much did east cost div make
  11. double ECD_Rate = .62, totalRev = 4.6E6, ECD_sales;
  12. ECD_sales = totalRev * ECD_Rate;
  13. System.out.println("East Coast Sales Div. generated: $"+ECD_sales+" in sales");
  14.  
  15. //2
  16. // if 1 acre = 43_560 ft, how many acres in 389_767
  17. double acre = 43560.0, acres;
  18. int ft = 389767;
  19. acres = ft / acre;
  20. System.out.println("there are: "+acres+" in 389,767 feet");
  21.  
  22. //3
  23. // kat buys 600 shares at $21.77 each, must pay 2% fee to broker
  24. int stocks;
  25. double pps = 21.77, feeRate = .02, fee;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement