Solve the following problem with Python IDLE. The goal is to generate digital number signs. For simplicity, you will use only the numerals 0, 1, and 2, and the signs will be vertical. You will develop a collection of functions that can be used to draw numerals in the format commonly used to digital clocks and other displays. You will build the functions in a systematic way, writing a series of steps that build on one another, so it's important to progress through this assignment in order. Use the indicated function names.  # function: horizontal_line # input: a width value (integer) # processing: prints a single horizontal line of the desired size # output: does not return anything # function: vertical_line # input: a shift value and a height value (both integers) # processing: generates a single vertical line of the desired height. the line  # is offset from the left side of the screen using the shift value # output: does not return anything # function: two_vertical_lines # input: a width value and a height value (both integers) # processing: generates two vertical lines. the first line is along the left side of # the screen. the second line is offset using the "width" value supplied # output: does not return anything Test to be sure these functions are working correctly before continuing to the next step. Be  sure to try a variety of arguments. Try the following calls (Code them into the program and  them delete the lines when you are finished testing): horizontal_line(5)              horizontal_line(15) vertical_line(0, 3)              vertical_line(6, 5) two_vertical_lines(4, 5)     two_vertical_lines(5, 2) Here’s what some of them will look like Horizontal line with width = 5: ***** Vertical Line, shift=2; height=3: (shifted 2 spaces over from the left) * * *   Two Vertical Lines, height=4; width=5: * * * * * * * *

C++ Programming: From Problem Analysis to Program Design
8th Edition
ISBN:9781337102087
Author:D. S. Malik
Publisher:D. S. Malik
Chapter5: Control Structures Ii (repetition)
Section: Chapter Questions
Problem 14PE
icon
Related questions
Question

Solve the following problem with Python IDLE. The goal is to generate digital number signs. For simplicity, you will use only the numerals 0, 1, and 2, and the signs will be vertical. You will develop a collection of functions that can be used to draw numerals in the format commonly used to digital clocks and other displays. You will build the functions in a systematic way, writing a series of steps that build on one another, so it's important to progress through this assignment in order. Use the indicated function names. 

# function: horizontal_line
# input: a width value (integer)
# processing: prints a single horizontal line of the desired size
# output: does not return anything
# function: vertical_line
# input: a shift value and a height value (both integers)
# processing: generates a single vertical line of the desired height. the line 
# is offset from the left side of the screen using the shift value
# output: does not return anything
# function: two_vertical_lines
# input: a width value and a height value (both integers)
# processing: generates two vertical lines. the first line is along the left side of
# the screen. the second line is offset using the "width" value supplied
# output: does not return anything
Test to be sure these functions are working correctly before continuing to the next step. Be 
sure to try a variety of arguments. Try the following calls (Code them into the program and 
them delete the lines when you are finished testing):
horizontal_line(5)              horizontal_line(15)
vertical_line(0, 3)              vertical_line(6, 5)
two_vertical_lines(4, 5)     two_vertical_lines(5, 2)

Here’s what some of them will look like
Horizontal line with width = 5:
*****
Vertical Line, shift=2; height=3: (shifted 2 spaces over from the left)
*
*
*
 
Two Vertical Lines, height=4; width=5:
* *
* *
* *
* *

Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 4 steps with 2 images

Blurred answer
Knowledge Booster
Hiring Problem
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
Recommended textbooks for you
C++ Programming: From Problem Analysis to Program…
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning
C++ for Engineers and Scientists
C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr
Programming Logic & Design Comprehensive
Programming Logic & Design Comprehensive
Computer Science
ISBN:
9781337669405
Author:
FARRELL
Publisher:
Cengage
EBK JAVA PROGRAMMING
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT
New Perspectives on HTML5, CSS3, and JavaScript
New Perspectives on HTML5, CSS3, and JavaScript
Computer Science
ISBN:
9781305503922
Author:
Patrick M. Carey
Publisher:
Cengage Learning
Microsoft Visual C#
Microsoft Visual C#
Computer Science
ISBN:
9781337102100
Author:
Joyce, Farrell.
Publisher:
Cengage Learning,