Question
Kilims are woven carpets which generally use symmetrical designs. instead of using a loom, wool, and a shuttle, we are asking you to produce a
Kilims are woven carpets which generally use symmetrical designs. instead of using a loom, wool, and a shuttle, we are asking you to produce a pattern of your own design using loops and nested loops.
Write a program to weave your own Kilim carpet with 27 rows by 37 columns. The patterns should be designed by you (it should be different than the design of the carpet below). Your carpet though MUST include at least one diamond shape, checkerboards, and squares (See example below for these patterns). Also, use other characters such as $ or % or + or @ rather than a “*” to weave the rug. Make sure not to copy the entire pattern from the below rug or copy patterns from another student! Show your creativity by weaving a different design while meeting the requirements mentioned above. You will get extra credit for excellent design and added features.
Here is a 12th Century Moroccan Kilim Carpet sample pattern made of 25 rows and 36 columns:
(This design is made up of stars (asterisks) and spaces, please ignore the border, color, and the shading effect):
Here are the requirements:
- Every print statement should print no more than one character such as '*' or one space ' '. Do not use statements such as: print("************************************") but rather use loops for every repetition.
- Use loops and nested loops to produce these patterns.
- You can't use control structure such as switch or if/ else if /else in your program.
- You have to design your own carpet (different than the carpet from above).
- Your carpet MUST include at least one diamond shape, checkerboards, and squares. (see example from above for these patterns).
- Some of the patterns are repeated; you might want to first isolate the elements in the design (eg. the first two rows, the "checkerboard" elements, the triangle) and then combine them to form the "rug".
- If the Dimond is too difficult to produce as one pattern, you can break it into 4 triangles or apply any solution you see fit as long you comply with the assignment’s requirements.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Python Code Define the dimensions of the carpet rows 27 columns 37 Define the characters to use in t...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