/*
Lauren Dukes
CPSC 1110 example

Given your grade, is supposed to show whether you can skip class today.
You can skip class if it's Tuesday or Thursday (class isn't held on other days) and if your grade is above 90, 
as spoken in English.
However, this program does not give the expected result.
This is because of operator precedence. the && condition is evaluated before the || condition, which
is not what we meant. See the slides for an example.

*/

#include <stdio.h>
#include <stdbool.h>
int main(void){
	int grade = 1;
	bool isTuesday = true;
	bool isThursday = false;
	printf("Enter your grade: ");
	scanf("%d",&grade);
	bool canSkip = isTuesday || isThursday && grade > 89; 	printf("Can I skip class today? %d\n",canSkip);
	return 0;
}

