a. Provide a top-level decomposition of the problem of drawing a frieze, assuming for the moment that the basic element is repeated just 3 times.
Added by Amanda V.
Step 1
- Determine the shape, size, and style of the basic element that will be repeated in the frieze. This could be a geometric shape, a floral design, a character, or any motif that fits the theme of the frieze. Show more…
Show all steps
Your feedback will help us improve your experience
Akash M and 93 other AP CS educators are ready to help you.
Ask a new question
Labs
Want to see this concept in action?
Explore this concept interactively to see how it behaves as you change inputs.
Key Concepts
Recommended Videos
A frieze pattern is a decoration made from repeated copies of a basic element arranged in a row. Figure 1 shows examples from ancient Persian buildings Figure 1 Example friezes a. Provide a top-level decomposition of the problem of drawing a frieze pattern, assuming for the moment that the basic element is repeated just exactly 5 times. At this stage you are not trying to produce a solution, just break the problem down into smaller parts. We are looking for a decomposition that could apply to a frieze composed of any basic element, so for now you should just assume that the exact form of the basic element will be considered in a more detailed decomposition, so you can just say "draw basic element" for this step. Your initial decomposition should use exactly one loop.
Akash M.
Repeat Problem P1.52 , placing all three elements in parallel.
Suppose that elements "a", "b", "c", "d", "e" are pushed, in that order, onto an initially empty stack, which is then popped four times. As each element is popped, it is enqueued into an initially empty queue. If one element is then dequeued from the queue, what is the next element to be dequeued?
Recommended Textbooks
Computer Science and Information Technology
Introduction to Programming Using Python
Computer Science - An Overview
18,000,000+
Students on Numerade
Trusted by students at 8,000+ universities
Watch the video solution with this free unlock.
EMAIL
PASSWORD