1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
ss7ja [257]
3 years ago
14

. Acme Parts runs a small factory and employs workers who are paid one of three hourly rates depending on their shift: first shi

ft, $17 per hour; second shift, $18.50 per hour; third shift, $22 per hour. Each factory worker might work any number of hours per week; any hours greater than 40 are paid at one and one-half times the usual rate. In addition, second- and third-shift workers can elect to participate in the retirement plan for which 3% of the worker’s gross pay is deducted from the paychecks. Write a program that prompts the user for hours worked and shift, and, if the shift is 2 or 3, whether the worker elects the retirement. Display: (1) the hours worked, (2) the shift, (3) the hourly pay rate, (4) the regular pay, (5) overtime pay, (6) the total of regular and overtime pay, and (7) the retirement deduction, if any, and (8) the net pay. Save the file as AcmePay.java.
Business
1 answer:
attashe74 [19]3 years ago
5 0

Answer:

Program file

filename: AcmePay.java

import java.util.Scanner;

public class Payroll {

public static void main(String[] args) {

double[] shiftPay = { 17, 18.50, 22 };

double hourlyPayRate = 0, regularPay = 0, overTimeHours = 0, overTimePay = 0, retirementDeduction = 0,

netPay = 0;

System.out.println("*** Employee Pay ***");

// scanner object to read data

Scanner scan = new Scanner(System.in);

// read the number of hours worked from user

System.out.print("Enter the number of hours worked: ");

double numHours = scan.nextDouble();

// read the shift

System.out.print("Enter the shift (1 - 3): ");

int shift = scan.nextInt();

hourlyPayRate = shiftPay[shift];

// calculate regulaPay

regularPay = numHours * hourlyPayRate;

if (numHours > 40) {

overTimeHours = numHours - 40;

overTimePay = overTimeHours * (hourlyPayRate * 1.5);

}

// calculate grossPay

double grossPay = regularPay + overTimePay;

// check for availability of retirement plan

if (shift == 2 || shift == 3) {

System.out.print("Did the worker elected for retirement (1 for yes, 2 for no): ");

int chooseRetirement = scan.nextInt();

if (chooseRetirement == 1) {

// calculate retirement bonus

retirementDeduction = (grossPay * 0.03);

}

}

// calculate netPay

netPay = grossPay - retirementDeduction;

// print the information to stdout

System.out.println("Hours worked: " + numHours);

System.out.println("Shift: " + shift);

System.out.println("Hourly Pay rate: " + hourlyPayRate);

System.out.println("Regular Pay: " + regularPay);

System.out.println("Overtime hours: " + overTimeHours);

System.out.println("Overtime pay: " + overTimePay);

System.out.println("Total of regular and overtime pay (Gross pay): " + grossPay);

System.out.println("Retirement deduction, if any: " + retirementDeduction);

System.out.println("Net pay: " + netPay);

// close scanner object

scan.close();

}

}

Explanation:

You might be interested in
Companies under ____ market structures are interdependent. _____ is a secret agreement among companies that may result from this
Ipatiy [6.2K]

If i'm correct the answer is Companies under Oligopolistic market structures are interdependent. Collusion is a secret agreement among companies that may result from this interdependence.

3 0
3 years ago
The Department of Labor’s Occupational Outlook Handbook is relatively expensive and not available for use by the general public.
denis23 [38]

Answer: false

Explanation: just got it right

4 0
3 years ago
During which phase of the data analysis process does the fraud examiner identify, obtain, and verify the relevant or requested d
PIT_PIT [208]

Answer: The preparation phase

Explanation:

The preparation phase of data analysis is a phase where the Data analyst examines the information he got in order to carry out his or her job properly. One if the test he carries out that period is Duplicate testing, it is used to identify transactions with duplicate values in specified fields. It can quickly review files

5 0
3 years ago
1 1.1 Briefly name and explain the aspects of the marking mix.​
mafiozo [28]

Answer: Marketing mix could described as methods taken by an organization to boast their brand or improve demand of product in the market.

Explanation:

Marketing mix could described as methods taken by an organization to boast their brand or improve demand of product in the market.

Aspects of marketing mix are Price, product, promotion and place.

Price; this refers to the value of a product. The organization in considering marketing mix would have to make her price affordable for the market in relation with the value of the product it's selling.

Product; this is the item being sold. The item must be valuable and worth the buy of the customers, this would improve consistent buying and referral by those who have already bought.

Promotion: this refers to actions taken to make known the product visibility in the market. This actions could be through branding, marketing with the aim of making the products demanded more than usual always.

Place: these is referred to as the target market. Every market is not a market, the place refers to those who are either already customers or would be customers. The organization must try to identify those who her products address and try selling to them.

5 0
3 years ago
converting quarterly and annual business plans into broad output and labor requirements for the intermediate term is known as:
Nikitich [7]

Converting quarterly and annual business plans into broad output and labor requirements for the intermediate term is known as aggregate planning.

Aggregate planning is a method for developing a business by arranging a management to the production and demands. In this method, the quarterly and annual business plans are converted into broad output and labor requirements for the intermediate term. This intermediate term may last from 4 to 12 months.

In this period of time the company will hire new employees to make enough output to satisfy the demands and thereby maximizing the profit with a minimum cost.

Aggregate planning ensures the efficiency and production of a company. Usually it is done as a prior activity to obtain a continuous production facility.

Learn more about aggregate planning at brainly.com/question/18803972

#SPJ4

5 0
1 year ago
Other questions:
  • Describe a real or made up but realistic example of a situation in which a person’s awareness of their social class might have a
    6·1 answer
  • The county supervisor is considering building a community pool and has gathered data on how much residents are willing to pay. H
    7·1 answer
  • Ducheyne Electric recently declared a 15 percent stock dividend. On the date of the stock dividend Ducheyne had 16 million share
    11·1 answer
  • suppose your total taxable income this year is $75 000 you are taxed at a rate of 10 percent on the first 25000 20 percent on th
    9·1 answer
  • Earning revenue ____________________ a. decreases assets, increases liabilities b. increases assets, decreases stockholders' equ
    5·1 answer
  • Quien es el Dueño de fedex
    14·1 answer
  • The 2016 annual report for Mega Mills disclosed that 1 billion shares of common stock have been authorized. At the end of 2015,
    12·1 answer
  • Accounting practice in the United States follows the generally accepted accounting principles (GAAP) developed by the Financial
    6·1 answer
  • Which of the basic organizational functions records all financial activity from billing customers to paying employees?
    8·1 answer
  • The director of research has asked you to produce a pro forma valuation of a target company using leveraged buyout analysis. A c
    14·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!