Write a program called 'message frame.py to draw a frame (made of the characters +, -,...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
Write a program called 'message frame.py to draw a frame (made of the characters +, -, and '1') around a message that has been repeated on consecutive lines. There is a space before and after the message, and no spaces between concentric boxes. Sample 10 (The input from the user is shown in bold font- do not program this): Enter the message: Hello World Enter the message repeat count: 3 Enter the frame thickness: 2 |+ Hello World | Hello World || || Hello World || Sample 10 (The input from the user is shown in bold font-do not program this); Enter the message: I Love UCT Enter the message repeat count: 4 Enter the frame thickness: 6 I Love UCI I Love UCI I Love UCT I Love UCT Sample 10 (The input from the user is shown in bold font- do not program Enter the message: Programming is fun! Enter the message repeat count: 8 Enter the frame thickness: 8 Programming is fun! Programming is fun! Programming is fun! Programming is fun! Programming is fun! Programming is fun! : Programming is fun! I Programming is fun! Write a program called 'message frame.py to draw a frame (made of the characters +, -, and '1') around a message that has been repeated on consecutive lines. There is a space before and after the message, and no spaces between concentric boxes. Sample 10 (The input from the user is shown in bold font- do not program this): Enter the message: Hello World Enter the message repeat count: 3 Enter the frame thickness: 2 |+ Hello World | Hello World || || Hello World || Sample 10 (The input from the user is shown in bold font-do not program this); Enter the message: I Love UCT Enter the message repeat count: 4 Enter the frame thickness: 6 I Love UCI I Love UCI I Love UCT I Love UCT Sample 10 (The input from the user is shown in bold font- do not program Enter the message: Programming is fun! Enter the message repeat count: 8 Enter the frame thickness: 8 Programming is fun! Programming is fun! Programming is fun! Programming is fun! Programming is fun! Programming is fun! : Programming is fun! I Programming is fun!
Expert Answer:
Answer rating: 100% (QA)
The question is asking you to write a Python program that will draw a frame around a message that has been repeated on consecutive lines The frame sho... View the full answer
Related Book For
Operating Systems Internals And Design Principles
ISBN: 9781292214290
9th Global Edition
Authors: Stallings William
Posted Date:
Students also viewed these programming questions
-
Luke Corporation produces a variety of products, each within their own division. Last year, the managers at Luke developed and began marketing a new chewing gum, Bubbs, to sell in vending machines....
-
Company Advertising ($ billions) Company Advertising (5 billions) A A 5.40 G 2.29 B 3.48 2.35 c 2.41 1 1.79 D 2.66 3 1.67 E E 2.24 K 2.36 F 2.44 L 1.58 (a) What the mean amount (in billion dollars)...
-
Provide the following answer using the following compound below. a. Assign the hybridization for each atom, except hydrogen. b. Determine the number of atomic orbitals and Molecular orbitals (AO,...
-
To earn extra money, you and your friends decide to start a carwash. Based on some data you have collected, you predict that when you charge p dollar to wash and detail a car, you will have a demand...
-
The steel beam ABCD shown is simply supported at A and supported at B and D by steel cables, each having an effective diameter of 12 mm. The second area moment of the beam is I = 8(105) mm4. A force...
-
Suppose that you were thinking about opening a new restaurant. How would you go about forecasting demand and sales?
-
The stress-strain diagram for many metal alloys can be described analytically using the Ramberg-Osgood three parameter equation = /E + ko n , where E, k, and n are determined from measurements taken...
-
Refer to our development of Framecraft Companys master budget in this chapter. Suppose that because of a new customer in Canada, the company or management has decided to increase budgeted sales in...
-
how does evaluations relates to each assessment method and why (selected-response, constructed-response, and performance-based). ?
-
There is a parcel of land next to the Playful Paws, Inc. building. Ellen, the owner of this property, approached John to discuss the idea of selling it to him. John is interested. Ellen knows that...
-
Assume you are data analyst. You visited one of the car showrooms in the city to purchase a car. You requested the sales manager the vehicles mileage values and the corresponding speeds data. The...
-
Columbia Sportswear Company's financial statements are presented in Appendix B. Click here to view Appendix B. Financial statements of VF Corporation are presented in Appendix C. Click here to view...
-
A mass M is suspended by the system of ideal strings and pulleys shown. The system is static. The string tension is labelled at several positions, but there are only two pieces of string. The long...
-
1. The nurse completes an admission database and explains that the plan of care and discharge goals will be developed with the patients input. The patient asks, How is this different from what the...
-
Chapman Company obtains 100 percent of Abernethy Company's stock on January 1, 2023. As of that date, Abernethy has the following trial balance: Items Debit Accounts receivable Accounts payable...
-
Kubin Company s relevant range of production is 1 5 , 0 0 0 to 1 9 , 0 0 0 units. When it produces and sells 1 7 , 0 0 0 units, its average costs per unit are as follows: Average Cost per Unit Direct...
-
Which of the following would NOT be considered a negative externality? Select one: a. Your friend buys a new puppy that barks every night. b. Smelter, Inc. creates steel and pollution. c. Your...
-
If you want to solve a minimization problem by applying the geometric method to the dual problem, how many variables and problem constraints must be in the original problem?
-
What is demand paging?
-
What is starvation with respect to concurrency control by mutual exclusion?
-
Suppose that four interleaved processes are running in a system having start addresses 4050, 3200, 5000 and 6700. The traces of the individual processes are as follows: Find the interleaved traces of...
-
In spherical coordinates, the temperature field can be expressed as \[T=T(r, \theta, \phi, t)\] Derive from this an expression for \(D T / D t\) in spherical coordinates.
-
In cylindrical coordinates, the temperature field (a scalar field) can be expressed as \[T=T(r, \theta, z, t)\] Based on this, derive an expression for \(D T / D t\) in cylindrical coordinates.
-
Derive an expression for \(D T / D t\) in Cartesian coordinates. Also show that the same relation holds for a vector; i.e., \[\frac{D \boldsymbol{v}}{D t}=e_{x} \frac{D v_{x}}{D t}+e_{y} \frac{D...
Study smarter with the SolutionInn App