Question: Stuck on this python program situation, please help! Program Specifications The purpose of this lab is to learn to further decompose a problem into subtasks.
Stuck on this python program situation, please help!




Program Specifications The purpose of this lab is to learn to further decompose a problem into subtasks. You're part of an architectural firm that has designed three types of two-floor houses (using ASCII art!). House 1 "Country Style": TIITTI House 2 "Compact": LLIT _ _ House 3 "Urban": I TILL LLL These houses were actually designed so that you could mix and match the first floor of one house with the second floor of another house. So, let's separate the first and second floors of the houses. 1st floor of House 1 (1.1): 1st floor of House 2 (2.1): TUTTI 1st floor of House 3 (3.1): TITILL |_1__ 2nd floor of House 1 (1.2): i TT 2nd floor of House 2 (2.2): 2nd floor of House 3 (3.2): = = = = = = = = = = = = Since you know how to program, the firm has asked you to print all nine possible combinations of first and second floors. The output should be done in this order: 1.1/1.2, 1.1/2.2, 1.1/3.2, 2.1/1.2, 2.1/2.2, 2.1/3.2, 3.1/1.2, 3.1/2.2, and 3.1/3.2. Decompose the task of printing the different combinations of first and second floors by "delegating" the work of the actual printing to various methods. Sample run There is an empty line at the end of each house drawing. This is also the case for the last house (the ninth house). However, the sample run does not show the empty line after that house. _L LLLL LI |_| | | _ | III = = = = = = = = = = = = = = = = = IL_| ||_|| |_ _ _ ___ | _ _ ILLIT _ _|_| = = = = = = = = = = = = = = = = Tu Di IIIIIII __ __ 1 L L V TILL |_1___ TILL |___1_ _ ================= - ILI | - TIL | LIII Required program decomposition You are required to include the following functions in your program. country_style_second_floor() This function should print the second floor of a country style house. country_style_first_floor() This function should print the first floor of a country style house. Include an empty line at the end of the drawing. compact_second_floor() This function should print the second floor of a compact style house. compact_first_floor() This function should print the first floor of a compact style house. Include an empty line at the end of the drawing. urban second floor This function should print the second floor of an urban style house. urban_first_floor() This function should print the first floor of a urban style house. Include an empty line at the end of the drawing. use_country_style_first_floor() This function should call the appropriate functions described above in order to display three different houses that use the country style first floor. Note that this function should do the actual printing. It should call other functions that will due the actual printing. use_compact_first_floor() This function should call the appropriate functions described above in order to display three different houses that use the compact style first floor. Note that this function should do the actual printing. It should call other functions that will due the actual printing. use_urban_first_floor() This function should call the appropriate functions described above in order to display three different houses that use the urban style first floor. Note that this function should do the actual printing. It should call other functions that will due the actual printing O PC Notes You are only allowed to have at most six statements in each of the functions above. Note that the function header (i.e., the line containing the keyword def) is not considered a statement. Calls to the last three functions described above must be done in the main function. The six statement requirement also applies to statements in the main function. All your statements must be part of one of the functions described above (including the main function). Points will be deducted if a statement is not part of any of these functions. It is highly recommended that you start using the Spyder IDE for his lab. Copy-and-paste the template code from zyBook to a file in Spyder and develop and test your program in Spyder. Once you are ready, you can copy-and-paste back to zyBook. You're welcome to copy the sample run output, paste it into your program, and then add the necessary code to print it out
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
