Answer:
C code
Explanation:
#include <stdio.h>
void histrogram(int counters[])
{
int i,j;
int count;
for(i=0;i<26;i++)
{
count=counters[i];
printf("%c ",i+97);
for(j=0;j<count;j++)
{
printf("="); //= is used
}
printf("\n");
}
}
int main()
{
FILE* fp;
int i;
int arr[26];
char c;
int val;
// Open the file
fp = fopen("story.txt", "r");
if (fp == NULL) {
printf("Could not open file ");
return 0;
}
else
{
for(i=0;i<26;i++)
arr[i]=0;
for (c = getc(fp); c != EOF; c = getc(fp))
{
if(c>='a' && c<='z')
{
val = c-97;
//printf("%d ",val);
arr[val]++;
}
}
histrogram(arr);
}
}
Answer: A) Modular decomposition
Explanation: Modular decomposition is the composition of a graphs into small modules. These modules are the subset of the whole graphs and thus the part of the graph. These modules are these very design efficient and so they are not capable of handling the exceptions .They have precise representation which has modules which cannot seem to have exception because that will disturb the structure of the graph .
Solution :
'AND" operation is a logical operation and is used in logical connective combining two statements and in truth tables.
Using AND operation verifies whether the outcome P and Q is true only when both the P as well as Q are true. If one of the P or Q is not true, then outcome result will be false.
In the context, Kamal wishes to offer a new and more favorable contracts to the business customers who use a wireless services and receive a discount.
Therefore, using the AND operation of the customers as :
Customer Wireless Discount Outcome
A N N FALSE
B Y N FALSE
C N Y FALSE
D Y Y TRUE
Answer:
Following is given the solution to question I hope it will make the concept easier!
Explanation:
Answer: Direct competitive
Explanation:
The direct competitive situation occur when the two and more than two business in the market offering the similar type of services and the products so it automatically increase the level of competition in the market.
According to the question, the internet service is one of the most efficient tool for influence the customers or consumers about their products in the market and when the services are get switched then it utilize the direct competitive in the market.
Therefore, direct competitive is the correct option.