السلام عليكم ورحمة الله,
مر عليكم هالسؤال.....واذا ما مر يقدر أحد يساعدنا فيه....
(Word Processing) One important function in word-processing systems is type justification—the alignment of words to
both the left and right margins of a page. This generates a professional-looking document that gives the appearance of being set in
type rather than prepared on a typewriter. Type justification can be accomplished on computer systems by inserting blank characters
between each of the words in a line so that the rightmost word aligns with the right margin.
Write a program that reads several lines of text and prints this text in type-justified format. Assume that the text is to be
printed on 8-1/2-inch-wide paper, and that one-inch margins are to be allowed on both the left and right sides of the printed page.
Assume that the com