Question

In: Computer Science

IN PSEUDOCODE AND C++!! Program 1: Social Security Payout. If you’re taking this course, chances are...

IN PSEUDOCODE AND C++!!

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

Solutions

Expert Solution

#include <iostream>

using namespace std;

int main () {

double wage;

int hours;

double tota;

//reading wage

cout<<"Enter hourly wage: ";

  cin>>wage;

//readig hours

cout<<"Enter you works per week: ";

  cin>>hours;

//finding weekly total

double total= hours * wage;

//finding yearly total

total=total * 52;

//fining tax

double tax=total * 0.062;

cout<<"You will earn $"<<total<<" per year"<<endl;

cout<<"You will pay $"<<tax<<" In Social Security tax";

return 0;

}

PSUEDOCODE:

DECLARE wage,hours,total;
OUTPUT: "Enter hourly wage: ";
   READ wage;
//readig hours
OUTPUT "Enter you works per week: ";
   READ hours;
//finding weekly total
total= hours * wage;
//finding yearly total
total=total * 52;
//fining tax
tax=total * 0.062;
OUTPUT "You will earn $",total," per year"
OUTPUT "You will pay $",tax," In Social Security tax";

Note : Please comment below if you have concerns. I am here to help you

If you like my answer please rate and help me it is very Imp for me


Related Solutions

write pseudocode not c program If- else programming exercises 1.    Write a C program to find...
write pseudocode not c program If- else programming exercises 1.    Write a C program to find maximum between two numbers. 2.    Write a C program to find maximum between three numbers. 3.    Write a C program to check whether a number is negative, positive or zero. 4.    Write a C program to check whether a number is divisible by 5 and 11 or not. 5.    Write a C program to check whether a number is even or odd. 6.    Write...
write pseudocode for the following problems not c code Pseudocode only Write a C program to...
write pseudocode for the following problems not c code Pseudocode only Write a C program to print all natural numbers from 1 to n. - using while loop Write a C program to print all natural numbers in reverse (from n to 1). - using while loop Write a C program to print all alphabets from a to z. - using while loop Write a C program to print all even numbers between 1 to 100. - using while loop...
C Program and pseudocode for this problem. Write a C program that plays the game of...
C Program and pseudocode for this problem. Write a C program that plays the game of "Guess the number" as the following: Your program choose the number to be guessed by selecting an integer at random in the rang of 1 to 1000. The program then asks the use to guess the number. If the player's guess is incorrect, your program should loop until the player finally gets the number right. Your program keeps telling the player "Too High" or...
I need assistance on this problem in Pseudocode and in C++ Program 1: Stay on the...
I need assistance on this problem in Pseudocode and in C++ Program 1: Stay on the Screen! Animation in video games is just like animation in movies – it’s drawn image by image (called “frames”). Before the game can draw a frame, it needs to update the position of the objects based on their velocities (among other things). To do that is relatively simple: add the velocity to the position of the object each frame. For this program, imagine we...
This is an introduction to social science research methods course: Imagine you’re planning to estimate the...
This is an introduction to social science research methods course: Imagine you’re planning to estimate the price of the average book at your college bookstore. The bookstore carries 13,000 titles, but you plan to sample only 200 books. You will select a sample of 200 books, record the price of each book, and use the average of the 200 books to estimate the average price of the 13,000 titles in the bookstore. Assume that the bookstore can give you access...
IN PSEUDOCODE and C++ Program 1: Stay on the Screen! Animation in video games is just...
IN PSEUDOCODE and C++ Program 1: Stay on the Screen! Animation in video games is just like animation in movies – it’s drawn image by image (called “frames”). Before the game can draw a frame, it needs to update the position of the objects based on their velocities (among other things). To do that is relatively simple: add the velocity to the position of the object each frame. For this program, imagine we want to track an object and detect...
1: The primary cost of the Social Security program is the A :Redistribution of income from...
1: The primary cost of the Social Security program is the A :Redistribution of income from younger to older workers. B: Financial costs of administering the program. C: Benefits paid. D: Reduction in total output the program causes because of work disincentives. 2:Social insurance programs A:Involve an income eligibility test. B:Are a type of welfare program. C:Are means-tested. D: Are event-conditional. 3: A market failure exists when an imperfection in A: Welfare programs prevents an optimal outcome. B: The market...
a. The Social Security system is predicted to be on a course to exhaust its trust...
a. The Social Security system is predicted to be on a course to exhaust its trust fund. What is the primary cause of this? (And don’t say that revenues are less than expenses. Explain why this is the case. b. Cite at least two potential solutions from class or the text to the problem of social security running out of funds and the difficulties of implementing each of these solutions
I need assistance on this problem in Pseudocode and in C++ Program Program 3: Give a...
I need assistance on this problem in Pseudocode and in C++ Program Program 3: Give a baby $5,000! Did you know that, over the last century, the stock market has returned an average of 10%? You may not care, but you’d better pay attention to this one. If you were to give a newborn baby $5000, put that money in the stock market and NOT add any additional money per year, that money would grow to over $2.9 million by...
1. What are the objectives of the unemployment insurance program established by the Social Security Act...
1. What are the objectives of the unemployment insurance program established by the Social Security Act of 1935? How is this program funded? 2. Describe the three phases of international assignments. 3. What are the different types of pay for rewarding individual performance?
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT