Question: Exercise 4: Program exercise for Function with no parameters Write a complete Python program including minimal comments (file name, your name, and problem description) that
Exercise 4: Program exercise for Function with no parameters
Write a complete Python program including minimal comments (file name, your name, and problem description) that solves the following problem with the main function:
Problem Specification:
Write a program that draws a house by printing characters to the screen. This program should have main, PrintGround, PrintRoof, and PrintWall functions. All functions are void with no parameter functions.
The main function should call the three Print functions to draw a house
PrintGround function prints a bar of tilde(~).
PrintRoof prints an upper triangle that forms the roof of a house
PrintWall prints two vertical bar that forms walls of a house.
SAMPLE RUN: /^\ /---\ /-----\ /-------\ /---------\ # # # # # # # # ~~~~~~~~~~~~~~~~~~~~ Home sweet home.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
