Answered Essay: The objective of this assignment is to modify the C program from the text so that it outputs the number of A's, B's, C's, D's and F's. An A grade is any score tha

The objective of this assignment is to modify the C program from the text so that it outputs the number of As, Bs, Cs, Ds and Fs. An A grade is any score that is at least 20% greater than the average. The B grade is any score that is not an A, but is at least 10% greater than the average. An F grade is any score that is at least 20% less than the average. The D grade is any score that is not an F, but is at least 10% less than the average. Any scores that are within 10% of the average (either less than or greater than) are Cs. granuicis on The following is an example of a C program: /C Example Program Input: An integer, listlen, where listlen is less than 100, followed by listlen-integer values Output: The number of input values that are greater than the average of all input values */ int main ) int intlist [99, listlen, counter, sum, average, result; sum 0; result = 0; scanf(%d, &list!en); if ((listlen 0) &&(listlen < 100)) /* Read input into an array and compute the sum / counter for (counter 0; < list!en; counter++) { scanf(%d, &intlist [counter]); sum += intlist [counter]; / Compute the average */ averagesum /listlen; k Count the input values that are > average */ for (counter = 0; counter < list!en; c unter++) if (intlisticounter] > average) result++ /* Print result / printf (Number of values > average is:%dn, result); else printf (Error-input list length is not legaln)

The objective of this assignment is to modify the C program from the text so that it outputs the number of A’s, B’s, C’s, D’s and F’s. An A grade is any score that is at least 20% greater than the average. The B grade is any score that is not an A, but is at least 10% greater than the average. An F grade is any score that is at least 20% less than the average. The D grade is any score that is not an F, but is at least 10% less than the average. Any scores that are within 10% of the average (either less than or greater than) are C’s. The following is an example of a C program: /* C Example Program Input: An integer, listlen, where listlen is less than 100, followed by listlen-integer values Output: The number of input values that are greater than the average of all input values */ int main () { int intlist[99], listlen, counter, sum, average, result: sum = 0: result = 0: scanf(“%d”, &listlen): if ((listlen > 0) && (listlen average is: %dn”, result): } else printf(“Error-input list length is not legaln”): }

Expert Answer

 

Note : Could you please check the output .If you required any changes Just intimate.I will modify it.Thank You.

_____________________

#include <stdio.h>

int main()
{
int intlist[99], listen, counter, sum, average, result;
int A = 0, B = 0, C = 0, D = 0, F = 0;
sum = 0;
result = 0;
printf(“Enter no of values :”);
scanf(“%d”, &listen);
if (listen > 0 && listen < 100)
{
for (counter = 0; counter < listen; counter++)
{
printf(“Enter the value#%d :”, (counter + 1));
scanf(“%d”, &intlist[counter]);
sum += intlist[counter];
}
// Average
average = sum / listen;

// printf(“Average : %dn”,average);

// counting no of A’s B’s C’s D’s F’s
for (counter = 0; counter < listen; counter++)
{
if (intlist[counter] > (average + average * 0.20))
{
A++;
}
else if (intlist[counter] >= (average + average * 0.10)
&& intlist[counter] < (average + (average * 0.20)))
{
B++;
}
else if (intlist[counter] <= (average – (average * 0.20)))
{
F++;
}
else if (intlist[counter] >= (average – (average * 0.10))
&& intlist[counter] <= (average + average * 0.10))
{
C++;
}
else if (intlist[counter] > (average – (average * 0.20))
&& intlist[counter] < (average – average * 0.10))
{
D++;
}
}

for (counter = 0; counter < listen; counter++)
{
if (intlist[counter] > average)
result++;
}

// Displaying the results
printf(“Number of values > average is :%dn”, result);

printf(“Number of A’s is :%dn”, A);
printf(“Number of B’s is :%dn”, B);
printf(“Number of C’s is :%dn”, C);
printf(“Number of D’s is :%dn”, D);
printf(“Number of F’s is :%dn”, F);
}
else
{
printf(“Error-input list length is not length n”);
}

return 0;
}

____________________

Output:

____________

Buy Essay
Calculate your paper price
Pages (550 words)
Approximate price: -

Help Me Write My Essay - Reasons:

Best Online Essay Writing Service

We strive to give our customers the best online essay writing experience. We Make sure essays are submitted on time and all the instructions are followed.

Our Writers are Experienced and Professional

Our essay writing service is founded on professional writers who are on stand by to help you any time.

Free Revision Fo all Essays

Sometimes you may require our writers to add on a point to make your essay as customised as possible, we will give you unlimited times to do this. And we will do it for free.

Timely Essay(s)

We understand the frustrations that comes with late essays and our writers are extra careful to not violate this term. Our support team is always engauging our writers to help you have your essay ahead of time.

Customised Essays &100% Confidential

Our Online writing Service has zero torelance for plagiarised papers. We have plagiarism checking tool that generate plagiarism reports just to make sure you are satisfied.

24/7 Customer Support

Our agents are ready to help you around the clock. Please feel free to reach out and enquire about anything.

Try it now!

Calculate the price of your order

Total price:
$0.00

How it works?

Follow these simple steps to get your paper done

Place your order

Fill in the order form and provide all details of your assignment.

Proceed with the payment

Choose the payment system that suits you most.

Receive the final file

Once your paper is ready, we will email it to you.

HOW OUR ONLINE ESSAY WRITING SERVICE WORKS

Let us write that nagging essay.

STEP 1

Submit Your Essay/Homework Instructions

By clicking on the "PLACE ORDER" button, tell us your requires. Be precise for an accurate customised essay. You may also upload any reading materials where applicable.

STEP 2

Pick A & Writer

Our ordering form will provide you with a list of writers and their feedbacks. At step 2, its time select a writer. Our online agents are on stand by to help you just in case.

STEP 3

Editing (OUR PART)

At this stage, our editor will go through your essay and make sure your writer did meet all the instructions.

STEP 4

Receive your Paper

After Editing, your paper will be sent to you via email.