Answer to Question #272488 in C for Tamil

Question #272488

Write a program to find the counseling slot based on the student's Cutoff marks, age, HSC and SSLC marks

1
Expert's answer
2021-11-28T05:26:11-0500
#include<stdio.h>
int main(){
    int cut_of_marks,age,hsc,sslc;
        printf("\nHello welcome to our program, enter the students details," 
                "\nto know the slot which the student belongs to");
        printf("\nEnter the students cut off marks: ");
        scanf("%d",&cut_of_marks);
        printf("Enter the students age: ");
        scanf("%d",&age);
        printf("Enter the HSC mark: ");
        scanf("%d",&hsc);
        printf("Enter the students Secondary Level School Certificate(SSLC) Mark: ");
        scanf("%d",&sslc);
        if(age > 18 & cut_of_marks > 79 & hsc > 79 & sslc > 79)
        {
            printf("\nThe student belongs to  1st Slot of Counseling");
        }
        else if(age > 18 & cut_of_marks > 69 & hsc > 69 & sslc > 69)
        {
            printf("\nThe student belongs to 2st Slot of Counseling");
        }
        else if(age > 18 & cut_of_marks > 50& hsc > 50 & sslc > 50)
        {
            printf("\nThe student belongs to  3rd Slot Counseling");
        }
        else
        {
            printf("\nThe student belongs to  4rd Slot Counseling");
        }
}

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