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
Use the information below to answer the following questions. Currency per U.S. $ Australia dollar 1.2377 6-months forward 1.2356
NikAS [45]

Answer:

Missing word <em>"a. What must the six-month risk-free rate be in Japan"</em>

<em />

a. Spot rate = 1 US $ = 1.2377 Aus.dollar

Forward rate = 1 US $ = 1.2356 Aus.dollar

<u>1.2356</u> = <u>(1 + i Ad)</u>

1.2377     (1 + 0.05)

0.9983 * (1.05) = 1 + i.Ad

1.048215 = 1 + i.Ad

i.Ad = 1.048215 - 1

i.Ad = 0.048215

i.Ad = 4.82%

b. Spot rate = 1 US $ = 100.3300 Japan Yen

Forward rate = 1 US $ = 100.0500 Japan Yen

<u>100.0500</u> = <u>(1 + i Ad)</u>

100.3300     (1 + 0.05)

0.9972 * (1.05) = 1 + i.Ad

1.04706 = 1 + i.Ad

i.Ad = 1.04706 - 1

i.Ad = 0.04706

i.Ad = 4.71%

4 0
2 years ago
AutomatedFry Inc. is the leading manufacturer of ventless deep fryers. It has developed a new high-capacity fryer. To identify t
Tems11 [23]

Answer:

Lead generation.

Explanation:

Selling process can be defined as the steps which must be taken by a sales representative when selling a particular product. The selling process begins with identification of potential customers that are willing to purchase the product.

Lead generation is the process of getting customers to buy a product, It involves creating an awareness of the product. This is the initial stage of a selling process.

Lead generation begins with identifying the group of customers to sell to, marketing your products through different mediums, maintaining constant communication with the customers.

4 0
3 years ago
International business differs from domestic business in that a firm operating across borders must deal with: Group of answer ch
Novosadov [1.4K]

Answer: A firm operating across borders must deal with both foreign and international environment. Options A and B

Explanation:

International Business is a kind of business between two or more countries, that involves the trade of products and services across national borders or on a global level.

An example is the oil industry in which oil is produced by one country and sold to another. Both countries deal with both Foreign and International environments.

5 0
3 years ago
Suppose that income tax revenues are maximized at an average (income) tax rate of 45 percent. If the Laffer curve is a correct d
galina1969 [7]

Answer:

-35 percent will reduce tax revenues.

-48 percent will reduce tax revenues.

3 0
1 year ago
Austere Realty, a real estate company, ensures that its web page always shows up high among the list of results whenever a user
Phantasy [73]

Answer:

The correct answer is the option C: Search engine optimization.

Explanation:

To begin with, the name of "Search Engine Optimization" or SEO refers to the process used by companies that focus on improving the quality and quantity of the website traffic related to a website that comes from search engines. Meaning that this process seeks for the way to get those websites to be find more easily by the consumers depending on how much related they are to what the consumers look for on the engine searchers. That is why that in this case, Austere Realty is actively engaged in search engine optimization due to the fact that they always ensure that its web page shows up high amoing the list of results of the search engine.  

7 0
2 years ago
Other questions:
  • Stated value of no-par stock is:
    12·2 answers
  • A cost imposed on someone who is neither the consumer nor the producer is called a
    8·1 answer
  • Menu costs are the​ merchants' costs of changing prices. true false
    8·1 answer
  • What is the best definition of profit?
    11·1 answer
  • Suppose the total monetary value of all final goods and services produced in a particular country in 2008 is $500 billion and th
    14·1 answer
  • Free cash flow can be used for various reasons, including distributing it to stockholders and debtholders. Which of the followin
    13·1 answer
  • You have $22,000 to invest in a stock portfolio. Your choices are Stock X with an expected return of 11 percent and Stock Y with
    11·1 answer
  • The most immediate impact of rising inflation is
    13·2 answers
  • Adam kisses the sleeve of Eve’s blouse, an act to which she did not consent. Has Adam committed a tort and if so, which one? Exp
    6·1 answer
  • The Beanny Company had budgeted sales of 1,000 units with a per unit selling price of $5 per unit. Actual sales were 1,100 units
    14·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!