Question: Help in C++ In this project, you will design a simple word processor. Your word processor will take a line of input and align it
Help in C++
In this project, you will design a simple word processor. Your word processor will take a line of input and align it left, right, or centered. It will also report word count and average word length.
To have an idea of what the end result will be, an example execution is shown below. The first four lines are prompts for input, the other lines are outputs of the program:
Input: CS
Column width: 4
Alignment: center
Autocorrect: no
----
CS Words: 1
Avg word length: 2.000000
All input will be less than 1000 characters. You can also assume all inputs are valid, except for column width, which may be an invalid value that you will detect.
More details are discussed in the following sections.
Alignment
The text to align is entered via the Input: prompt. Then the user will select a column width with the Column width: prompt and a text alignment via the Alignment: prompt.
The user will enter a column width, and you will align the text within this column.
The column width will be detected based on the number the user inputs
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
