we have two more features that Microhard asked us to implement in the last minute and they are Double Space and Fill As all of our previous settings, they will be included in the first line of the input.txt file where it will look something like this: 60;right;left;true;true;output.txt;. Both these settings are boolean values which will indicate weather a document uses fill / double space. The first boolean statement within the line will indicate weather the document contains the fill settings or not, the second is for double spaced. By fill we mean filling up a line in the output before moving onto the next. For example, lets say the max width is 10 and the current line already has 5 characters. The next word that we are trying to fit is 10 characters long, we can only fit 3 characters of that word before moving the rest into the next line. ` Based on the given example, this line: Willy Strawberry Would become: Willy Str- berry - Double spaced means that between each line there should be an extra empty line. The crux is that for titles, there should also be an extra empty line before it as well so as to space it out
Now we have two more features that Microhard asked us to implement in the last minute and they are Double Space and Fill
As all of our previous settings, they will be included in the first line of the input.txt file where it will look something like this: 60;right;left;true;true;output.txt;. Both these settings are boolean values which will indicate weather a document uses fill / double space. The first boolean statement within the line will indicate weather the document contains the fill settings or not, the second is for double spaced.
- By fill we mean filling up a line in the output before moving onto the next. For example, lets say the max width is 10 and the current line already has 5 characters. The next word that we are trying to fit is 10 characters long, we can only fit 3 characters of that word before moving the rest into the next line. ` Based on the given example, this line: Willy Strawberry
Would become: Willy Str- berry
60;;center;true;true;output.txt; WHAT IS LOREM IPSUM? Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry’s standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book.
Speaking of books, I love books. I read and write, sometimes at the same time because why not! Why should I be limited by my measily brain and only do one task at a time? Exactly.
TITLE 2 Well, thank you for listening. I appreciate you all :)
Lorem Ipsum is simply dummy text of the printing and types-
etting industry. Lorem Ipsum has been the industry’s stand-
ard dummy text ever since the 1500s, when an unknown print-
er took a galley of type and scrambled it to make a type s-
pecimen book.
Speaking of books, I love books. I read and write, sometim-
es at the same time because why not! Why should I be limit-
ed by my measily brain and only do one task at a time? Exa-
ctly.
Well, thank you for listening. I appreciate you all :)
IT SHOULD OUTPUT THE SAME AS THE PICTURE ABOVE. please help me:(
Trending now
This is a popular solution!
Step by step
Solved in 5 steps with 2 images