Identify and correct which statement (s) in the following C++ programs will cause a compiler error? In your answer, you have to write and correct only the statement that has the syntax error.
#include using namespace std;int main( ){ int netIncome; double taxBill; double fivePercentTax, tenPercentTax; cout >> "Enter net income (rounded to whole dollars) $"; cin >> netIncome; if (netIncome <=>=> taxBill = 0; else taxBill = (0.05**(netIncome - 15000)); cout < "net="" income="$"">< netincome=""><> cout < "tax="" bill="$"">< taxbill=""><> retrn 0;}
using namespace std;
int main( )
{
int netIncome;
double taxBill;
double fivePercentTax, tenPercentTax;
cout >> "Enter net income (rounded to whole dollars) $";
cin >> netIncome;
if (netIncome <=>=>
taxBill = 0;
else
taxBill = (0.05**(netIncome - 15000));
cout < "net="" income="$"">< netincome=""><>
cout < "tax="" bill="$"">< taxbill=""><>
retrn 0;
}
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here