int main (void) {int score;printf ("Please enter a score (between 100 and 0) > ");scanf ("%d" ,score = score - (score%10) ;switch (score){&score);case...


Question #2:<br>Rewrite the following C program using if-else statements.<br>#include<stdio.h><br>int main (void) {<br>int score;<br>printf (
"); scanf ("%d" , score = score - (score%10) ; switch (score){ &score); case 100: printf("Extraordinary\n"); break; case 90: case 80: printf("Excellent\n"); break; case 70: case 60: case 50: printf("Not bad\n"); break; case 40: case 30: case 20: case 10: 0: printf("Weak\n"); break; case default: printf ("Invalid input!\n"); printf ("< your="" name="">\n"); printf ("< your="" id="">\n"); return 0; Question2-1.c //Question2.1.c using if-else statements Question2-2.c Output Screenshot "/>
Extracted text: Question #2: Rewrite the following C program using if-else statements. #include int main (void) { int score; printf ("Please enter a score (between 100 and 0) > "); scanf ("%d" , score = score - (score%10) ; switch (score){ &score); case 100: printf("Extraordinary\n"); break; case 90: case 80: printf("Excellent\n"); break; case 70: case 60: case 50: printf("Not bad\n"); break; case 40: case 30: case 20: case 10: 0: printf("Weak\n"); break; case default: printf ("Invalid input!\n"); printf ("< your="" name="">\n"); printf ("< your="" id="">\n"); return 0; Question2-1.c //Question2.1.c using if-else statements Question2-2.c Output Screenshot

Jun 07, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here