Question: Your program will allow Crossword objects to be created from . tex files that you can assume are stored in the working directory, and whose

Your program will allow Crossword objects to be created from .tex files that you can assume are stored
in the working directory, and whose contents satisfy all conditions spelled out in Section 2.1. Making
use of the .tex files empty_grid_1.tex, empty_grid_2.tex, empty_grid_3.tex, partial_grid_1.tex,
partial_grid_2.tex and partial_grid_3.tex, having for associated .pdf files empty_grid_1.pdf,
empty_grid_2.pdf, empty_grid_3.pdf, partial_grid_1.pdf, partial_grid_2.pdf and partial_grid_3.pdf,
here is a possible interaction.
Passing as argument to print() a denotation of a Crossword object results in an output of the kind
A grid of width _ and height _, with _ black case[s], filled with _ letter[s],
with _ complete vertical word[s] and _ complete horizontal word[s].
where
the first occurrence of _ is a number that represents the horizontal dimension of the grid,the second occurrence of _ is a number that represents the vertical dimension of the grid,
the third occurrence of _ is no,1 or a number at least equal to 2 that represents the number n of
black cases in the grid (of course it is case if n =1 and cases otherwise),
the fourth occurrence of _ is no,1 or a number at least equal to 2 that represents the number n of
letters alredy placed in the grid (of course it is letter if n =1 and letters otherwise),
the fifth occurrence of _ is no,1 or a number at least equal to 2 that represents the number n of
vertical words in the grid (of course it is word if n =1 and words otherwise), and
the sixth occurrence of _ is no,1 or a number at least equal to 2 that represents the number n of
horizontal words in the grid (of course it is word if n =1 and words otherwise).I just want to know the basic locgic about this question

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!