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
A suite of integrated software modules for finance and accounting, human resources, manufacturing and production, and sales and
marissa [1.9K]

Answer:

(b) ERP system

Explanation :

ERP is know as enterprise resource planning , it is a software which is utilized for business process  

it enables an association to utilize an arrangement of incorporated applications to deal with the business and computerize many back office capacities identified with innovation, administrations and HR.  

ERP programming coordinates these different capacities into one complete framework to streamline procedures and data over the whole association. The main focus of all ERP frameworks is a mutual database that supports various capacities utilized by various specialty units.

6 0
3 years ago
In a free market​ system, ____. A. central planning determines supply B. government forces primarily determine prices C. most ne
natka813 [3]

Answer: Option E

Explanation: In a free market system the prices of goods and services produced are determined by the market forces of demand and supply. This are also known as open market.

The intervention of govt. in regulating such markets is very minimal. Thus, the control in such markets stands in hands of private owners. Therefore, the private owners produce with the single aim of profit maximization in such economies.

Hence we can conclude that the right option is E.

4 0
3 years ago
True or false?columbus's return voyage took longer than his outward voyage
zaharov [31]
That is false, he took a lot more time trying to find India and instead found America
7 0
2 years ago
Read 2 more answers
The following information relates to Smoothie Incorporated. Beginning assets = 200,000 Beginning liabilities = 124,000 Beginning
Debora [2.8K]

Answer:

$153,000

Explanation:

With regards to the above, ending balance of equity

= Beginning equity + Sales during the year - Expenses(including taxes) during the year - dividends + proceeds from the issuance of stock

= $76,000 + $617,000 - $561,000 - $14,000 + $35,000

= $153,000

3 0
2 years ago
A group of farmers agreed that if any farmer suffered a property loss, the loss would be spread over the entire group. In this w
mixas84 [53]

Answer:

pooling losses

Explanation:

This agreement embodies the concept of pooling losses. In this concept, each individual loss is spread over to the entire group. In order for this arrangement to be effective, a large number of farmers are required, so whenever a farmer suffers a loss, it will be mitigated due to the pooling over the large group.

8 0
2 years ago
Other questions:
  • Tonneau Corporation had the following information available for October 2018: Work in Process, October 1 $20,000 Materials place
    7·1 answer
  • Do the following activities contribute to US GDP in 2020? Explain why or why not? In which year do these activities contribute t
    10·1 answer
  • On June 30, Sharper Corporation’s stockholders' equity section of its balance sheet appears as follows before any stock dividend
    14·1 answer
  • Jake just got a big promotion at work and wants to buy a new Jaguar.​ However, he lives in northeast​ Indiana, and the nearest J
    10·1 answer
  • In a production possibilities​ frontier, a point inside the frontier is A. productively inefficient. B. productively and allocat
    6·1 answer
  • _____ oversee the activities of first-line managers.
    14·1 answer
  • What percentage of american employees work for an employer that does not offer a traditional pension or retirement plan?
    11·1 answer
  • Brokers and sales agents who submit required criminal background information and fingerprints to TREC when seeking their origina
    12·1 answer
  • What is infomercial​
    7·2 answers
  • Nicole transferred a negotiable instrument to Andy. Andy later sues Nicole alleging a breach of presentation warranty. What coul
    10·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!