Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

Answer the following questions

1. Write a program in c to take a long string from the 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 asked by the user on a separate line using graphics (5)

e.g

ENGLISH WORDS
1. HELP 2. SUPPORT 3. DISMAL 4. ABHORANCE 5. ADORABLE 6. MARGINAL 7. CREATIVE 8. RUSTY 9. SHY 10. ABIDE
11. ABODE 12. ABSOLUTE 13. ABNORMAL 14. POLARITY1 15. EXPLORE 16. VERGINE 17. GENETIC 18. RESPIRATION 19. COLONY 20. 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:

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored 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

Recommended Textbook for

Advanced Database Systems For Integration Of Media And User Environments 98

Authors: Yahiko Kambayashi, Akifumi Makinouchi, Shunsuke Uemura, Katsumi Tanaka, Yoshifumi Masunaga

1st Edition

9810234368, 978-9810234362

More Books

Students also viewed these Databases questions