Question: Please help me with this C program: I need these two programs to be combined to transpose a txt file. C code rules such as

Please help me with this C program: I need these two programs to be combined to transpose a txt file.

C code rules such as variables can only be declared at the top of functions and the file and please use #include, #include, #include

Please do not use cin or count statements and make the program simple and easy to read.

Please help me with this C program: I need these two programs

to be combined to transpose a txt file. C code rules such

as variables can only be declared at the top of functions and

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

the file and please use #include, #include, #include Please do not use

I need these two programs to be combined to transpose a txt file.

C code rules such as variables can only be declared at the top of functions and the file and please use #include, #include, #include

Please do not use cin or count statements and make the program simple and easy to read.

#include #include #include void main(void) char string [80] = "test"; int place = @; printf("This program prints your input downward. In "); printf("Type in a phrase to print down: "); gets(string); printf("You entered in %s in and downward is ", string); while(string[place] != '\0') printf("%c ", string[place]); place =place+1; #include #include #include void main(void) FILE *names, *trans; char astring[81]; printf("This program reads from names.txt and writes to trans.txt. "); in = fopen("names.txt","r"); out = fopen("trans.txt", "w"); fgets(astring, 80, in); printf("The text from in.txt is In %s ", astring); fprintf(out, "The next from in.txt is In %5 ", astring); fclose(in); fclose(out); 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 a oe re i 01 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

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!