Question: Code in C language please. Central Authemx(MECE225.003 La nh ECE225.003:L x CS 100 (114 umx howto scree webdav/pid-3066393-dt-content-rid-25905891-1/courses/47647201740/Project%203.pdf Project Overview: This project takes a stream
Code in C language please. Central Authemx(MECE225.003 La nh ECE225.003:L x CS 100 (114 umx howto scree webdav/pid-3066393-dt-content-rid-25905891-1/courses/47647201740/Project%203.pdf Project Overview: This project takes a stream of text (strings) and formats the text into a set of lines with a pecific width. However, rather than just do the standard left-justified text that you see in this paragraph, we take the approach used by Lconardo Di Vinci and generate a "mirror" output of the text. That is, we print the text fron right-to-left rather than left-to-right. The program prompts the user for the length of an output line. The program then uses this as the width of all output lines. We right justify each line, as this is a true mirror of a standard left- justified paragraph. We cannot do a true mirror of the text, as we do not have the ability to change the direction of our letters. We cannot gencrate 9 instead of e (and so on). So we will just print the text out backwards. As an example, consider the input: The quick brown fox jumps over the lazy old dog. This text, witten backwards, is .god dlo yzal eht revo spmuj xof nworb keiuq ehT Two sample executions of the program are shown below. The bottom row (black numbers) is added to show you there are that many columns, you do not have to generate that line of numbers as part of your output. Note that all lines are right-justified. /a.out Enter the output line length: 25 /a.out Enter the output line length: 10 Enter your text (control-d to exit) Enter your text (control-d to exit) The quick brown fox jumps over the The quick brown fox jumps over the lazy old dog. control-d> lazy old dog Ccontrol-d> spmuj xof nworb kciuq ehT kciuq eh xof nworb god dlo yzal eht revo revo spmu yzal eht god dlo 1234567890 1234567890123456789012345 Two quick commenton this program: than tha: suc nf the 1 irst, you will never have a case where a sangle wurd (stniu: ..f test) in the input is kngcr ourput line specifiel by the user The r ut Second, the lb ngest output ine that a wser can specits s Tisi charactere m length that can he specitisd is 1u characters ins length What You Need To Do width
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
