Answer to Question #166196 in C++ for alex

Question #166196
  1. Each paycheck, he contributes a specific percentage of hisgross pay to his retirement plan at work. His employer also contributes to hisretirement plan, but at a different rate. Carlos wants a program that will calculate anddisplay the total annual contribution made to his retirement plan by him and his employer. Complete an IPO chart for this problem. Desk-check the algorithm using $1465as the gross pay, 4% as Carlos’s contribution rate, and 2% as his employer’scontribution rate. Then desk-check it using your own set of data.
1
Expert's answer
2021-02-24T03:25:20-0500
#include<iostream>
using namespace std;
int main(){
int salary=1465;
int cals, yearsal=salary*12;
cals=yearsal*0.04;
int empcontri=yearsal*0.02;
cout<<"salary per year\t"<<yearsal-cals-empcontri<<"\tcarlos plan per year\t"<<cals<<"\temployer plan\t"<<empcontri<<endl;

cout<<"gross per year"<< yearsal<<endl;

return 0;}

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment