Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Please only answer this question if you are able to post PYHTHON CODE. ********DO NOT JUST COPY AND PASTE THE SAME ANSWER THAT HAS OCCURRED

Please only answer this question if you are able to post PYHTHON CODE.

********DO NOT JUST COPY AND PASTE THE SAME ANSWER THAT HAS OCCURRED MULTIPLE TIMES FOR SIMILAR QUESTIONS ALREADY******

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

image text in transcribed

Figure 1: Part of valid string in n7 grid

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Application Development And Design

Authors: Michael V. Mannino

1st Edition

0072463678, 978-0072463675

Students also viewed these Databases questions

Question

What are the functions of top management?

Answered: 1 week ago

Question

Bring out the limitations of planning.

Answered: 1 week ago

Question

Why should a business be socially responsible?

Answered: 1 week ago

Question

Discuss the general principles of management given by Henri Fayol

Answered: 1 week ago