I am trying to multiply 4 in this statement if it is true if

I am trying to multiply 4 in this statement if it is true? if ( word.length() > 4) determineBonus(word.length(), wordTotal, word);

Solution

if ( word.length() > 4)
{
double bonus=(double) determineBonus(word.length(), wordTotal, word);
//Multiply by 4
bonus=bonus*4;
}

I am trying to multiply 4 in this statement if it is true? if ( word.length() > 4) determineBonus(word.length(), wordTotal, word);Solutionif ( word.length()

Get Help Now

Submit a Take Down Notice

Tutor
Tutor: Dr Jack
Most rated tutor on our site