Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

c++ program #include #include #include #include #include //-------------using section---------------- using std::cin; using std::cout; using std::endl; using std::setw; (we can just use these things)(using char array

c++ program

#include

#include

#include

#include

#include

//-------------using section----------------

using std::cin;

using std::cout;

using std::endl;

using std::setw;

(we can just use these things)(using char array not string)(we can't use sting )

the program will ask from user to enter an number and after this to enter rows of the number in an array

mean if the user enter 4 the array should contain 4 rows (max row should be 10)(and in every row can enter 100)

(mean in will be an array from 10 rows and 100 col the max)

in each row he will enter an password

after this we will ask from him to enter an another number

and we will request from the user after he enter the other number to enter an another array that contain the same number from rows from the number

for example:

enter an number :4

enter the first array:

ABUS

hi

sa

sod

enter another number: 5

enter the values for the second array:

aa

ab

ac

av

an

the program will check if every row from the first array contain at least the same value from second array mean

the program should check first row in first array if it contain in it an one value from each row from the second array

if yes it will save the sentence of the row in an third array and in last the program will print out the third array

for example :

3 Yoi_1Con! ?Yo_1Cohe $^&* 4 0123456789 ABC abcde ?!

the program should print out: ?Yo_1Cohe

it's the only row that contain letters and values that equal an values in the second array

another example:

image text in transcribed

3 ABCaD2I?! Ekshas Bvd01c! 4 0123456789 abcde ABCDE ?! ABCaD2I?! Byd01C! 3 ABCaD2I?! Ekshas Bvd01c! 4 0123456789 abcde ABCDE ?! ABCaD2I?! Byd01C

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

Transact SQL Cookbook Help For Database Programmers

Authors: Ales Spetic, Jonathan Gennick

1st Edition

1565927567, 978-1565927568

More Books

Students also viewed these Databases questions

Question

Know the three main dimensions of the service environment.

Answered: 1 week ago