Silly Sammy studies when both Serious Stuart and StudiousSelma study, or when ne
ID: 3616656 • Letter: S
Question
Silly Sammy studies when both Serious Stuart and StudiousSelma study, or when neither studies. Selma studies everyday except Sunday. Stuart studies every dayexcept Saturday. Write a program that determines, for each day ofthe week , whether or not Silly Sammy studies ?help please? thanks Silly Sammy studies when both Serious Stuart and StudiousSelma study, or when neither studies. Selma studies everyday except Sunday. Stuart studies every dayexcept Saturday. Write a program that determines, for each day ofthe week , whether or not Silly Sammy studies ?
help please? thanks
Explanation / Answer
#include #include using namespace std; int main() { string days[7] = {"Sunday","Monday","Tuesday" ,"Wednesday","Thursday","Friday","Saturday"}; int seriousStuart[7] = { 0, 1, 1, 1, 1, 1,1}; int studiousSelma[7] = {1, 1, 1, 1, 1, 1,0}; int sillySammy[7]; int and, or; for(int i=0; iRelated Questions
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.