Overview Use starting_string as the base of your program. First, split it into a list of lines and store the result in a variable named lines_of_text). Then print out each line according to it's directions (note: there's no loop here, each line has ifferent instructions) Then rejoin lines_of_text with ';' and print out the resulting string. Then find the second 'j' in starting_string, slice it from there for the next 5 characters, and print out the result. Expected Output Example 1 PRINT THIS IN UPPERCASE print this in lowercase Print This As A Title Print this left justified (80 characters, with ='s)============= ++++++++++Print this right justified (80 characters, with +'s) Print this in uppercase; Print this in lowercase; Print this as a title; Print this left justified (80 characters, with ='s); Print this right justified (80 characters, with +'s) justi ***********

Microsoft Visual C#
7th Edition
ISBN:9781337102100
Author:Joyce, Farrell.
Publisher:Joyce, Farrell.
Chapter5: Looping
Section: Chapter Questions
Problem 13E
icon
Related questions
Question

#Hard-Coded

starting_string = """Print this in uppercase
Print this in lowercase
Print this as a title
Print this left justified (80 characters, with ='s)
Print this right justified (80 characters, with +'s)"""

Specifications
• You should submit a single file called M8A2.py
• It should follow the submission standards outlined here: Submission Standards
• Your program must follow the directions above.
Your program should have no loops.
Tips and Tricks
• Everything you need to do this program is in the built-in string object. Don't over think it.
Hard-Coded
starting_string = """Print this in uppercase
Print this in lowercase
Print this as a title
Print this left justified (80 characters, with ='s)
Print this right justified (80 characters, with +'s)"""
Transcribed Image Text:Specifications • You should submit a single file called M8A2.py • It should follow the submission standards outlined here: Submission Standards • Your program must follow the directions above. Your program should have no loops. Tips and Tricks • Everything you need to do this program is in the built-in string object. Don't over think it. Hard-Coded starting_string = """Print this in uppercase Print this in lowercase Print this as a title Print this left justified (80 characters, with ='s) Print this right justified (80 characters, with +'s)"""
Overview
Use starting_string as the base of your program.
First, split it into a list of lines and store the result in a variable named lines_of_text). Then print out each line according to it's directions (note: there's no loop here, each line has
different instructions)
Then rejoin lines_of_text with ';' and print out the resulting string.
Then find the second 'j' in starting_string, slice it from there for the next 5 characters, and print out the result.
Expected Output
Example 1
PRINT THIS IN UPPERCASE
print this in lowercase
Print This As A Title
Print this left justified (80 characters, with ='s) ========
++++++++Print this right justified (80 characters, with +'s)
Print this in uppercase; Print this in lowercase; Print this as a title;Print this left justified (80 characters, with ='s); Print this right justified (80 characters, with +'s)
justi
Transcribed Image Text:Overview Use starting_string as the base of your program. First, split it into a list of lines and store the result in a variable named lines_of_text). Then print out each line according to it's directions (note: there's no loop here, each line has different instructions) Then rejoin lines_of_text with ';' and print out the resulting string. Then find the second 'j' in starting_string, slice it from there for the next 5 characters, and print out the result. Expected Output Example 1 PRINT THIS IN UPPERCASE print this in lowercase Print This As A Title Print this left justified (80 characters, with ='s) ======== ++++++++Print this right justified (80 characters, with +'s) Print this in uppercase; Print this in lowercase; Print this as a title;Print this left justified (80 characters, with ='s); Print this right justified (80 characters, with +'s) justi
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 6 steps with 2 images

Blurred answer
Knowledge Booster
Methods of StringBuilder class
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Microsoft Visual C#
Microsoft Visual C#
Computer Science
ISBN:
9781337102100
Author:
Joyce, Farrell.
Publisher:
Cengage Learning,