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
Green Grocer and Futurity Farms enter into an agreement whereby Futurity will supply Green Grocer with 200 dozen eggs every two
MatroZZZ [7]

Answer: a, provides 30 days' notice to futurist of its desire to terminate.

Explanation: for an appointment to be terminated, there would a notice prior that termination, you can't just terminate an appointment without a 30days notice.

6 0
3 years ago
This assignment requires the application of your understanding of how the federal budget deficit affects economic variables.
SVEN [57.7K]

The  impact of a federal budget deficit on interest rates and the trade balance is that it can bring about the  inflow of foreign financial capital as well as a better exchange rate.

<h3>How can budget deficit have effect on trade balance?</h3>

When there is a stronger exchange rate there will be a little bit difficult for all the  exporters that want to sell their goods to foreign countries,  and at this time the imports will become cheaper.

In this case, trade deficit  will definitely bring about  an inflow of foreign financial capital as well as a good exchange rate.

Learn more about budget deficit on:

brainly.com/question/1083134

#SPJ1

7 0
2 years ago
A registered representative has left a firm and joined another. The new firm must obtain a copy of the form u-5 filled out by th
Paraphin [41]

The new firm obtains a copy of the form from the new employee and from FINRA's Central Registration Depository.

A firm is a for-income enterprise, commonly fashioned as a partnership that offers expert services, which include legal or accounting services. The concept of the firm posits that companies exist to maximize profits.

A firm is an enterprise that seeks to make a profit thru the sale of products and offerings. The time period firm is synonymous with enterprise or corporation. Firms can function beneath numerous special systems, together with sole proprietorships and companies.

The adjective company describes something this is strong and unwavering. if your top-notch Aunt Martha had a firm notion that kids need to be visible and now not heard, you and your siblings might have spent your early life using her loopy. something this is stable can also be defined as firm.

Learn more about firms here brainly.com/question/24448358

#SPJ4

7 0
2 years ago
An ""offer"" to sell an item on an online auction site generally is treated as an invitation to negotiate. True or false?
inessss [21]

Answer:True

Explanation: In live auctions, buying and selling of items, and bidding on these items, are done face to face by the auctioneer and the bidder. Online auction sites provide platforms for consumers and producers to buy and sell items over the internet.

Online auctions are different. Because these transactions take place online, and are thus automated, when an "offer" to sell an item occurs then it can be taken as an opportunity to negotiate. Interested parties can make bids on the item, with or without a limit, depending on the auctioneer. Then the party with the highest bid wins the item.

7 0
4 years ago
Advanced Enterprises reports year−end information from 2019 as​ follows: Sales​ (160,250 units) ​$969,000 Cost of goods sold ​(6
Ilya [14]

Answer:

Cost of goods sold = $576,900

Explanation:

The budgeted cost of goods sold will be the sales volume in 2020 multiplied by cost per unit .

Sales volume in year 2020= (100-10)% ×  sales figure for 2019

                                            = 90% × 160,250=  144,225  

Cost of goods sold per unit =  cost of goods sold in 2019/Sales units in 2019

                                              = 641,000/160250=$4

Cost of goods sold =  $4× 144,225 =  $576,900

Cost of goods sold = $576,900

3 0
3 years ago
Other questions:
  • A borrower has applied for a refinance on her property valued at $235,000. She currently has a HELOC with a $47,000 limit and cu
    9·1 answer
  • Vera Ernst is a licensed dentist. During the first month of the operation of her business, the following events and transactions
    11·1 answer
  • When a company lends cash to a customer who signs a promissory note: total assets decrease when the lending transaction occurs,
    11·1 answer
  • Tunstall, Inc., a small service company, keeps its records without the help of an accountant. After much effort, an outside acco
    14·1 answer
  • Selling inventory costing $93,000 for a selling price of $111,000 to customers on account (to be received at a later date) would
    11·1 answer
  • Causes of child labor
    6·2 answers
  • Which option most accurately explains what take-home pay is?
    7·1 answer
  • Amanda has been keeping a public blog about her time spent as a foreign exchange student. She allows for people to comment and s
    5·1 answer
  • A group of 10 pineapple pickers can pick 240 pineapples in an hour. When one more pineapple picker is added to the group, they c
    10·1 answer
  • If GDP is $15 trillion, how many years will it take for GDP to increase to $30 trillion if annual growth is 2 percent
    7·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!