a company ensures a driver in the following cases:
1)if the driver is married.
2)if the driver is unmarried, male and above 30 years of age.
3)if the driver is unmarried, female and above 25 years of age.
in all other cases the driver is not ensuredif the marriable date is 6 and age of the driver are the input . write a program to determine when driver is ensured or not.
int main() { int i=0; while(i==0) { & char Mar,male; & int Year=0; & printf("Enter drivers data:\n Is driver married? (Type Y or N):"); & scanf("%c",&Mar); & printf("Is he male? ( Type Y or N):"); & scanf("%c",&male); & printf("How old is driver?(Enter number above 0):"); scanf("%d",&Year); & if(GetEnsered(Mar,male,Year)==0) printf("Driver is ensured\n\n"); else printf("Driver is not ensured\n\n"); }
Numbers and figures are an essential part of our world, necessary for almost everything we do every day. As important…
APPROVED BY CLIENTS
Finding a professional expert in "partial differential equations" in the advanced level is difficult.
You can find this expert in "Assignmentexpert.com" with confidence.
Exceptional experts! I appreciate your help. God bless you!
Comments
Leave a comment