//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, wScore, cScore;
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);
if(response == 'Y'){
system("clear");
}
else{
system("clear");
printf("Yes you are!!!1!1!1!!1\n");
}
//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);
//post-order commentary
if(cherries == '3'){
printf("Just the right amount of cherries!\n");
cScore = 2.5;
}
if(cherries > '3'){
printf("That's a lot of cherries.\n");
cScore = 1.5;
}
if(cherries < '3'){
printf("I asked for more cherries!\n");
cScore = 0.0;
}
if(size == 'M'){
printf("The perfect size!\n");
sScore = 2.5;
}
if(size == 'L'){
printf("This is WAAAY too big.\n");
sScore = 1.5;
}
if(size == 'S'){
printf("This is not big enough!\n");
sScore = 1.0;
}
if(flavor == 'C'){
printf("I LOVE CHOCOLATE\n");
fScore = 2.5;
}
else{
printf("I just wanted chocolate bruh :(\n");
fScore = 1.0;
}
if(whippedCream == 'Y'){
printf("Yay, whipped cream!!\n");
wScore = 1.0;
}
else{
printf("Where's my whipped cream bro :|\n");
wScore = 0.0;
}
//final score calculations and commentary
totalScore = sScore + fScore + cScore + wScore;
if(totalScore < n){
printf("Maybe you should get another job.\n");}
if(totalScore >= n && totalScore < x){
printf("Not bad, but you could use some work.\n");}
if(totalScore = x){
printf("Amazing work! You get a raise!\n");}
printf("FINAL SCORE: %.2lf\n", totalScore);
return 0;
}