Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Advances In Spatial Databases 2nd Symposium Ssd 91 Zurich Switzerland August 1991 Proceedings Lncs 525

Authors: Oliver Gunther ,Hans-Jorg Schek

1st Edition

3540544143, 978-3540544142

More Books

Students also viewed these Databases questions

Question

1. Are my sources credible?

Answered: 1 week ago

Question

3. Are my sources accurate?

Answered: 1 week ago

Question

1. Is it a topic you are interested in and know something about?

Answered: 1 week ago