Question: 5.CS110 Programming In C (Practice #5) Topics Covered Two-Dimensional Array End of File For, While, If, Else, statements 1) For this assignment, the user will

5.CS110 Programming In C (Practice #5)

Topics Covered

Two-Dimensional Array

End of File

For, While, If, Else, statements

1) For this assignment, the user will read in a text file that will contain the following:

Textfile.txt

ABBA

QQQQQQQQQQ

QQQQQQQQQQ

XXXXXXXXXXXXX

XXXXXXXXXXXXX

2) When reading the Textfile.txt the program should read content until end of file, which will put the first four characters into a two-dimensional table that will be printed out at the end and will put the remaing charachters after into a seperate array that will also be printed at the end of the program. Use get/put char when handling end of file. Be sure to use seperate methods for each function:

Main Method will call functions:

-dataCollected

-printTable

-printExtraData

Data Collected will contain the data that was read from textfile.txt, still printing the original 4 charachters read and Extra Data collected. However, the first 4 charachters that will be placed into a 2D array and the remaining data will be stored in a seperate array that will be sent to a function called printExtraData.

Print Table will take in the array that was collected from "dataCollected" when reading the first 4 charachters from the file put it into a two-dimensional table and will be printed out.

Print Extra Data will take in the remaining data that wasn't stored into the two-dimensional array and will do a simple print statment showing the remaing content.

5.CS110 Programming In C (Practice #5) Topics Covered Two-Dimensional Array End of

CS110terrinal:$ ./Practice5

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!