Write a program that will calculate monthly pay

Assignment Help JAVA Programming
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

}

}

 

 

Reference no: EM13168121

Questions Cloud

Explain the eguation fot the neutralization reaction : write the balance the eguation fot the neutralization reaction between H2 SO4 KCH
Describe if you can use an integrated rate law : explain if you can use an integrated rate law to find the orders of each reactant in a reaction with more than one reactant
Write a program to determine how long (sec.) : Using the v 2  form of drag, write a program to determine how long (sec.) and how far (m) a 150 gram ball whose radius is 3.5cm would fall before it reached 75% of its terminal velocity. Assume ball falls in air whose density is 1.21 kg/m 3 , has a d..
Define how the transition from the enamine intermediate : Explain how the transition from the enamine intermediate to the imine intermediate in the Fischer indole synthesis of 2-phenylindole
Write a program that will calculate monthly pay : 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..
Explain what is the structure for the indole : What is the structure for the indole that would be obtained from the phenylhydrazone
Define different compounds of the hypothetical element x : Consider three different compounds of the hypothetical element X using the table of bond lenghts as a reference, rank the three compounds shown below in order of increasing
Design and implement a graphical user interface (gui) : Design and implement a graphical user interface (GUI) that lets a user draw geometric objects such as rectangles, circles or line segments. The geometric objects are two be "entered" with clicks of the mouse
Calculate the ph of distilled water : Calculate the pH of a 25 mL distilled water sample after the addition of 1mL, 2mL, 3mL, 4mL

Reviews

Write a Review

JAVA Programming Questions & Answers

  Drags html list items to and from a javascript array

1.Write a program which drags html list items to and from a javascript array.2. if an identical list item is already in the array, prevent the list item from dropping in the array. Give an error saying that the list item already exists in the array

  Create and code a program that uses three parallel numeric

Create and code a program that uses three parallel numeric arrays of size 6. The program searches one of the arrays and then displays the corresponding values from the other two arrays.

  Implementation the two classes

Program Specifications: In the new implementation, the two classes, Student and Grades, are defined with the following operations/methods.

  The ai player will not be asking

The AI player will not be asking the user for any input. This means that placeShips() and fire() should not ask the user for locations. The AI player should choose locations of ships and automatically place them

  Write a class that has three overloaded static methods

Write a class that has three overloaded static methods for calculating the areas of the following geometric shapes

  The main method must repeatedly have the use

After the method is defined, the main method must repeatedly have the user enter 3 integers, call the triangleType method and display the return type. Be sure not to have an infinite loop by allowing the user to quit.

  Implement bounded partial queue by using signaling mechanism

Implement the same using a signaling mechanism that signals to all waiting dequeuers and do a performance comparison using timing analysis. Which works faster?

  Write program in java-calculate and display mortgage payment

Write the program in Java (with a graphical user interface) and have it calculate and display the mortgage payment amount from user input of the amount of the mortgage.

  Implement a client program

Implement a client program with a main method to demonstrate the evolution of the sales tax rates in the 50 US states over the last 10 years. Declare a two-dimensional array of values representing the sales tax rates. Dimension 1 represents the st..

  Java write a program that creates a 4 x 6 two-dimensional

Using Java write a program that creates a 4 x 6 two-dimensional array. The program should use loops to populate the array with random numbers between 1 and 100. After the values have populated the array, output the values of the array to the screen i..

  Implement avl tree

Implement AVL trees that allows both iterative traversal and recursive traversal.

  Create a java program

UserApp and PrettyPrintUtility multiple times (supplying different TransData test file names), the AutoTesterUtility PROGRAM will be the driver program.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd