Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Write a small program that continues to concatenate words together until the user decides to quit. Declare 4-character arravs Declare a character for the a

image text in transcribed

Write a small program that continues to concatenate words together until the user decides to quit. Declare 4-character arravs Declare a character for the a to quit 1, Greet the user 2. use strcpy to initialize the character arrays to "" (empty string/ no space) 3. Ask and get 2 words from the user (use a function for this) 4. use strcpy to create copies of the words 5. Combine 2 of the words into one word by using strcat 6. Combine the same 2 words into one word (in the other order) by using strcat (use the copied words) 7, print the 2 new words onto the screen 8. ask the user if they want to enter another 2 words (Q to quit) if y loop back to number 2 9. say goodbye to the user SAMPLE OUTPUT Welcome, you will enter two words and they will be joined together to form 2 different new words Enter a word: skate Enter a word board The new words are skateboard and boardskate Would you like to enter 2 new words (Q to quit, anything else to continue) y Enter a word: up Enter a word: town The new words are uptown and townup Would you like to enter 2 new words (Q to quit, anything else to continue) q Goodbye! Press any key to continue

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

Filing And Computer Database Projects

Authors: Jeffrey Stewart

2nd Edition

007822781X, 9780078227813

More Books

Students also viewed these Databases questions

Question

Why We Form Relationships Managing Relationship Dynamics?

Answered: 1 week ago

Question

What is Change Control and how does it operate?

Answered: 1 week ago

Question

How do Data Requirements relate to Functional Requirements?

Answered: 1 week ago