Answer:
If each number occupies a byte on the output stream, then its size is 25 ... makes sense to use it in cases were the input data consists of integers n with ... the compression ratio is 9/2=4.5 (the compressed stream is 4.5 times longer than the.
Explanation:
Answer:
see explaination
Explanation:
#include<iostream>
using namespace std;
#define MAXDAS 100
int main()
{
//int MAXADS = 100;
int adcatcode[MAXDAS];
int adwords[MAXDAS];
int curCode;
int numads;
int i,j,k;
int subtotal;
int temp;
cout<<"Please enter the number of ads: ";
cin>>numads;
if((numads > 0) and (numads <= MAXDAS))
{
for (i = 0;i<numads;i++)
{
cout<<"Please enter Advertisement Category Code (1 - 15): ";
cin>>adcatcode[i];
cout<<"Please enter number of words for the advertisement: ";
cin>>adwords[i];
}
for (i=0;i<numads-1;i++)
{
for (j = 0;j<numads-1;j++)
{
if (adcatcode[j] > adcatcode[j+1])
{
temp = adcatcode[j];
adcatcode[j] = adcatcode[j+1];
adcatcode[j+1] = temp;
temp = adwords[j];
adwords[j] = adwords[j+1];
adwords[j+1] = temp;
}
}
}
cout<<"Total Word Counts Sorted By Category Code"<<endl;
cout<<"========================================="<<endl;
k = 0;
while(k<=numads-1)
{
subtotal = 0;
curCode = adcatcode[k];
while ( (curCode == adcatcode[k])&& (k <= numads - 1) )
{
subtotal = subtotal + adwords[k];
k = k + 1;
}
cout<<"Category: "<<adcatcode[k - 1]<<" "<<"Word Count: "<<subtotal<<endl;
}
}
else
{
cout<<"Number adds requested less than 1 or is too large; ad limit is :"<<MAXDAS;
}
return 0;
}
See attachment for output
Answer:
I. hatching
II. filter
Explanation:
Sarah is creating an image. She wants to achieve tonal effects with parallel lines by varying their densities and distribution patterns. She will use <u>hatching</u> to do this. She also wants to add special effects on the image. Therefore, she will use <u>filters</u>.
Hatching refers to an art technique in which parallel lines are used to shade by drawing them closely together.
Stippling is an art technique used in the making of patterns by using small dots.
Filters is a technique of changing image characteristics. It is used to change the picture characteristics & to add special effects to an image such as the shade, contrast, tone, brightness etc.
We therefore see that, <u>hatching</u> and <u>filter</u> are the correct answers respectively