Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Hi, I am very new at C++ and this is a program I cant figure out. Any help would be much appreciated. Given a 10x10

Hi, I am very new at C++ and this is a program I cant figure out. Any help would be much appreciated.

Given a 10x10 array of letters, and an additional word, print out a second array with copies of the word retained, and the remainder of the letters converted to dot characters. Copies are considered to go from left to right, top to bottom, and diagonally from top left to bottom right.

Sample Program Run:

Enter a 10 x 10 array of characters:

abcdefghij

goalsfghij

obcdefghij

abcdggghij

bcdeoghij

sbcdeaahij

abcdelleij

abcdesghsj

abcdefghij

abcdefghij

Enter a word to find: goals

..........

goals.....

o.........

a...gg....

l....o....

s....aa...

.....l.l..

.....s..s.

..........

..........

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_2

Step: 3

blur-text-image_3

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

SQL Server Query Performance Tuning

Authors: Sajal Dam, Grant Fritchey

4th Edition

1430267429, 9781430267423

More Books

Students also viewed these Databases questions

Question

Describe the role of HRD practitioners in OD interventions

Answered: 1 week ago

Question

What were the issues and solutions proposed by each team?

Answered: 1 week ago

Question

Were all members comfortable brainstorming in front of each other?

Answered: 1 week ago

Question

5. What information would the team members need?

Answered: 1 week ago