I need help writing this program Please use the language C T

I need help writing this program. Please use the language C.

The world operates from left to right. When reading and writing, everything flows from left to-right, anti top-to-bottom, on a page. However, it does not have to be that way. This program takes a file of text and prints the file from right to-left (rather than the normal left to right). This is a form of mirror writing (think Leonardo da Vinci). We\'ll still go from top-to-bottom with the output, but each line is now written right to-left. The name of the input text file, as well as a formatting code for the output, is given on the command line. The best way to understand this project is by looking at a few examples. The bottom row of the table, the green numbers, is simply to help identify column spacing in the output. All input for this program is given on the command line. If the user does not specify the correct number of command line arguments, print an error message and exit. The two command line arguments will always be in the order shown above-input file name and format code. If the input file does not exist, or the output column width is not a positive integer, or the justification is not one of left or right or center, then print an error message and exit the program. The format code is a single capital letter (L or C or R) followed by an integer representing the width of the lines. If a C is specified and the number of spaces to add to the line is an odd number, you can insert the additional space either before or after the text. For example, if you had a line length of 20 and 17 actual characters of text, then you could have 2 spaces before anti 1 after or 1 space before anti 2 after. The specified output column width will always be at least as large as the longest word in the input file. For this program, you are reading from an input file-read one token/word/string at a time. If the token that you just mail fits on the current output line, add it to the output line. If it does not fit (the output line would be too long), then print the existing output line and add the token as the first word on your next line of output.

Solution

#include<stdio.h>

#include<stdlib.h>

I need help writing this program. Please use the language C. The world operates from left to right. When reading and writing, everything flows from left to-righ

Get Help Now

Submit a Take Down Notice

Tutor
Tutor: Dr Jack
Most rated tutor on our site