Question: Your Task In this assignment, you will design and implement a word printing program for the client that allows users to input a valid word,

Your Task
In this assignment, you will design and implement a word printing program for the client that
allows users to input a valid word, then the program will print the word in a n x 5(n columns
x 5 rows) grid.
Functional Requirements
The program should be implemented in Python. The client has specified the following
requirements for the functionality of the program:
1. The program should be running without errors throughout two Phases: Information
Gathering and Information Presenting.
2. Information Gathering is to gather the information from users such as a valid word
(valid inputs: any single word only including letters C,A,T,D,O and G,
one letter can appear more than once in the word, case insensitive) and a break-word
to break the iteration (valid inputs: END, case sensitive).
3. If the user enters nothing or invalid input (e.g.,12,5.8 or abc), the program
should alert an error message by a print function and then ask the user to re-enter. The
process should iterate until a valid input is entered.
01234
0*****
1*
2*
3*
4*
01234
0****
1**
2**
3**
4****
01234
0***
1**
2**
3**
4***
01234
0****
1*
2****
3**
4****
012345678910111213141516171819
0
*************
1******
2*********
3******
4
**********
01234567891011121314
0***********
1*****
2********
3******
4***********
Figure 1: Part of valid words in n x 5 grid
4. Information Presenting is to present the outcome. Once receiving a new valid word
from users, the program should print the word in a n x 5 grid (one word each time,
01234
0****
1*
2*
3*
4****
01234
0*
1**
2*****
3**
4**
one space between different letters. For example, each letter is presented in a 5 x 5
grid. A word with three letters will be in a 15 x 5 grid as Figure 1. No extra space
between the two letters).
5. The program will continue to ask the user to enter a word until the break-word END
is entered as the input and the program stops.
6. The word presented in the n x 5 grid should be the same as the letter/word in Figure 1
(pay attention to the index value for each *). Do not show the table and index
number. Just show the word using *.
7. The code for the word should be organized efficiently with iterations and conditionals
as the sample solution of Practice 3 question b2. Just printing the word one line by
one line using print (***) is not acceptable.

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 Databases Questions!