Jun 17, 2014 at 6:27pm UTC
cout<<"************************************************************************"<<endl;
cout<<"|\t\t\t The Company Finance Department"<<endl;
cout<<"|Employee Name:"<<empname<<endl;
cout<<"|Department Name:"<<departname<<endl;
cout<<"|Clam Month:"<<claim_month<<endl;
cout<<"|Engine Size Number: ("<<enginesize<<")\t Rate:";
if(enginesize == 1)
{
cout<<"Full Expences Rate"<<endl;
}
else ( enginesize == 2);
{
cout<<"80% Of Full Rate"<<endl;
}
else (enginesize == 3); ERROR HERE (else Statement)
{
cout<<"50% Of Full Rate"<<endl;
}
cout<<"|Monthly Travel Expenses:\t(GBP)"<<totalexp;
cout<<"\n************************************************************************"<<endl;
Jun 17, 2014 at 6:38pm UTC
Hi all,
its better to write your code in ['code'] format in editor, its easier to read.
so, about your error, what will be happen if you replace else (enginesize == 3)
with this one else if (enginesize == 3)
?
Last edited on Jun 17, 2014 at 6:38pm UTC