Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Solve it please, c++ Here is the data in the input files. courses.txt Calculus II Principles and Methods of Intrusion Detection and Prevention English Literature

image text in transcribed

Solve it please, c++

Here is the data in the input files.

courses.txt

Calculus II Principles and Methods of Intrusion Detection and Prevention English Literature Molecular Biology Lab

square.txt

96 26 31 81 41 71 66 56 61 51 46 76 36 86 91 21
2D Array Lab-10/17/2018 spacing) which are used when studying C++ arrays. Find as many as you can and make a list of them. Introduction: The 21 20 table shown below contains "hidden" words or phrases (without Lab Directions: Given an input file containing the rows of letters for the table below, and a sccond input file indicating which letters form hidden words or phrases, output the table with only the hidden words showing. Then complete your list of the words and phrases, and tell how each relates to array processing. Lab Details: The input files are available on Blackboard, in Assignments & Tests (last entry). The file array Words.txt" has the letters, row by row; there are 21 rows, and each has 20 characters. Use a 2-dimensional char array to hold this data; be sure to declare it with room for the null character at the end ofeach row. (See directions for 2D Array Lab #4 from class on l O/15.) Use-get for C- string input as you read each row from the input file into yourWordsArrayNameli] for i ranging from 0 to 21. Remember to bypass the newline character that is on the end of every input file line (since .get doesn't remove it). The second input file, "showCodes.txt", contains integers; it is designed to be parallel to the first array so there are 21 rows, each with 20 values. If showCodes[illi] is 1, the corresponding letter in the first array is to be output; if showCodes[i)Li] is 0, output a space instead. rocessing: Note: you can declare two ifstream variables, one for each file. Or, you can get out from the first file, close it, then open the second file and read from it. duce, in an output file, the 21 x 20 table showing only the letters that have a value of 1 in r position in the showCodes array. These are the "hidden" words or phrases. In: Your program source code (.epp file) and your output file; the list of words and es (hand written or in Word) with an explanation of how each relates to array sing

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

Lab Manual For Database Development

Authors: Rachelle Reese

1st Custom Edition

1256741736, 978-1256741732

More Books

Students also viewed these Databases questions