|
-
April 27th, 2009, 09:45 AM
#1
Homework Function Help.
Below i Have 3 different functions I wrote for a homework assignment. I'm not sure what is wrong with them. Any help would be GREATLY Appreciated.
void airfare(double &airfareCost, double &airfareAllowd)
{
Cout<< "Enter cost of airefare"<<endl;
cin>> airfareCost<<endl;
airfareAllowd=airfareCost;
}
void milage(int miles, double &milageCost, double&milageAllowd)
{
cout<< "Enter cost of airefare"<<endl;
cin>> milageCost<<endl;
cout<<"Enter number of miles"<<endl;
cin<<miles<<endl;
milageAllowed= miles* 0.38 ;
}
Void taxi(int taxiDays, double &taxiCost, double&taxiAllowd)
{
cout<< "Enter number of days travelled"<< endl;
cin>>taxiDays<<endl;
cout<< "Enter Total cost of Taxi"<<endl;
cin>>taxiCost<<endl;
taxiAllowed=taxiDays * 10 ;
}
Last edited by Poeticsoul44; April 27th, 2009 at 09:47 AM.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|