Question: Figure 1 shows the initial setup: Clara draws the base of the cake, which is always 18 cells wide and 4 cells tall. When the

Figure 1 shows the initial setup: Clara draws the base of the cake, which is always 18 cells wide and 4 cells tall. When the base is finished, she asks the user to enter the age of the grandmother. Once the age is correctly entered, Clara will add candles as shown in Figure 2. Here user has entered 77, thus Clara creates 7 candles and makes them 7 cells high (77- 7*10) = 7. For cases when the number of years over the last decade is 0 (e.g. 50, 60, 70, 80), Clara must draw candles of height 1

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Mathematics Questions!