Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Text justification is spacing of the text block so that both right and left side of the text have a straight edge. This is accomplished

Text justification is spacing of the text block so that both right and left side of the text have a straight edge. This is accomplished by adding spaces so that every line is exactly the same length. You are to implement simplified justification rules as follows. Every line should be exactly 90 characters long (keep this value in a named constant). To get to this line length, extra space is first added after punctuation marks. You need to consider only these marks: .,!?; That is, every punctuation mark may be followed by two spaces unless it is the last character in the line. If the spaces after punctuation marks are added and the line is still less than 90 characters, additional spaces are added after random words in the line. There is no need to ensure that the extra spaces are spread uniformly. Randomization is sufficient. A line that is shorter than 40 characters is considered the end of a paragraph is not justified. Hyphenation (breaking up of words) between lines is not required.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions

Question

x = 1 y = ( 2 * ( x + 2 ) ) + 4 print ( x , y )

Answered: 1 week ago

Question

How to find if any no. is divisble by 4 or not ?

Answered: 1 week ago

Question

Explain the Pascals Law ?

Answered: 1 week ago