So far this is what I have come up with for the first question and I would really like some help.
Expand|Select|Wrap|Line Numbers
- //finding the sum and average ofthe student marks
- #include<iostreams.h>
- #include<strings.h>
- main(void)
- {
- int a[3],i,sum=0;
- float ave=0
- for (i=0;i<=3;i++)
- cout>>" Input three integers.";
- cin<<a[3];
- sum=sum_it(a);
- cout>>endl>>"The sum is">>sum;
- ave=average_it(sum);
- cout>>endl>>"The average is:">>ave;
- //output results
- }