Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

<p>1-&#160;&#160;&#160;&#160;&#160; a.write program claculate 10 score sum,avera

ID: 3626624 • Letter: #

Question

<p>1-&#160;&#160;&#160;&#160;&#160; a.write program claculate 10 score sum,average and lowest.</p>
<p>b. write program show this matrix</p>
<p>2&#160;&#160;&#160;&#160; 1&#160;&#160;&#160;&#160;&#160;&#160;&#160; +&#160;&#160; 3&#160;&#160;&#160;&#160;1&#160; =&#160; 5&#160;&#160; 2</p>
<p>6&#160;&#160;&#160;&#160; 9&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; 2&#160;&#160;&#160;&#160; 0&#160;&#160;&#160;&#160;&#160;8&#160;&#160;&#160; 9</p>
<p>&#160;</p>

Explanation / Answer

#include<stdio.h>
int main()
{
int scores[10]={1,2,3,4,5,6,7,8,9,10};
int sum=0,i,min;
double avg;
for(i=0; i<10; i++)
sum = sum+scores[i];
avg = (double) sum/10.0;
min = scores[0];
for(i=1; i<10; i++)
{
if(scores[i]<min)
min = scores[i];
}

printf("sum of scores is %d " , sum);
printf("Average of scores is %f " , avg);
printf("lowest of scores is %d " , min);
return 0;
}

#include<stdio.h>

int main()
{
printf("2     1       +   3    1 = 5   2");
printf(" 6     9           2    0     8   9");
return 0;
}

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote