(JAVA Please)
Program 1: FICA!? What’s FICA? If you’re taking this course, chances are that you’re going to make a pretty good salary – especially 3 to 5 years after you graduate. When you look at your paycheck, one of the taxes you pay is called FICA – or Federal Insurance Contributions Act. In simplest terms, it’s what funds our Social Security and Medicare systems (and the more that you work, the more you get). Interestingly, your employer will pay the same amount for you. The current tax rate is 7.65% until you make approximately $129,000. For this assignment, we’re going to help out hourly employees. Design (pseudocode) and implement (source code) a program that asks users how much they make per hour, the number of hours they work per week, and calculates the yearly income. For the second half, the program should calculate and display the amount of FICA the user will pay for that year. You must write and use at least two functions in addition to the main function. At least one function must not have a void return type. Note, don’t forget to put the keywords “public” and “static” in front of your functions. Document your code and properly label the input prompt and the outputs as shown below.
Sample run 1
: Enter hourly wage: 10
Enter your hours per week: 40
You will earn $20800.0 per year
You will pay $1591.2 to FICA
Sample run 2:
Enter hourly wage: 40
Enter your hours per week: 60
You will earn $124800.0 per year
You will pay $9547.2 to FICA
Dear Student ,
As per the requirement submitted above , kindly find the below solution.
Here a new java program with name "main.java" is created, which contains following code.
main.java :
import java.util.*;//import package
public class Main
{
public static void main(String[] args) {
//creating object of Scanner class
Scanner sc=new Scanner(System.in);
//asking hourly wage
System.out.print("Enter hourly
wage:");
int
hourlyWage=sc.nextInt();//reading hourlyWage
//asking hours per week
System.out.print("Enter your hours
per week:");
int
hoursPerWeek=sc.nextInt();//reading hours
//call method to calaculate pay per
year
int
payPerYear=calculatePay(hourlyWage,hoursPerWeek);
//display total pay per year
System.out.println("You will earn
$"+payPerYear+" per year");
//calling method calculate
tax
calculateTax(payPerYear);
}
//method to calculate income per year
public static int calculatePay(int hourlyWage,int
hoursPerWeek)
{ //return totalPay
return 52*hoursPerWeek*hourlyWage;
}
//method to calculate tax
public static void calculateTax(int pay)
{ //calculating tax
double tax=pay*0.0765;
//print tax
System.out.println("You will pay $"+tax+" to
FICA");
}
}
======================================================
Output : Compile and Run above program to get the screen as shown below
Screen 1 :main.java

Screen 2:main.java

NOTE : PLEASE FEEL FREE TO PROVIDE FEEDBACK ABOUT THE SOLUTION.
(JAVA Please) Program 1: FICA!? What’s FICA? If you’re taking this course, chances are that you’re...
Program 1: Social Security Payout. If you’re taking this course, chances are that you’re going to make a pretty good salary – especially 3 to 5 years after you graduate. When you look at your paycheck, one of the taxes you pay is called Social Security. In simplest terms, it’s a way to pay into a system and receive money back when you retire (and the longer you work and the higher your salary, the higher your monthly benefit). Interestingly,...
I'm having with my C program whenever i insert numbers it keeps outputting zeros here's the code: #include<stdio.h> int main(void) { int weeklyhours; double hourlyrate; double grosspay; double netpay; double federal; double state; double FICA; double Medicare; grosspay= weeklyhours * hourlyrate; federal = grosspay * 0.1; state = grosspay * 0.06; FICA = grosspay * 0.062; Medicare = grosspay * 0.0145; netpay = grosspay - (federal...
Create a flowchart for a program that does the following. Your assumption is that some employees are salaried and some are hourly. You will ask the user for two inputs: wage and NumberOfHoursWorked. If the NumberOfHoursWorked is equal to zero, then you are dealing with a salaried employee, otherwise you are dealing with an hourly employee. (It is assumed that the user will not enter any negative numbers). Given the user inputs, calculate and display the pay according to the...
use at least two functions in your program. . Write a program that calculates weekly payment. The program will ask the user full name, ID number (make one up), and hours worked. An hourly worker’s gross pay is basically his/her work hours that week multiplied by his/her regular hourly pay rate. However, after the first 40 work hours of the week, each additional work hour is paid at an overtime rate that is 1.5 times of the regular hourly rate....
Program 3. Decisions Due: Friday, February 7 by 11:59 PM Overview For this program, design a wage calculator for a single user. The program will use the user's number of hours worked and their hourly wage to calculate: Gross Pay Deduction Net Pay The Gross Pay is the amount that the user is paid before any deduction is applied. The pay amount is based upon the number of hours worked. If 40 hours or less were worked, the gross pay...
Assignment Four (T) Compatiblity Mode 4 Weekly Payroll. Wnite a Java program to create a weekly payroll using the following Adrated Weekly Income Income Tax Withheld $0 to $124 Over $124 to $399 Over $899 to $1,85 Over $1,855 to 53,064 Over $3,084 to $3,439 Over $5,439 Tax Guide. Your program should request the following information employee id number (integer), hourly wage, hours worked per week, number of with holding exemptions, manital status (use a code 0 and 1 or...
(Java) Rewrite the following exercise to check the user inputs to be: Valid input and positive with using try-catch (and/or throw Exception ) ************************************************************************** Write a program to prompt the user for hours and rate per hour to compute gross pay. Calculate your pay computation to give the employee 1.5 times the hourly rate for hours worked above 40 hours. Your code should have at least the following methods to calculate the pay. (VOID and NON-STATIC) getInputs calculatePay printPay Create...
Program using Python Q#1 Cost of Bagels: A bagel shop charges 8C cents per bagel for orders of less than a half-dozen bagels and 60 cents per bagel for orders of a half-dozen or more. Write a program that requests the number of bagels ordered and displays the total cost. How many bagels are ordered: 12 The cost of 12 bagels is $7.20. Q#2 Overtime Pay. Federal law requires that hourly employees be paid "time-and-a-half" for work in excess of 40...
This is my python assignment You wrote a program to prompt the user for hours and rate per hour to compute gross pay. Also your pay computation to give the employee 1.5 times the hourly rate for hours worked above 40 hours. Enter Hours: 45 Enter Rate: 10 Pay: 475.0 (475 = 40 * 10 + 5 * 15) Rewrite your pay program using try and except so that your program handles non-numeric input gracefully. Enter Hours: 20 Enter Rate:...
C++ Programming Assignment Objectives: The objectives of Week 1 assignment is: Implement multiple selection using the control statements ( i. e switch selection statement) Work with functions in C++ and to use the logical operators Assignment Purpose: To write a program that demonstrates the concepts of the control statements that we learned this week. Assignment Description: Problem Description: A company pays its employees as managers (who receive a fixed weekly salary), hourly workers (who receive a fixed hourly wage for...