Question: program: C Compiler 4. The below program outlines the requirements for obtaining state medical insurance in a country. Analyse, comment each line, and execute the

program: C Compiler

program: C Compiler 4. The below program outlines the requirements for obtaining

4. The below program outlines the requirements for obtaining state medical insurance in a country. Analyse, comment each line, and execute the program for various cases and present the output. (ASCII CODES FOR 'U' is 21 and 'M' is 13 Listing 6: Question 4 #include # include # include main) int sex , mart sta int age, taxes, pre ext; printf ( ENTER SEX and MARITAL STATUSn") scanf-s("%d%d", &sex, &mart-sta); printf ( " AGE Taxes PAID or NOT ANY PRE EXISTING scanf-s("%d%d%d", &age, &taxes, &pre-ext); CONDITIONS and AGEIn") if ((mart staM (mart.staU&sex M& age > 25 && taxes 1) 11 (mart-sta-,U, && sex-,F, && age > 30 && taxes == 1) 11 (pre-ext printf("GRANT INSURANCEIn") else printf("REFER TO REGIONAL OFFICE: REQUEST FOR FURTHER INFORMATIONIn")

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!