I am using C language to make program that selects employees in a project team based on their average points achieved in various criteria like MVP, so the error am getting is in the switch statement that says error: switch quantity not an integer, and the second error is error: case label does not reduce to a an integral constant
Here is the code:
#include <stdio.h>
main() {
printf("Google Team Selection\n\n");
double a, b, c, sum, average;
printf("Enter your Minimum Viable Product(MVP) points here:\n");
scanf("%lf", &a);
printf("Enter your Apprenticer Programmer points here:\n");
scanf("%lf", &b);
printf("Enter your consistency points here:\n");
scanf("%lf", &c);
printf("Enter your qocient points");
sum = a + b + c;
average = sum / 3.0;
printf(" the sum is %lf and the average is %lf", sum, average);
switch (average) {
case ">55":
printf("Congratulations you have been selected\n");
break;
}
}
So, I want my program to select employees whose average is above 55.