Reference no: EM13168121
Write a program that will calculate monthly pay and expenses for a commercial utility sales person. Sales employees in this company are paid monthly. Each employee is paid a base pay of $1,000 and 9½ % commission on sales. The company deducts 18% of the gross pay for tax purposes.
This is an outline of how the program needs to be written.. A few constants are given
Java Program starts here:
import java.util.Scanner;
import java.text.NumberFormat;
/*
author Your Name
*/
public class PayAndBudgetProject {
public static void main(String[] args) {
// TODO code application logic here
Scanner sc = new Scanner(System.in);
NumberFormat money = NumberFormat.getCurrencyInstance();
// declare constants
final double BASE_PAY = 1000;
final double COMMISSION_RATE = 0.095;
final double DEDUCTION_PERCENT = 0.18;
final double HOUSING_PERCENT = 0.25;
final double UTILITY_PERCENT = 0.15;
final double FOOD_PERCENT = 0.10;
final double ENTERTAINMENT_PERCENT = 0.35;
final double MISCELLANEOUS_PERCENT = 0.15;
//declare input variables
// declare output variables
// get input data
// do pay calculations
// do budget calculations
// output pay results
System.out.println(); // This prints a blank line
// output budget results
}
}