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
Figure 1: Part of valid string in n7 gridStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started