//Determine check writing fees
if (checks < 0)
cout << "You can't enter a negative number of checks.\n";
elseif (checks >= 0 && checks < 20)
{
balance -= (0.1 * checks);
cout << "Balance after checks1 is $" << balance << endl;
}
elseif (checks >= 20 && checks <= 39)
{
balance -= (.08 * checks);
cout << "Balance after checks2 is $" << balance << endl;
}
elseif (checks >= 40 && checks <= 59)
{
balance -= (0.06 * checks);
cout << "Balance after checks3 is $" << balance << endl;
}
else (checks >= 60);
{
balance -= (0.04 * checks);
cout << "Balance after checks4 is $" << balance << endl;
}
...But whenever I enter a person's balance and a number of checks, it gives me two different fees. i think it has to do with the last else statement. What is the problem? And why does my compiler tell me it needs the ";" after the else?