Question: Can you show the C and C++ Write a multiple-alternative if statement to display a message indicating the educational level of a student based on
Can you show the C and C++
Write a multiple-alternative if statement to display a message indicating the educational level of a student based on the students number of years of schooling (0, none; 15, elementary school; 68, middle school; 912, high school; and more than 12, college). Print a message to indicate bad data as well.
Sample Program:
if (grade
printf("Bad data. ");
else if (grade == 0)
printf("Put correct print message here. ");
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
