I am having a hard time creating a code for this:
If TEST score is less than 80, then increase TEST score by 5; else increase TEST score by 7%. This is what I came up with, please advise as to what changes to make to have a successful outcome.
#include <iomanip>
using namespace std;
int main()
{
int test;
int addFive=5;
int addSeven=.07;
if(test<80)
cout<<"Enter your grade: ";
cin>>test>>addFive;
test = test + addFive;
else
cout=test * addSeven;
return 0
}
#include <iomanip>
usingnamespace std;
int main()
{
int test;
int addFive=5;
int addSeven=.07;
if(test<80)
{
cout<<"Enter your grade: ";
cin>>test>>addFive;
test = test + addFive;
}else
cout=test * addSeven;
return 0;
}