Answer:
The program in C is as follows:
#include <stdio.h>
#include <stdlib.h>
#include <time.h>
int main(){
int dice [1000];
int count [6]={0};
srand(time(0));
for (int i = 0; i < 1000; i++) {
dice[i] = (rand() %(6)) + 1;
count[dice[i]-1]++;
}
for (int i = 0; i < 6; i++) {
printf("%d %s %d %s",(i+1)," occurs ",count[i]," times");
printf("\n");
}
return 0;
}
Explanation:
This declares an array that hold each outcome
int dice [1000];
This declares an array that holds the count of each outcome
int count [6]={0};
This lets the program generate different random numbers
srand(time(0));
This loop is repeated 1000 times
for (int i = 0; i < 1000; i++) {
This generates an outcome between 1 and 6 (inclusive)
dice[i] = (rand() %(6)) + 1;
This counts the occurrence of each outcome
count[dice[i]-1]++; }
The following prints the occurrence of each outcome
for (int i = 0; i < 6; i++) {
printf("%d %s %d %s",(i+1)," occurs ",count[i]," times");
printf("\n"); }
Answer:
B) prompt
Explanation:
Prompt tells a user that it's ready to receive commands by displaying a specific set of characters.
For example in <em>windows</em> it can be:
C:\Temp>, The prompt states that user is currently in <em>C </em>drive <em>Temp</em> directory.
in <em>Linux </em>based operating systems it can be:
[email protected]:~/Documents$
where it is in the format [email protected]:~directory$
I don’t know if I am right but I think it d am i right
Answer:
customer satisfaction
Explanation:
The consumer electronics company started a new training program for the consumer service employees as the company found that the consumer service employees were following the same strategy to address all types of consumer issues due to which they were not able to communicate with consumers properly.
This leads to improvement in service ratings and sales.
In this scenario, the consumer service team improved <u>customer satisfaction</u>
Ok what ur email will be the forecast answer