Answer to Question #4353 in C++ for kishen naik
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.
char GetEnsered(char Mar,char male,char Year)
& return 0;
else if(Year>=25) return 0;
else return 1;
& char Mar,male;
& int Year=0;
& printf("Enter drivers data:\n Is driver married? (Type Y or N):");
& printf("Is he male? ( Type Y or N):");
& printf("How old is driver?(Enter number above 0):");
& if(GetEnsered(Mar,male,Year)==0) printf("Driver is ensured\n\n");
else printf("Driver is not ensured\n\n");
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!