Answer to Question #273650 in C for sr1220

Question #273650

Write a program to find the students list who are allocated for a specific counselling slot based on the student’s Cutoff marks, Age, HSC and SSLC marks.




1
Expert's answer
2021-12-01T06:41:52-0500
#include<stdio.h>
int main(){
	
       printf("\nEnter Cutoff marks: ");
        int cut;
		scanf("%d",&cut);
		 printf("\nEnter students age: ");
		 int age;
		 scanf("%d",&age);
        
      printf("Enter the HSC mark: ");
        int hsc ;
        scanf("%d", &hsc);
        printf("Enter SSLC Mark: ");
        int sslc;
        scanf("%d", &sslc);
        if(age > 18 & cut > 79 & hsc > 79 & sslc > 79)
        {
           printf("\nStudent belongs to  first Slot of Counseling");
        }
        else if(age > 18 & cut > 69 & hsc > 69 & sslc > 69)
        {
            printf("\nStudent belongs to second Slot of Counseling");
        }
        else if(age > 18 & cut > 50& hsc > 50 & sslc > 50)
        {printf("\nStudent belongs to  third Slot Counseling");
        }
        else
        {
            printf("\nStudent belongs to  fourth Slot Counseling\n");
        }
}

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS