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]
4 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]4 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
Situation 1 Bridgeport Cosmetics acquired 10% of the 184,000 shares of common stock of Martinez Fashion at a total cost of $13 p
Advocard [28]

Answer:

Please see find the answer in the explanation!

Explanation:

Situation 1:

First entry:

Bridgeport acquired 10% of shares of Martinez Fashion, the double entry would reduce the cash of Bridgeport and increase the asset, see as follows:

Shares Dr $239200 (18400× $13)

           Cash  Cr $239200

On June 30, Martinez declared and paid $69400 cash to all stockholders, Bridgeport will be entitled to 10% of the declared and paid dividend, therefore, dividend income will have to be recorded as follows:

Cash/bank Dr $6940

            Dividend Income Cr $6940

Situation 2:

Indigo Inc obtained significant influence over Seles corporation (making her an Associate). In a group situation, an associate is equity accounted and is recorded as an investment in the statement of financial position and is also entitled to the profits with the proportion of their ownership. First entry would be to record the associate as an investment, see as follows:

Investment in Associate Dr $84780

                                      Bank/Cash Cr $84780

On june 15 Seles declared and paid cash dividend, Indigo Inc will be entitled to 30% of the dividend, see as follows:

Dividend income= $39100× 30%

Dividend income= $11730

Entry:

Cash/Bank Dr $11730

      Dividend income Cr $11730

Unlike Bridgeport Corporation, Indigo Inc will be entitled to 30% of the reported net income as well. The entry is as follows;

Cash/Bank Dr $ 25500 ($85000× 30%)

                 Income Cr $ 25500

7 0
4 years ago
What are the similarities and differences between marketing research and marketing intelligence systems?
pshichka [43]

Explanation:

similarities between marketing research and marketing intelligence systems

  • Marketing research and Marketing intelligence systems they both provide information about markets that help the small companies to study and analyze their sales and markets

differences between marketing research and marketing intelligence systems

  • Marketing intelligence is available information or data that small business partners used to study the businesses, political and competition.

Marketing intelligence system data gathered repeatedly over time.

  • Market Research is not existing data or information. Companies do a survey to collect marketing research data.

Marketing research data gathered at one particular point.

4 0
3 years ago
What are two types of investment accounts that you might use in the future?
Vinvika [58]
Im guessing a retirement account and cd!
7 0
4 years ago
Hilton Hotels has diversified its lodging brands by adding Curio Collection, Tapestry Collection, and Canopy by Hilton, properti
Aloiza [94]

Answer:

The correct answer is D

Explanation:

Diversified is the term which is described as diverse or the varied. The hotels wants to have the different or varied brands so that the properties offer the personalized services, stylish and distinctive decors, which attract the professionals seeking the different alternatives.

So, in order to enhance the differentiation of the brands, the hotel should seek out or reach out the inputs which are of low quality.

6 0
3 years ago
Stock Y has a beta of 1.2 and an expected return of 14.5 percent. Stock Z has a beta of .7 and an expected return of 9.3 percent
emmasim [6.3K]

Answer:

Reward to risk ratio = (Expected return - Risk free rate) / Beta  

Reward to risk ratio of Y = ( 0.145 - 0.056) / 1.2

Reward to risk ratio of Y = 0.089 / 1.2

Reward to risk ratio of Y = 0.0741666

Reward to risk ratio of Y = 7.42%

Reward to risk ratio of Z = (0.093 - 0.056) / 0.7

Reward to risk ratio of Z = 0.037 / 0.7

Reward to risk ratio of Z = 0.0528571

Reward to risk ratio of Z = 5.29%

Security market line (SML) reward-to-risk ratio is the market risk premium itself which is 6.6%.

Stock Y has a reward-to-risk ratio that is higher than the market risk premium, it is currently under-valued in the market. Similarly, since stock Z has a reward-to-risk ratio that is lower than the market risk premium, it is currently over-valued in the market.

8 0
3 years ago
Other questions:
  • Which is an advantage corporations enjoy over partnerships?
    14·1 answer
  • The price elasticity of demand for soft drinks has been estimated to be 0.55. if the government enacts a major increase in the t
    8·1 answer
  • Real GDP per Capita in the US is currently $56,000 and grows at approximately 1.5% each year. Real GDP per Capita in China is cu
    10·1 answer
  • Many major designers are using metallic studs and spikes in their latest collections. What does this signify to a fashion foreca
    10·2 answers
  • There are a variety of types of conflict that can occur among channel members. If a hardware store down the street from our ice
    7·1 answer
  • How do you find tax liability from taxable income?
    15·1 answer
  • An agent made written disclosure to his employing broker-dealer that he intends to execute a series of private securities transa
    5·1 answer
  • Who wants extra points!!!!!!!!
    12·1 answer
  • Any changes to a firm's projected future cash flows that are caused by adding a new project are referred to as:________
    8·1 answer
  • premiums on standard annual renewable term life will generally increase as the policyholder ages. true false
    8·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!