Pass A Value To A Function That Makes A Decision

profilemirameahora

You will write a flowchart, and C code for a program that does the following:

  1. Within main(), it asks for the user's annual income.
  2. Within main(), it calls a function called printIt() and passes the income value to printIt().  
  3. The printIt() function evaluates the income, and if the number is over 90000, prints a congratulatory message.  If the income is not over 90000, it prints a message of encouragement, like "You WILL make $90,000, if you keep going."

- Attached is what the output should look like.  Looking for C code only.. using DevC++

Tags: urgent
Answers 1
  • Computer Science
    Answer rating:5Stars out of1ratings

Purchase the answer to view it

blurred-text