Question
5.14 Zylab Mod 3: Graphic Design in Python Using a while loop, present an application menu to the user that will cycle over and over
5.14 Zylab Mod 3: Graphic Design in Python Using a while loop, present an application menu to the user that will cycle over and over until he/she explicitly quits (by selecting the appropriate menu choice). Your menu will include two [primitive] graphic design applications: one that draws a pyramid of Xs and one that draws a rectangular matrix of Xs, the dimensions of each based on user input. Your menu will look like this: 1-Pyramid 2-Rectangular Matrix 3-Quit What would you like to do? The code that draws the Pyramid first queries the user for the desired base size (not shown, but the variable holding the base size is called base), then utilizes special Python formatting tools: for i in range(1, base+1, 2): print ('{:^{}}'.format('X'*i, base)) (More about formatting tools can be found here: https://pyformat.info/) You can adapt this code to help you draw the pyramid. To draw the rectangular matrix, use nested for loops after retrieving the desired number of rows and columns from the user.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started