A company insures its driver in following cases: ...

-If the driver is married. -If the driver is unmarried, male & above 30 years of age. -If the driver is unmarried, female & above 25 years of age. In all other cases, the diver is not insured. If the marital status, gend…

The marks obtained by a student in 5 different subjects are input through the keyboard. The students gets a division as per the following rules: Percentage above or equal to 60- First division . Percentage between 50 and 59- Second division. Percentage between 40 and 49- Third division. percentage less than 40- Fail. Write a program to calculate the division obtained by the student using logical operator.

#include<stdio.h> void main() { //ProgramWithHarsh// float eng,hindi,maths,phy,chem,percent; printf("\nEnter engish marks: "); scanf("%f",&eng); printf("\nEnter hindi marks: ")…

The marks obtained by a student in 5 different subjects are input through the keyboard. The students gets a division as per the following rules: Percentage above or equal to 60- First division . Percentage between 50 and 59- Second division. Percentage between 40 and 49- Third division. percentage less than 40- Fail. Write a program to calculate the division obtained by the student using else if condition.

#include<stdio.h> void main() { //ProgramWithHarsh// float eng,hindi,maths,phy,chem,percent; printf("\nEnter engish marks: "); scanf("%f",&eng); printf("\nEnter hindi marks: ");…

In a company an employee is paid as :- if his basic salary is less than Rupees 1500, House rent allowance = 10% of basic salary and daily allowance = 90% of basic salary. If his salary is either equal to or above Rupees 1500 then house rent allowance = rupees 500 and daily allowance = 90% of basic salary. If the employee's salary is input through the keyboard write a program to find his gross salary.

#include<stdio.h> void main() { //ProgramWithHarsh// //Calculation of gross salary// float bs,hra,da,gs; printf("Enter your basic salary="); scanf("%f",&bs); if(bs>=1500) { hra=5…

Load More
That is All