Unit 3 Graded Exercise 2: Pass A Value To A Function That Makes A Decision
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 $50,000, if you keep going."
Here is what the output looks like.
File Submission
Upload your Flowgorithm file, your .c file, and a screen shot of your code output saved in a Word document including the path name directory at the top of the screen into the dropbox for grading.
7 years ago
5
Answer(1)![blurred-text]()
![]()
Purchase the answer to view it

- Passavaluetothefunction.c
- Passavaluetothefunction.rtf
- passvaluetofunction.fprg
other Questions(10)
- Organizations of all sizes are likely going to implement one or more of the following database management systems (DBMS): MySQLâ¢MS SQL⢠ServerOracle®Microsoft® Access Create a...
- PROFESSOR CATHERINE OWENS ONlY!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
- A recycling bin is in the shape of a right rectangular prism the bin is 12 m long, 5 1/2...
- Leadership Paper Teacher Charles only
- math
- CST-111 Week 4 Topic 4 DQ 1
- Criminal justice assignment
- N project
- hifsa shaukat Only
- Religion