/*
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.
This program gives the expected result because we used parentheses to override the operator precedence. See the slides
for how this works.

*/

#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;
}

