Question

There are 5 senior marketing directors at Acme Anvils. Each is given an annual quota which...

There are 5 senior marketing directors at Acme Anvils. Each is given an annual quota which is the amount of business they are expected to generate that year. Develop a program that prompts the company president to enter the quota for each director and the actual sales generated by each director. After all the data is entered, the program should produce a chart that displays one row for each director. The first number in the row will be the director's quota and the second number in the row will be his actual sales. IF the director's sales exceed his quota, add a third column that represents his bonus. The bonus is 10% of the amount by which the sales exceed the quota. If the director fails to meet his quota, leave the 3rd column blank.

Your solution MUST include 2 arrays: one array for the quotas and a second array for actual sales. (This is Programming in C)

0 0
Add a comment Improve this question Transcribed image text
Answer #1

`Hey,

Note: Brother in case of any queries, just comment in box I would be very happy to assist all your queries

#include <stdio.h>

#include <stdlib.h>
int main()
{
double quota[5];
double sales[5];
int i;
for(i=0;i<5;i++)
{
printf("Enter quota for %d director\n",i+1);
scanf("%lf",&quota[i]);
printf("Enter sales for %d director\n",i+1);
scanf("%lf",&sales[i]);

}
for(i=0;i<5;i++)
{
printf("Quota: %f\tSales: %f\t",quota[i],sales[i]);
if(quota[i]<sales[i])
{

printf("Bonus: %f\n",(sales[i]-quota[i])*0.1);
}
else
{
printf("\n");
}

}

}

Kindly revert for any queries

Thanks.

Add a comment
Know the answer?
Add Answer to:
There are 5 senior marketing directors at Acme Anvils. Each is given an annual quota which...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • Lab Objectives Be able to write methods Be able to call methods Be able to declare...

    Lab Objectives Be able to write methods Be able to call methods Be able to declare arrays Be able to fill an array using a loop Be able to access and process data in an array Introduction Methods are commonly used to break a problem down into small manageable pieces. A large task can be broken down into smaller tasks (methods) that contain the details of how to complete that small task. The larger problem is then solved by implementing...

  • write a code on .C file Problem Write a C program to implement a banking application...

    write a code on .C file Problem Write a C program to implement a banking application system. The program design must use a main and the below functions only. The program should use the below three text files that contain a set of lines. Sample data of these files are provided with the assessment. Note that you cannot use the library string.h to manipulate string variables. For the file operations and manipulations, you can use only the following functions: fopen(),...

  • SYNOPSIS The product manager for coffee development at Kraft Canada must decide whether to introduce the...

    SYNOPSIS The product manager for coffee development at Kraft Canada must decide whether to introduce the company's new line of single-serve coffee pods or to await results from the product's launch in the United States. Key strategic decisions include choosing the target market to focus on and determining the value proposition to emphasize. Important questions are also raised in regard to how the new product should be branded, the flavors to offer, whether Kraft should use traditional distribution channels or...

  • CASE 20 Enron: Not Accounting for the Future* INTRODUCTION Once upon a time, there was a...

    CASE 20 Enron: Not Accounting for the Future* INTRODUCTION Once upon a time, there was a gleaming office tower in Houston, Texas. In front of that gleaming tower was a giant "E" slowly revolving, flashing in the hot Texas sun. But in 2001, the Enron Corporation, which once ranked among the top Fortune 500 companies, would collapse under a mountain of debt that had been concealed through a complex scheme of off-balance-sheet partnerships. Forced to declare bankruptcy, the energy firm...

  • Case: Enron: Questionable Accounting Leads to CollapseIntroductionOnce upon a time, there was a gleaming...

    Case: Enron: Questionable Accounting Leads to CollapseIntroductionOnce upon a time, there was a gleaming office tower in Houston, Texas. In front of that gleaming tower was a giant “E,” slowly revolving, flashing in the hot Texas sun. But in 2001, the Enron Corporation, which once ranked among the top Fortune 500 companies, would collapse under a mountain of debt that had been concealed through a complex scheme of off-balance-sheet partnerships. Forced to declare bankruptcy, the energy firm laid off 4,000...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT