Design and implement a program to produce a simple graphical representation of a tree, as shown in Figure 1. Think of the output as comprising 3 levels. The lines used to make each level in the figure below are of length 10, 20 and 30 respectively.
You should produce a program that, in principle, can produce larger trees simply by changing one number that specifies the number of levels.
[login to view URL] a top level decomposition, making explicit use of one loop. At this stage express your answer in terms of two sub-problems.
[login to view URL] your decomposition to give an algorithm, as you include extra detail make explicit use of a second loop.
[login to view URL] part of the question involves writing Python code. Name your Python file [login to view URL], where ‘OUCU’ is your OU computer username, e.g. abc123. Write your code in this file. Then include the code file in your TMA zip file.