#include<stdio.h>
#include<stdlib.h>
#include<time.h>
#include<ctype.h>
char *randomizenouns(char *nouns[][10]);
char *randomizeadj(char *adjectives[][17]);
int main() // beginning of program.
{
int a=0, b=0;
char answers[5][100]={'\0'};
char *rnouns[2][10]={'\0'};
char *radjectives[2][17]={'\0'};
char *rcolors[11]={'\0'};
radjectives[0][0]="intriguing";
radjectives[0][1]="seductive";
radjectives[0][2]="long";
radjectives[0][3]="short";
radjectives[0][4]="big";
radjectives[0][5]="happy";
radjectives[0][6]="sad";
radjectives[1][0]="joyful";
radjectives[1][1]="vibrant";
radjectives[1][2]="cool";
radjectives[1][3]="wonderful";
radjectives[1][4]="quiet";
radjectives[1][5]="cramped";
radjectives[1][6]="loud";
rnouns[0][0]="puppies";
rnouns[0][1]="masks";
rnouns[0][2]="keyboards";
rnouns[0][3]="hats";
rnouns[0][4]="clocks";
rnouns[0][5]="shoes";
rnouns[0][6]="bats";
rnouns[0][7]="balls";
rnouns[0][8]="computers";
rnouns[0][9]="frisbees";
rnouns[1][0]="desks";
rnouns[1][1]="mice";
rnouns[1][2]="grapes";
rnouns[1][3]="apples";
rnouns[1][4]="cameras";
rnouns[1][5]="pens";
rnouns[1][6]="pencils";
rnouns[1][7]="hot wheels";
rnouns[1][8]="blocks";
rnouns[1][9]="people";
rcolors[0]="black";
rcolors[1]="purple";
rcolors[2]="blue";
rcolors[3]="yellow";
rcolors[4]="teal";
rcolors[5]="magenta";
rcolors[6]="seafoam green";
rcolors[7]="indigo";
rcolors[8]="gold";
rcolors[9]="silver";
rcolors[10]="orange";
srand(time(NULL));
printf("\n\tProgram Paragrahs\n");
printf("\tFor this program you will answer several questions which will then be used to conjure a random story the length of a paragraph.Please Keep your answers clean.Enjoy\n");
printf("\nWhat is your name?");
scanf("%s\n",answers[0]);
printf("\nWhat is your favorite book?");
scanf("%s",answers[1]);
printf("\nWhat is your favorite color?");
scanf("%s",answers[2]);
printf("\nWhat city do you live in?");
scanf("%s",answers[3]);
printf("\nWhat car do you drive?");
scanf("%s",answers[4]);
printf("%s gets lost in their %s %s.\n",answers[0],randomizeadj(radjectives),answers[1]);
printf("%s loves to play with %s %s.\n",answers[0],rcolors[(rand() %11)],randomizenouns(rnouns));
printf("%s lives in a(n) %s %s.\n",answers[0],randomizeadj(radjectives),answers[3]);
printf("While living in %s %s drives a(n) %s %s.\n",answers[3],answers[0],rcolors[(rand() %11)],answers[4]);
printf("%s is a(n) %s person who likes the color %s.\n",answers[0],randomizeadj(radjectives),answers[2]);
} // end of program
char *randomizenouns(char *nouns[][10])
{
int x=(rand() %3);
int y=(rand() %10);
return nouns[x][y];
}
char *randomizeadj(char *adjectives[][17])
{
int x=(rand() %2);
int y=(rand() %7);
return adjectives[x][y];
}