Write a flowchart and C code for a program that does the following: Within main(), it asks for the user's annual income. Within main(), it calls a function called printIt() and passes the income value to printIt(). You need to include a prototype when creating the function. The printIt() function evaluates the income, and if the number is over 90000, it 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."

C++ Programming: From Problem Analysis to Program Design
8th Edition
ISBN:9781337102087
Author:D. S. Malik
Publisher:D. S. Malik
Chapter6: User-defined Functions
Section: Chapter Questions
Problem 1TF: Mark the following statements as true or false: a. To use a predefined function in a program, you...
icon
Related questions
Question
  1. Write a flowchart and C code for a program that does the following:
    • Within main(), it asks for the user's annual income.
    • Within main(), it calls a function called printIt() and passes the income value to printIt(). You need to include a prototype when creating the function.
    • The printIt() function evaluates the income, and if the number is over 90000, it 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."
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 3 steps with 3 images

Blurred answer
Knowledge Booster
Types of Function
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
C++ Programming: From Problem Analysis to Program…
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning