Untitled
unknown
plain_text
a year ago
997 B
6
Indexable
Never
//Author: Isis Villa //09/16/23 //Freezeria Project #include <stdio.h> #include <stdlib.h> int main (){ char response, size, flavor, whippedCream, cherries; double totalScore, sScore, fScore, wcScore; double n = 4.0, x = 8.5; //given info printf("Hello, I would like to order a sundae, please.\n"); printf("Can I have a medium chocolate sundae with whippped cream and three cherries?\n"); printf("Are you ready??? Y/N\n"); scanf(" %c", &response); system("clear"); //size?? printf("What size?\n"); scanf(" %c" &size); //flavor? printf("What flavor?\n"); scanf(" %c" &flavor); //whipped cream or cherries? printf("Any whipped cream or cherries?\n"); scanf(" %c %c", &whippedCream, &cherries); totalScore = sScore + fScore + wcScore; if(totalScore < n){ printf("Maybe you should get another job.")}; if(totalScore => n and totalScore < x){ printf("Not bad, but you could use some work.")}; if(totalScore > x){ printf("Amazing work! You get a raise!.")}; return 0;