Hi, im a total newbie in c programming. i got this assignment and dont know how to do it. if anybody could help it would be greatly appreciated.
Code:
char commonWords[13][50] =
{ "It was Thursday.",
"We were looking forward to Friday and the weekend",
"that follows. The wind continued to blow from",
"Sumatra and the air pollution index, API, went up",
"and up. In the afternoon the ministry announced",
"that all schools be closed for the rest of the",
"day as well as Friday. Cancellation of classes",
"has always been the best thing that can ever",
"happen to students and lecturers. On this day,",
"the API told us that it would take a fool to be",
"happy at all. Friday evening, a horrifying sight",
"hit me. Our beautiful pools had turned brownish",
"green."
};
given the code i need to convert them into a 1-dimensional array of single-worded strings at the start of program execution. then generate a random number within the appropriate range and uses that number as the index to the word to be displayed. The word is to be displayed with its letters in reverse order.
example of output :
Code:
Display words at random
--------------------------
Random number: 5
Word at that index: olleh
Please help thank you !!