Sales Income

Sales Income - } else if(salesAmount >= 40000) {...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package salesincome; import java.util.Scanner; /** * * @author Manny */ public class SalesIncome { /** * @param args the command line arguments */ public static void main(String[] args) { //Input System.out.println("Please enter the monthly sales amount: "); Scanner in = new Scanner(System.in); double salesAmount = in.nextDouble(); double salary = 0; //Process if(salesAmount >= 50000) { salary = 375 + salesAmount *.16;
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Background image of page 2
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: } else if(salesAmount >= 40000) { salary = 350 + salesAmount * .14; } else if(salesAmount >= 30000) { salary = 325 + salesAmount * .12; } else if(salesAmount >= 20000) { salary = 300 + salesAmount * .09; } else if (salesAmount >= 10000) { salary = 250 + salesAmount * .05; } else if (salesAmount < 10000) { salary = 200 + salesAmount * .03; } System.out.printf("Your monthly income is: $%,.2f\n", salary); } }...
View Full Document

Page1 / 2

Sales Income - } else if(salesAmount >= 40000) {...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online