Something
public text v1 · immutable#include <iostream.h>
main()
{
const int YES = 1;
const int no = 1;
int exempt;
float average;
int absent;
cout << "what is your course grade average?(percent)";
cin >> average;
cout << " how many days were you asbwenst from class?";
cin >> absent;
if (average >=90)
{
if (absent <=3)
{exempt = YES;}
}
if (exempt)
{
cout << "you are exempt from the final.\n";
}
else { cout << "you must take the final.\n";}
return 0;
}