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]
3 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]3 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
Vivek wants to save the data about his grocery store in a single table. Which among the following type of databases is used in t
Orlov [11]

Explanation:

A centralized database (sometimes abbreviated CDB) is a database that is located, stored, and maintained in a single location.

4 0
3 years ago
Mr. Yang is a doctor who regards video games as an effective means of staying fit. What type of game would he recommend to his p
LUCKY_DIMON [66]

wii sports, just dance, etc.

Explanation:

3 0
3 years ago
1) Create a recursive program that prompts the user for a nonnegative integer N and outputs. a) Sum [N] b) BiPower [N] c) TimesF
Georgia [21]

Answer:

//Code is created using java

import java.util.*;

// returns the sum

public int sum(int N)

{

if(N==1)

return (1);

else

return N+sum(N-1);

}

// code to return the Bipower ouput

public int BiPower(int N)

{

if(N==1)

return (2);

else

return 2*BiPower(N-1);

}

// Code to return TimesFive output

public int TimesFive(int N)

{

if(N==1)

return 5;

else

return 5 + timesFive(N-1);

}

public static void main(String args[])

   {

//Prompts the user to enter a nonnegative integer

       int N  = Integer.parseInt.(console.readLine("Enter a nonnegative integer:  "));

//Outputs the sum, Bipower and TimesFive

       System.out.println(sum(n));

       System.out.println(BiPower(n));  

       System.out.println(TimesFive(n));

   }

}

4 0
3 years ago
(50 points) Write a programthat adds the first and last elements of an integer array and stored as the first element of the outp
Elena L [17]

Answer:

A is the input array

B = [] ; %B is initially an empty array

for i = 1:length(A)/2  %iterates over A until the midpoint of A

   B(i) = A(i) + A(end + 1 - i);  %This adds the numbers from the first half and %second half of A, and stores in B

end

disp(B)

3 0
3 years ago
A bare metal area surrounded by body filler after sanding indicates:
Lera25 [3.4K]

its a high spot being sanded im in auto body as well.

8 0
3 years ago
Other questions:
  • Which statement reflects inherent bias in reading and learning about our world?
    12·1 answer
  • What is credibility in the often-used framework of quality criteria?
    9·1 answer
  • Can anyone help me with getting bash ubuntu on windows setup?
    15·1 answer
  • Which of the following is an Internet supervisory protocol? O DNS IP O both A and B O neither A nor B
    12·1 answer
  • A client contacted you to request your help in researching and supplying the hardware necessary to implement a SOHO solution at
    9·1 answer
  • .In Python, comments begin with the comment marker and continue ______.
    14·1 answer
  • What are at least three tips to taking photographs of insects? Why would following the tips help create better photographs?
    10·1 answer
  • Determina la cilindrada total Vt en un motor de 4 cilindres de 83,6 mm de diàmetre per 91 mm de cursa.
    8·1 answer
  • Heyyyyyy who likes anime​
    12·2 answers
  • Which item is developed last in the cyclical process?
    5·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!