Advertisement
Guest User

Untitled

a guest
Jun 23rd, 2017
57
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 1.64 KB | None | 0 0
  1.  import java.util.Scanner;
  2.  
  3.  public class Exercise5
  4.  {
  5.     public static void main(String[] args)
  6.     {
  7.         Scanner keyboard = new Scanner(System.in);
  8.        
  9.         double TheBenefitsOfBeingAServantOfTheEvilCorporateEmpire, MoneyStolenFromTheMassesThrougSubliminalBrainwashingAndCulturalManipulation;
  10.        
  11.         System.out.println("Hello! How were sales?");
  12.         MoneyStolenFromTheMassesThrougSubliminalBrainwashingAndCulturalManipulation = keyboard.nextDouble();
  13.        
  14.         if (MoneyStolenFromTheMassesThrougSubliminalBrainwashingAndCulturalManipulation >= 0) {
  15.  
  16.             if (MoneyStolenFromTheMassesThrougSubliminalBrainwashingAndCulturalManipulation <= 10000) {
  17.                 TheBenefitsOfBeingAServantOfTheEvilCorporateEmpire = MoneyStolenFromTheMassesThrougSubliminalBrainwashingAndCulturalManipulation * 0.10;
  18.             } else if (MoneyStolenFromTheMassesThrougSubliminalBrainwashingAndCulturalManipulation <= 15000) {
  19.                 TheBenefitsOfBeingAServantOfTheEvilCorporateEmpire = MoneyStolenFromTheMassesThrougSubliminalBrainwashingAndCulturalManipulation * 0.15;
  20.             } else if (MoneyStolenFromTheMassesThrougSubliminalBrainwashingAndCulturalManipulation <= 30000) {
  21.                 TheBenefitsOfBeingAServantOfTheEvilCorporateEmpire = MoneyStolenFromTheMassesThrougSubliminalBrainwashingAndCulturalManipulation * 0.20;
  22.             } else {
  23.                 TheBenefitsOfBeingAServantOfTheEvilCorporateEmpire = MoneyStolenFromTheMassesThrougSubliminalBrainwashingAndCulturalManipulation * 0.25;
  24.             }
  25.            
  26.             System.out.println("Your commission is " + TheBenefitsOfBeingAServantOfTheEvilCorporateEmpire);
  27.            
  28.         } else {
  29.             System.out.println("YOU LOST US MONEY! VERY BAD! NO COMMISSION FOR YOU!");
  30.         }
  31.     }
  32.    
  33.  }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement