Computer Science, asked by naziyamakandar13, 12 hours ago

in a company named micky software solution, many part-time employees are working for a pay of rs. 100 per hour. write a program to calculate the total amount an employee earns in a year by working part time. consider employees should work all day in the year and year has 365 days.​

Answers

Answered by Anonymous
25

Answer:

Answer:

In this example consider that every employee is getting $37.50 per hour and the standard hours per week is 40 hours/week. If any employee works more than 40 hours per week then he/she should be earning $2.50 additional per extra hour worked.

import java.util.Scanner;

public class SalaryCalculator {

  public static void main(String[] args) {

      System.out.print("Enter number of hours worked: ");

      Scanner in = new Scanner(System.in);

      double totalHoursWorked = in.nextInt();

      double standardWage = 37.50;

      int standardHours = 40;

      double totalWage;

      double overtimeBonus = 2.50;

      if (totalHoursWorked > 40)

          totalWage = (standardWage * totalHoursWorked)

                      + (totalHoursWorked - standardHours) * overtimeBonus;

      else if (totalHoursWorked < 40)

          totalWage = standardWage * totalHoursWorked;

      else

          totalWage = standardWage * standardHours;

      System.out.println("Your total salary of the week is: " + totalWage);

Explanation:

Answered by minakashipatiyal2076
1

Explanation:

Rs.100 * 8760 because 365 days have 8760 days 876000 answer

Similar questions