Answer to Question #259431 in C for fas

Question #259431

Class Coordinator of the section 01 wants to select the student class representative. A student is eligible to become class representative if he/she has scored minimum of 75% in 12th Standard and less than 15K ranking in the entrance test.

A software needs to be developed to help Class coordinator to select the class representative.

1. Students rank in entrance test should be captured.

2. Students 12th percentage should be captured.

3. Check if rank is less than 15k and 12th percentage is more than 75%

4. If both the criteria is true, Display Eligible.

5. If any one of the criteria is false, Display Not Eligible.


1
Expert's answer
2021-10-31T18:41:32-0400
#include<stdio.h>
int main(){
	printf("Enter students rank in entrance test: \n");
	
	int rank;
	scanf("%d", &rank);
	printf("Enter students 12th percentage: \n");
	int marks;
	scanf("%d", &marks);
	if(rank<15 && marks>75){
		printf("Eligible");
	}
	else{
		printf("Not Eligible");
	}
	
}

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