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

  Java program to compare two variables if they are equal

Write down program which will ask user to initialize two character arrays, program must compare two variables if they are equal.

  Elliptic curve encryption

write a program to implement Elliptic Curve encryption/decryption and program will read parameters, plaintext and ciphertextfrom a file named "input.txt" (under the same directory).

  Length of the string in order to reserve space

To determine the length of the string in order to reserve space for the new string use the library routine strlen. Register a1 contains a pointer to the string to measure and on return register a1 has the number of characters in the string. You..

  What is overloading and what is overriding

What is overloading and what is overriding? Please use code to explain it.

  Allows the user to enter a temperature and whether

Write a program that allows the user to enter a temperature and whether the temperature is stated in Celsius or Fahrenheit...or whethe

  Using a linked implementation of graph write a method

Write a method that takes two nodes as input and returns true if joining an edge between these two nodes, forms a duplicate path to one of the input nodes within the graph.

  Client server monitoring system project design

client server monitoring system project design. The server adminstation can send messages to the clients and DESIGN WITH JAVA NETBEANS AND GUI.

  Java application to display multiple choice questions

Write down the application which displays series of TEN(10) multiple choice questions: questions must cover all the Java. Each question must have four possible answers and only one answer must be correct.

  Class sorter which contains methods for selection sort

Write a class Sorter which contains methods for selection sort, insertion sort and bubble sort (start with the code below). Then create a client class which asks user to enter ten numbers using arrays. Then the program asks user which sorting algo..

  Consider an array of integers

Consider an array of integers as below: int[] a = {5, 2, -4, 3, 0, -5, 7, 11, 6, 13} Complete the method named count(int[] a) in the class Count. The method should return the number of positive numbers in the array

  Create a temperature sensor simulator

create a temperature sensor simulator. First, display a menu that will ask the user what season to simulate (1) winter (2) spring (3) summer (4) fall or (5) to exit. Once the use selects the season your program should ask the user how many simulation..

  Application named arithmeticmethods

Create an application named ArithmeticMethods whose main() method holds two integer variables. Assign values to the variables. In turn, pass each value to methods named displayNumberPlus10()

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