Question: C programming question: 1- Write conditional code that will produce the line of source code char *support=888-555-1234 option 2; if the macro WINDOWS is defined,

C programming question:

1- Write conditional code that will produce the line of source code char *support="888-555-1234 option 2"; if the macro WINDOWS is defined, and char *support="888-555-1234 option 3"; if the macro MACOS is defined. (Note: it will never be the case that both MACOS and WINDOWS are simultaneously defined.)

2- Write a loop that reads positive integers from standard input and that terminates when it reads an integer that is not positive. After the loop terminates, it prints out the sum of all the even integers read and the sum of all the odd integers read. Declare any variablesthat are needed.

3- Clunker Motors Inc. is recalling all vehicles in its Extravagant line from model years 1999-2002. Given an int variable modelYear and an array of chars representing a string modelName write a statement that prints the message "RECALL" to standard output if the values of modelYear and modelName match the recall details.

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!