Skip to content

Latest commit

 

History

History
26 lines (14 loc) · 1 KB

File metadata and controls

26 lines (14 loc) · 1 KB

Homework-1-Android-Basics

Description | وصف الواجب

In this task, you are going to build a code to bake a cake to always be the right number of layers, size, and with the right number of candles.

Instructions | التعليمات

  1. You will create a total of three functions for drawing a layered cake with candles.
  2. You will use a repeat() inside another repeat(), creating what's called a "nested loop".

Functions used | الدوال المستخدمة

  1. printCakeCandles(candles: Int)
  2. printCakeTop(candles: Int)
  3. printCakeBottom(candles: Int, layers: Int)

Notes | ملاحظات

The way you will build up this code is how you can build up any program, starting with the big picture and adding detail. This is called "top-down development".

Here is a picture of the cake you will be baking | صورة النتيجة النهائية

Cake Output