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
Entertainment Tonight, Inc. manufactures and sells stereo systems that include an assurance-type warranty for the first 90 days.
Solnce55 [7]

The estimated cost of the assurance-warranty is $350. The accounting for warranty will include a credit to Unearned Warranty Revenue, $900

Explanation:

  • Entertainment Tonight, Inc. manufactures and sells stereo systems that include an assurance-type warranty for the first 90 days. Entertainment Tonight also offers an optional extended coverage plan under which it will repair or replace any defective part for 2 years beyond the expiration of the assurance-type warranty. The total transaction price for the sale of the stereo system and the extended warranty is $3,000. The standalone price of each is $2,300 and $900, respectively. The estimated cost of the assurance-warranty is $350. The accounting for warranty will include a credit to Unearned Warranty Revenue, $900.
  • Unearned extended warranty revenue is given to be as an unearned revenues in accrued liabilities in the balance sheets.
  • Revenue which comes from separately priced, self-insured service contracts is reffered at the point of sale.
  • Unearned revenue is a money which is received from a customer for work that has not been performed still.

7 0
2 years ago
The demand for the services of trish's computer services has increased. trish employs several workers who diagnose and fix clien
MArishka [77]

Answer:

1) what will happen to the mrp and wages of trish's workers?

the marginal revenue product (MRP) is defined as the additional revenue generated by employing one extra unit of labor. In this case, the MRP will exceed the wages paid by Trish, generating economic rent or above average returns.

2) the wage rate is w2; the old wage was w1. what is the economic rent trish's workers now earn?

If Trish raises her employees' wages due to the increasing in price, then her employees will be earning economic rent = w2 - w1. This means that their wage is higher than the usual wage that would be paid for doing that job.

3) define economic rent.

Economic rent is defined as the additional profit generated by a business that exceeds its opportunity cost.

Economic rent = marginal revenue product – opportunity cost

The opportunity cost is the extra costs or benefits lost from choosing one activity or investment over another alternative.

In this case, Trish is earning an economic rent with her business because her earnings are higher than any other earnings that she could make by investing in something else.

4) what factors affect the elasticity of supply of the labor supply curve that trish faces as she hires workers?

The elasticity of the labor supply curve shows how much a 1% change in wages affect the quantity of labor supply (in % also).

In this case, the factors affecting the labor supply would be the substitution effect and the income effect of a rise in wages. Both factors are opposite, and in this case I would believe that the substitution effect would be greater.

  • The substitution effect means that workers will start working more because they are paid a higher wage. they will be willing to give up leisure time in order to work more hours and earn a higher salary.
  • The income effect means that workers will start working less hours due to higher wages per hour.
8 0
3 years ago
Upstream from Umami Snacks is the set of firms that supply the raw materials, information, and expertise to make the seaweed cri
ICE Princess25 [194]

Answer: A. Price C Quality

Explanation:

The price of available stock for purchase is of paramount importance to the buying company. The price determines the level of profitability and which in essence determines continuity in business.

Qualities of raw material input will equally determines the quality of the output and this affects the firm reputation.

The management style of the supplier and his payment terms can be influenced by the buying company through it's purchasing power, so they are not of much piority compared to price and quality.

7 0
3 years ago
Marsha Mellow’s weekly gross earnings for the week ended May 23 were $1,250, and her federal income tax withholding was $201.65.
Nataliya [291]

Answer:

$954.60

Explanation:

Gross Pay: Gross income for an individual, also known as gross pay, is the individual's total pay from his employer before taxes or other deductions.

Net Pay: Gross income for an individual, also known as gross pay, is the individual's total pay from his employer after taxes or other deductions.

Particulars       Amount   Amount

Gross Pay                          $1,250

Withholding deduction:

Income tax       <em>($201.65)</em>

Social Security  <em>(1,250*0.06 = $75)</em>

Medicare tax <em>(1,250*0.015 = $18.75)</em>

Net pay                                           $954.60  

8 0
3 years ago
Reddick Enterprises' stock currently sells for $35.50 per share. The dividend is projected to increase at a constant rate of 5.5
Shalnov [3]

Answer:

E. $41.69

Explanation:

We know,

Value of stock (P_{0}) = \frac{D_{1}}{k_{s} - g} [In case of constant growth model]

D_{1} = Next year or expected dividend

k_{s} = required rate of return

g = growth rate = 5.50%

However, as there is no information regarding expected dividend, we will use the alternative formula to calculate the stock's expected price 3 years from today.

P_{3} = P_{0} × (1 + g)^{3}

Here, current stock price, P_{0} = $35.50

Therefore, P_{3} = $35.50 × (1 + 0.0550)^{3}

P_{3} = $35.50 × 1.1742

Stock's expected price 3 years from now = $41.69 (rounded to two decimal places)

Therefore, option E is the answer.

4 0
3 years ago
Other questions:
  • Zahn company manufactures a product that sells for $120. a selling commission of 10% of the selling price is paid on each unit s
    5·1 answer
  • Miss Kitty's Chocolate Corral is located in an out-of-the-way small shopping center. However, the company enjoys outstanding bus
    12·1 answer
  • What is a commodity?
    9·1 answer
  • Suppose that the Fed had followed the Taylor rule before the financial crisis of 2008. In the first quarter of​ 2007, the inflat
    14·1 answer
  • Basic characteristic of free market system
    5·1 answer
  • The city council wants suggestions for crime prevention techniques such as installing unbreakable glass on storefronts to presen
    9·1 answer
  • Many economists agree that government should deal with monopolists on a case-by-case basis. policy options include the following
    5·1 answer
  • Although Americans today may work _______ hours than their great grandparents, the GDP does not adjust for this difference..
    9·1 answer
  • Wich type of promotion happens in informal conversations?
    10·1 answer
  • What soft skills do employers request when they list job openings in your field?Your Task. Individually or in teams, check the l
    8·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!