Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.util.Scanner;
- public class Exercise5
- {
- public static void main(String[] args)
- {
- Scanner keyboard = new Scanner(System.in);
- double TheBenefitsOfBeingAServantOfTheEvilCorporateEmpire, MoneyStolenFromTheMassesThrougSubliminalBrainwashingAndCulturalManipulation;
- System.out.println("Hello! How were sales?");
- MoneyStolenFromTheMassesThrougSubliminalBrainwashingAndCulturalManipulation = keyboard.nextDouble();
- if (MoneyStolenFromTheMassesThrougSubliminalBrainwashingAndCulturalManipulation >= 0) {
- if (MoneyStolenFromTheMassesThrougSubliminalBrainwashingAndCulturalManipulation <= 10000) {
- TheBenefitsOfBeingAServantOfTheEvilCorporateEmpire = MoneyStolenFromTheMassesThrougSubliminalBrainwashingAndCulturalManipulation * 0.10;
- } else if (MoneyStolenFromTheMassesThrougSubliminalBrainwashingAndCulturalManipulation <= 15000) {
- TheBenefitsOfBeingAServantOfTheEvilCorporateEmpire = MoneyStolenFromTheMassesThrougSubliminalBrainwashingAndCulturalManipulation * 0.15;
- } else if (MoneyStolenFromTheMassesThrougSubliminalBrainwashingAndCulturalManipulation <= 30000) {
- TheBenefitsOfBeingAServantOfTheEvilCorporateEmpire = MoneyStolenFromTheMassesThrougSubliminalBrainwashingAndCulturalManipulation * 0.20;
- } else {
- TheBenefitsOfBeingAServantOfTheEvilCorporateEmpire = MoneyStolenFromTheMassesThrougSubliminalBrainwashingAndCulturalManipulation * 0.25;
- }
- System.out.println("Your commission is " + TheBenefitsOfBeingAServantOfTheEvilCorporateEmpire);
- } else {
- System.out.println("YOU LOST US MONEY! VERY BAD! NO COMMISSION FOR YOU!");
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement