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: * * * * * * * *

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
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
  • SEE MORE QUESTIONS
Recommended textbooks for you
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education