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, your employer will pay the same amount for you. The current tax rate is 6.2% until you make approximately $132,900.
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 Social Security tax 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 $1289.6 in Social Security tax
Sample run 2:
Enter hourly wage: 40
Enter your hours per week: 60
You will earn $124800.0 per year
You will pay $7737.6 in Social Security tax
***** I need this in pseudocode and c++ source code *****
ANSWER:-
Pseudo code:-
Pseudo code is nothing but the way we solve the problem. It is not about syntax and anything.
But in source code, we have to follow some certain rules, nothing syntax.
int main()
{
int hours_wage = input("Enter hourly wage: ");
int hours = input("Enter hours:");
total_money = hourly_wage * hours * 52;
social_service_tax = total_money*0.062;
print(total_money);
print(social_service_tax);
}
source code:-
#include <iostream>
using namespace std;
static float totalMoney(int hours, int hourly_wage){
return (float)(hours * hourly_wage * 52);
}
static float socialSecurityTax(float totalMoney){
return totalMoney* 0.062;
}
int main()
{
cout<<"Enter hourly wage: ";
static int hourly_wage,hours;
cin>>hourly_wage;
cout<<"Enter your hours per week: ";
cin>>hours;
float total_money = totalMoney(hours,hourly_wage);
cout<<"You will earn $"<<total_money<<" per
year."<<endl;
float tax = 0.0;
if(total_money <= 132900){
tax = socialSecurityTax(total_money);
}
cout<<"You will pay $"<<tax<<" in social security
tax."<<endl;
return 0;
}
OUTPUT:-
NOTE:- If you have any doubts, please comment below. THANK YOU!!! Please give positive rating.
Program 1: Social Security Payout. If you’re taking this course, chances are that you’re going to...
(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...
1. Write a C++ program that will ask the user for their full name and calculate the user's weekly salary based on their hourly wage and the number of hours they worked, assuming no overtime at this point. Sample program run: Please enter first name: Elmer Please enter middle initial (Enter space if none): J Please enter last name: Fudd Enter hours worked: 37.5 Enter hourly rate: 10.35 Your name is: Elmer J. Fudd Your weekly salary is: $388.12 2....
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...
Write a C++ console application that uses functions to calculate an employee’s salary.PART 1: Create a void function to print a menu asking the user to choose from the following options:1 - Annual salary2 - Monthly salary3 - Daily rate of pay4 – ExitThe void function only prints the menu. Format your cout statement to include the menu as displayed above.If the chosen option is 1- Annual Salary, ask the user for the number of hours they work perweek and...
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....
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...
A company pays its employees as managers (who receive a fixed weekly salary), hourly workers (who receive a fixed hourly wage for up to the first 40 hours they work and “time-and-a-half,” i.e. 1.5 times their hourly wage, for overtime hours worked), commission workers (who receive $250 plus 5.7% of their gross weekly sales), or pieceworkers (who receive a fixed amount of money per item for each of the items they produce-each pieceworker in this company works on only one...
Calculating Social Security and Medicare Taxes Assume a Social Security tax rate of 6.2% is applied to maximum earnings of $118,500 and a Medicare tax rate of 1.45% is applied to all earnings. Calculate the Social Security and Medicare taxes for the following situations If an amount box does not require an entry leave it blank. If required, round your answers to the nearest cent. Cumul Pay Before Current Weekly Payroll Current Gross Pay Year to Date Earnings - Soc...
Lenny Florita, an unmarried employee, works 47 hours in the week ended January 12. His pay rate is $12 per hour, and his wages have deductions for FICA Social Security, FICA Medicare, and federal income taxes. He claims four withholding allowances. Compute his regular pay, overtime pay (Lenny earns $18 per hour for each hour over 40 per week), and gross pay. Then compute his FICA tax deduction (6.2% for the Social Security portion and 1.45% for the Medicare portion),...
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...