Skip to content

shaima-alghamdi-tuwaiq/Homework-1-Android-Basics

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages