Answer:
#include <stdio.h>
int main()
{
int val, total = 0, count = 0;
float average = 0;
printf ("Enter in a list of numbers followed by the terminal value of -999\n");
scanf ("%d", &val);
while (val != -999){
if(val != -999){
total += val;
count++;
}
scanf("%d", &val);
}
average = (float)total / count;
printf ("For the list of %d numbers with a total of %d\n", count, total);
printf (" the average is: %15.5f\n", average);
return 0;
}
Explanation:
Declare the total, count and average variables
In the while loop:
Add the entered number to the total and increment the count by 1 unless it is -999
Calculate average, divide total by count (Typecast the total as float to get decimal result)
Answer:
b- Cited,then refuted
Explanation:
Citation enhances persuasion of information sources.
Refutation means understanding the viewpoint of the opposition and then countering it by providing respective evidence or by finding mistakes in the logic of the opposition's argument.
Answer:
The answer is the Apple Macintosh
Explanation:
The Apple Macintosh PC was the first widely sold and most popular PC with a GUI. It was based on its earlier predecessor called the Apple Lisa which was later killed by the Apple Macintosh OS. Prior to the Apple Macintosh was the Xerox PARC which was the first PC to support an OS that was based on GUI. However, the Xerox was not a popular commercial product and was intended for University research only