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

Your Task In this assignment, you will design and implement a string printing program for the client that allows users to input a valid string, then the program will print the string in a n x 7 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 character (valid inputs: any single string only including characters C, S, 1, 4 and 0, one character can appear more than once in the string, case insensitive) and a break-word to break the iteration (valid inputs: BREAK, 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.

4. Information Presenting is to present the outcome. Once receiving a new valid string from users, the program should print the string in a n x 7 grid (one string each time, no extra space between different characters. For example, each character is presented in a 6 x 7 grid. A string with two characters will be in a 12 x 7 grid as Figure 1).

5. The program will continue to ask the user to enter a string until the break-word BREAK is inputted and the program stops.

6. The string presented in the n x 7 grid should be the same as the character/string in Figure 1 (pay attention to the index value for each *). Do not show the table and index number. Just show the string using *.

7. The code of printing the string should be organized efficiently with iterations and conditionals as the sample solution of Quiz 3 question b2. Just printing the string one line by one line using print( *** ) is not acceptable

Your Task In this assignment, you will design and implement a string

Figure 1: Part of valid string in n7 grid

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!