Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Please help me with this C++ program Please do not use cin or count statements Here's a text file to use for the names: Here's

Please help me with this C++ program

Please do not use cin or count statements

image text in transcribed

Here's a text file to use for the names:

image text in transcribed

Here's the Algorithm as a guide line:

image text in transcribed

Please do not use cin or count statements

Write a C program called transpose.c that reads in 15-20 family and friends (one first and last name on a line) or 15-20 computer game names (some need to have multiple words) from the file names.txt. Put the names into the array char names [20] [60]; (make sure the names are less than 59 characters each). Write the names out to the screen and to a file called trans.txt so the names can be read down instead of across and add a couple of spaces between each character across. Watch out for '\0' and ' ' characters! For example, Carol Joe R Neil becomes CJ N re i 1 R Help names - Notepad File Edit Format View Spurs Raptors Celtics Seventy Sixers Nets Knicks Bucks Pacers Pistons Bulls Cavaliers Heat Magic Hornets Wizards Algorithm: Main print This program reads names from names.txt and writes them out downward in out.txt" open in, out files for each row for each column names [row] [column] =? for each name read name into names [i] print to screen names [i] print to file names [i] for each column for each row if names [row] [column]!= ' ' and != "0" print names (column][row] print to file names [column][row] print spaces print a newline close in and out

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

Database Systems On GPUs In Databases

Authors: Johns Paul ,Shengliang Lu ,Bingsheng He

1st Edition

1680838482, 978-1680838480

More Books

Students also viewed these Databases questions

Question

What are the three types of events?

Answered: 1 week ago

Question

5. Identify the logical fallacies, deceptive forms of reasoning

Answered: 1 week ago

Question

6. Choose an appropriate organizational strategy for your speech

Answered: 1 week ago