Answer to Question #28447 in C++ for nouriel

Question #28447
using namespace std;

// Function Prototype
void getInput(int, int&);
void CalcFwt(int, int,double);
void CalcFica(int, int,double);
void CalcNetpay(int, int,int, double);
void displayInfo(int, double, double, double);

int main()
{
const double FwtRate =double(0.020);
const double FicaRate= double(0.080);
const int Wsaalary= int (1000.00);
const int employeeID = int(101234);

int employeeID;
int Wsalary;
int FwtAmount;
int FicaAmount;
int WNetPay ;

getInput(employeeID,Wsalary);
CalcFwt(Wsalary,FwtAmount,FwtAmount );
CalcFica(Wsalary,FicaAmount,FicaAmount );
CalcNetpay(Wsalary,FwtAmount,FicaAmount, WNetPay );
displayInfo(employeeID,FwtAmount,FicaAmount,WNetPay);

return 0;
}
void getInput(int& employeeID, int& Wsalary)
{
cout << "named constant: ";
(cin, employeeID);
cout<< "Weekly Salary: ";
cin>> Wsalary;
}
void CalcFwt (int Wsalary,int FwtRate, double FwtAmount )
{
FwtAmount = (Wsalary * FwtRate)/100 ;
cout << FwtAmount;
0
Expert's answer

Answer in progress...

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

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS