Answer to Question #217951 in C for Dmg

Question #217951
Gaurav is an Engineering graduate looking for post; Graduation at different universities. Different universities have different eligibility criteria , which is genuinely based on percentage scored by students during; UG. Here are the list of universities with percentage criteria. University of Toronto-97%, University of British Columbia-95%,University of Ottawa-90%,Western University-85%.Read the percentage scored by Gaurav and help him in finding the universities that matches with the percentage scored by him with the help of C Program.
1
Expert's answer
2021-07-17T01:29:55-0400


#include <stdio.h>
int main(){
	float percentageScored;
	//get the percentage scored by Gaurav
	printf("Enter the percentage scored by Gaurav: ");
	scanf("%f",&percentageScored);
	//University of Toronto-97%
	if(percentageScored>=97 && percentageScored<=100){
		printf("\nUniversity of Toronto\n\n");
	}
	//University of British Columbia-95%
	if(percentageScored>=95 && percentageScored<=96){
		printf("\nUniversity of British Columbia\n\n");
	}
	//University of Ottawa-90%
	if(percentageScored>=90 && percentageScored<=94){
		printf("\nUniversity of Ottawa\n\n");
	}
	//Western University-85%
	if(percentageScored>=85 && percentageScored<=89){
		printf("\nWestern University\n\n");
	}
	


	getchar();
	getchar();
	return 0;
}








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