Define Crtsecurenowarnings Windows Os Include Include Define Size 16 Char Words Size Amazi Q37145362

#define _CRT_SECURE_NO_WARNINGS //for windows os only
#include <stdio.h>
#include <string.h>
#define SIZE 16

char *words[SIZE] = { “AMAZING”, “ACHIEVEMENT”, “LEARNING”,”ACCOMPLISHMENT”,
“LIVING”, “ACHIEVING”, “CREATING”,”COLLABORATING”, “LIFE”,”MOTIVATED”, “DRIVEN”,
“STUDY”, “FORMATTED”, “LEARNED”, “CODING”, “SHOPPING”};

int endsInED(char *toCheck);

int main()
{
   for (int i = 0; i<SIZE; i++)
   {
       if (endsInED(words[i]) == 1)
           printf(“%sn”,words[i]);
   }

   system(“pause”);
   return 0;
}
  

This is an extension to the class lab practice 8b.

char *words[SIZE] = { “AMAZING”, “ACHIEVEMENT”, “LEARNING”,”ACCOMPLISHMENT”,
“LIVING”, “ACHIEVING”, “CREATING”,”COLLABORATING”, “LIFE”,”MOTIVATED”, “DRIVEN”,
“STUDY”, “FORMATTED”, “LEARNED”, “CODING”, “SHOPPING”};

The task is to extract only the words that end in ‘ING’ and aregreater than six characters. Print those words to the screen.

Total Points (24 points)

Grading Criteria:

1.) Define variables and use

OR
OR

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.