int main()
{
printf("========================================\n");
printf("= Name: Via S. Galaagte =\n");
printf("= Subject Title: Programing Language =\n");
printf("= Subject Code: CS242 =\n");
printf("= Activity No: 7 =\n");
printf("= Instructor: Clinton Reducto =\n");
printf("========================================\n");
int grade;
printf("\n\n\nEnter your grade in CS242:");
scanf("%d", &grade);
if (grade>=98 && grade<=100){
printf("========================================\n");
printf(": Grade Point Equivalent: 1 : MERRY CHRISTMAS AND HAPPY NEW YEAR!\n");
printf(": Excellent! :\n");
printf("========================================\n");
}
else if (grade>=97 && grade<=97){
printf("========================================\n");
printf(": Grade Point Equivalent: 1.25 : MERRY CHRISTMAS AND HAPPY NEW YEAR!\n");
printf(": Very Good! :\n");
printf("========================================\n");
}
else if (grade>=92 && grade<=94){
printf("========================================\n");
printf(": Grade Point Equivalent: 1.5 : MERRY CHRISTMAS AND HAPPY NEW YEAR!\n");
printf(": Very Good! :\n");
printf("========================================\n");
}
else if (grade>=89 && grade<=91){
printf("========================================\n");
printf(": Grade Point Equivalent: 1.75 : MERRY CHRISTMAS AND HAPPY NEW YEAR!\n");
printf(": Good! :\n");
printf("========================================\n");
}
else if (grade>=86 && grade<=88){
printf("========================================\n");
printf(": Grade Point Equivalent: 2 : MERRY CHRISTMAS AND HAPPY NEW YEAR!\n");
printf(": Good! :\n");
printf("========================================\n");
}
else if (grade>=83 && grade<=85){
printf("========================================\n");
printf(": Grade Point Equivalent: 2.25 : MERRY CHRISTMAS AND HAPPY NEW YEAR!\n");
printf(": Good! :\n");
printf("========================================\n");
}
else if (grade>=80 && grade<=82){
printf("========================================\n");
printf(": Grade Point Equivalent: 2.5 : MERRY CHRISTMAS AND HAPPY NEW YEAR!\n");
printf(": Fair! :\n");
printf("========================================\n");
}
else if (grade>=77 && grade<=79){
printf("========================================\n");
printf(": Grade Point Equivalent: 2.75 : MERRY CHRISTMAS AND HAPPY NEW YEAR!\n");
printf(": Fair! :\n");
printf("========================================\n");
}
else if (grade>=75 && grade<=77){
printf("========================================\n");
printf(": Grade Point Equivalent: 3 : MERRY CHRISTMAS AND HAPPY NEW YEAR!\n");
printf(": Passed :\n");
printf("========================================\n");
}
else{
printf("========================================\n");
printf(": Grade Point Equivalent: 5.00 : MERRY CHRISTMAS AND HAPPY NEW YEAR!\n");
printf(": Failed :\n");
printf("========================================\n");
}
return 0;
}
Walang komento:
Mag-post ng isang Komento