Answered step by step
Verified Expert Solution
Link Copied!

Question

00
1 Approved Answer

Answer the following questions 1. Write a program in c to take a long string from user and count the number of words and characters

Answer the following questions 1. Write a program in c to take a long string from user and count the number of words and characters in C (5) Ref. Word count algorithm, character count algorithm(for help) 2. Write a program in C to store 20 constant strings as English words, and 20 strings as synonyms / similar meaning, Display all English words on screen and ask from user which word's meaning he wants to see? Display the one (1) synonym for each word which asked by the user on a separate line using graphics (5) e.g ENGLISH WORDS1. HELP 2. SUPPORT3. DISMAL4. ABHORANCE5. ADORABLE6. MARGINAL7. CREATIVE8. RUSTY9. SHY10. ABIDE11. ABODE12. ABSOLUTE 13. ABNORMAL14. POLARITY115. EXPLORE16. VERGINE17. GENETIC18. RESPIRATION19. COLONY20. COMMUNITY Enter word to see the meaning : HELP Synonym of HELP is: Ameliorate You want to see another word (Y/N) : Y If user press Y then continue the program for asking another word , otherwise exit the program 1. Graphics, show data in table and convert user input into upper case / capital letters, does not matter if user inputs in capital or small 2. Do not display all synonyms on screen, except the word asked by the user. 3. You can change the collection of words according to your convenience but words should be ethical and displayable. 4. The words should be with its specific numbers displayed on screen in table, check if user inputted wrong number to ask, display a message that wrong choice, enter the choice again for looing the synonym:

image text in transcribed

Assignment_No_2(PF-2020-ALL) ASSIGNMENT No.2 Answer the following questions 1. Write a program in c to take a long string from user and count the number of words and characters in C (5) Ref. Word count algorithm, character count algorithm(for help) 2. Write a program in C to store 20 constant strings as English words, and 20 strings as synonyms / similar meaning, Display all English words on screen and ask from user which word's meaning he wants to see? Display the one (1) synonym for each word which asked by the user on a separate line using graphics (5)

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access with AI-Powered Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions