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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!