1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
madreJ [45]
4 years ago
5

You will write a flowchart, and C code for a program that does the following: Within main(), it asks for the user's annual incom

e.Within main(), it calls a function called printIt() and passes the income value to printIt(). 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."

Computers and Technology
1 answer:
elena-s [515]4 years ago
7 0

Answer:

Explanation:

To write a C program for the above problem:

#include <stdio.h>

int main()

{

// we define the variable to get the annual income

float AnIncome;

// to get the annual income from the user

printf("Enter your annual income here: ");

scanf("%f", &Anincome);

// This is the function to test the annual income

float printIt(x){

//we test the amount inputted now

if (x>= 90000){

printf("Congratulations on your income\n"); // This is the congratulatory message

}

if (x<=0){

// This statement is included to avoid putting zero as annual income

printf("Annual Income cannot be zero or less than zero\n");

}

else{

printf("You WILL make $90,000, if you keep going.\n");

}

}

printIt(AnIncome);

return 0;

}

Attached is the image for a flow chat for the program

You might be interested in
Your mom wants to purchase a computer. She has heard about how the Windows 8 operating system is best-geared for a touch-enabled
beks73 [17]

I can recommend a two-in-one laptop/tablet computer like a Microsoft Surface Pro. This part tablet, part Windows PC, covers tablets that turn into PCs with a detachable keyboard and touchscreen laptops that turn into tablets. In recent years, they have been rising in popularity and are quite good in terms of performance and speed. They come with Windows 8 and now Windows 10. Its architecture and make is appealing for media consumption.

3 0
3 years ago
Why did LISD had to block the game “among us”?
frosja888 [35]
Lewisville Independent School District blocked the following program: Among Us because the game was a distraction to online education. Normally, school districts disable/block games that students play to make sure they are not just playing games and that they are paying attention during class.
3 0
3 years ago
Read 2 more answers
What answer best explains why improper netiquette is considered dangerous? Individuals who violate user policies are often charg
adell [148]

Answer:

Students become vulnerable to cyberbullying and harassment.

Explanation:

3 0
3 years ago
Read 2 more answers
Each object that is created from a class is called a(n) ____________ of the class.
gladu [14]
Instance





-------------------------
7 0
3 years ago
Read 2 more answers
A(n) _____ is the highest educational degree available at a community college. master bachelor associate specialist
baherus [9]
<span>An associate's degree requires two years of academic study and is the highest degree available at a community college</span>
5 0
4 years ago
Read 2 more answers
Other questions:
  • What aspect do you need to keep in mind when you add images in a word document?
    11·2 answers
  • if you're using the paintbrush tool and want to change the color of the paint being used what should you change
    9·2 answers
  • Give the Division Hashing function and the index it maps the key 2000 into, assuming a primary storage area array size of 61 ele
    6·1 answer
  • Over the past few years a very definite need has arisen in the electrical trades for:
    15·1 answer
  • Should the federal government have bug bounty programs? Why or why not?
    9·2 answers
  • <br> Help me please I need the correct answe
    10·1 answer
  • Where would you go to access frequently used icons?
    12·2 answers
  • In 1980, IBM's cheapest computer was more affordable than Apple's.<br><br><br> True<br><br> False
    10·1 answer
  • What is a closed system?​
    7·1 answer
  • When must an Assured Equipment Grounding Conductor Program (AEGCP) be in place?
    13·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!