Need help with iostreams

giver31

Newcomer
Joined
May 18, 2004
Messages
3
ok im doing this project and have been working on it for a bit now and i cant seem to figure out how to get it too work, im just a beginner so ya im not really confortable with c++ yet if anyone could help me or point me in the right direction that be great.

ok so here is the problem im trying to make this project right herehttp://www.cs.msstate.edu/~cs1284/fall03/labs/lab2.html

this is my program so far its really just nothing so far

Code:
# include <string> 
# include <iostream> 
# include <fstream> 
# include <iomanip> 
using namespace std; 
const double federalTax=0.15;
const double stateTax=0.035;
const double socialSecTax=0.0575;
const double medicareTax=0.0275;
const double pensionPlan=0.05;
const double healthInsurance=75.00;
int main () 
{ 
string employee ; 
double grossAmount; 
double federalTax,stateTax,socialSecTax,medicareTax,pensionPlan,healthInsurance, netPay;
ofstream outFile ; 
outFile.open ("\\***-3-2.out");
if(!outFile)
{
cout<<"Can not open the file\n";
return 1
}
cout<<"Enter Gross Amount: "<<flush;
cin>>grossAmount;
cout<<endl;
cout<<"Enter Name: "<<flush;
cin>>employee;
cout<<endl;




federalTax=grossAmount/0.15;
stateTax=grossAmount/0.035;
socialSecTax=grossAmount/0.0575;
medicareTax=grossAmount/0.0275;
pensionPlan=grossAmount/0.05;
healthInsurance=75.00;
 
Back
Top