Write a program for find out the waiver of tuition fee the following condition.
1. If CGPA greater then or equal to 10, then waiver 90% of total amount fee.
2. If CGPA greater then or equal to 9, then waiver 50% of total amount fee.
3. If CGPA greater then or equal to 8.5, then waiver 30% of total amount fee.
4. If CGPA less then 8, then waiver 5% of total amount fee.
Program:
#include<stdio.h>
main(){
float amount,cgpa,waiver;
printf("Enter amount = ");
scanf("%f", &amount);
printf("CGPA = ");
scanf("%f", &cgpa);
if(cgpa>=10)
waiver=amount*.90;
else if(cgpa>=9)
waiver=amount*.50;
else if(cgpa>=8.5)
waiver=amount*.30;
else if(cgpa<8)
waiver=amount*.05;
printf("Waiver = %f", waiver);
}
1. If CGPA greater then or equal to 10, then waiver 90% of total amount fee.
2. If CGPA greater then or equal to 9, then waiver 50% of total amount fee.
3. If CGPA greater then or equal to 8.5, then waiver 30% of total amount fee.
4. If CGPA less then 8, then waiver 5% of total amount fee.
Program:
#include<stdio.h>
main(){
float amount,cgpa,waiver;
printf("Enter amount = ");
scanf("%f", &amount);
printf("CGPA = ");
scanf("%f", &cgpa);
if(cgpa>=10)
waiver=amount*.90;
else if(cgpa>=9)
waiver=amount*.50;
else if(cgpa>=8.5)
waiver=amount*.30;
else if(cgpa<8)
waiver=amount*.05;
printf("Waiver = %f", waiver);
}