Question: I need a solution for this problems, I prefer to get the answer using printf and scanf not cout and cin. Program: C Compiler 4.

I need a solution for this problems, I prefer to get the answer using printf and scanf not cout and cin.

Program: C Compiler

I need a solution for this problems, I prefer to get the

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 STATUS "); scanf-s("%d%d", &sex, &mart-sta); printf("AGE Taxes PAID or NOT ANY PRE EXISTING CONDITIONS and AGE n") scanf-s("%d%d%d", &age, &taxes, &pre-ext); if ((mart-sta- ,M") 11 (mart-sta- ,U, && sex ,M'&& > 25 && taxes- == age 1) ll (mart-sta-= ,U' && sex-,F, && age > 30 && taxes -- 1) 11 (pre-ext printf (" GRANT INSURANCE n"); else printf ("REFER TO REGIONAL OFFICE: REQUEST FOR FURTHER INFORMATION n"); 5. The formula for the area of any triangle is Area = y's(s-a)(8-5)(8-c) a+b where s= Given the sides a, b, and c of a triangle determine whether it is a right triangle. Print the sides and the area. A triangle is right triangle if c2-a2 + b2 where c is the longest side

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!