diff --git a/assets/chapter-4-1-images/01.Personal-titles-01.jpg b/assets/chapter-4-1-images/01.Personal-titles-01.jpg new file mode 100644 index 00000000..f8c21d8e Binary files /dev/null and b/assets/chapter-4-1-images/01.Personal-titles-01.jpg differ diff --git a/assets/chapter-4-1-images/01.Personal-titles-02.png b/assets/chapter-4-1-images/01.Personal-titles-02.png new file mode 100644 index 00000000..a5a27e11 Binary files /dev/null and b/assets/chapter-4-1-images/01.Personal-titles-02.png differ diff --git a/assets/chapter-4-1-images/02.Small-shop-01.png b/assets/chapter-4-1-images/02.Small-shop-01.png new file mode 100644 index 00000000..aa287a7c Binary files /dev/null and b/assets/chapter-4-1-images/02.Small-shop-01.png differ diff --git a/assets/chapter-4-1-images/03.Point-in-rectangle-01.png b/assets/chapter-4-1-images/03.Point-in-rectangle-01.png new file mode 100644 index 00000000..dbde8150 Binary files /dev/null and b/assets/chapter-4-1-images/03.Point-in-rectangle-01.png differ diff --git a/assets/chapter-4-1-images/03.Point-in-rectangle-03.png b/assets/chapter-4-1-images/03.Point-in-rectangle-03.png new file mode 100644 index 00000000..d8ac3073 Binary files /dev/null and b/assets/chapter-4-1-images/03.Point-in-rectangle-03.png differ diff --git a/assets/chapter-4-1-images/04.Fruit-or-vegetable-01.png b/assets/chapter-4-1-images/04.Fruit-or-vegetable-01.png new file mode 100644 index 00000000..0d79fd2e Binary files /dev/null and b/assets/chapter-4-1-images/04.Fruit-or-vegetable-01.png differ diff --git a/assets/chapter-4-1-images/05.Invalid-number-01.png b/assets/chapter-4-1-images/05.Invalid-number-01.png new file mode 100644 index 00000000..ff7d035d Binary files /dev/null and b/assets/chapter-4-1-images/05.Invalid-number-01.png differ diff --git a/assets/chapter-4-1-images/06.Point-on-rectangle-border-01.png b/assets/chapter-4-1-images/06.Point-on-rectangle-border-01.png new file mode 100644 index 00000000..b6831cfd Binary files /dev/null and b/assets/chapter-4-1-images/06.Point-on-rectangle-border-01.png differ diff --git a/assets/chapter-4-1-images/06.Point-on-rectangle-border-02.png b/assets/chapter-4-1-images/06.Point-on-rectangle-border-02.png new file mode 100644 index 00000000..2b19b048 Binary files /dev/null and b/assets/chapter-4-1-images/06.Point-on-rectangle-border-02.png differ diff --git a/assets/chapter-4-1-images/06.Point-on-rectangle-border-03.png b/assets/chapter-4-1-images/06.Point-on-rectangle-border-03.png new file mode 100644 index 00000000..b8214adf Binary files /dev/null and b/assets/chapter-4-1-images/06.Point-on-rectangle-border-03.png differ diff --git a/assets/chapter-4-1-images/07.Fruit-shop-01.png b/assets/chapter-4-1-images/07.Fruit-shop-01.png new file mode 100644 index 00000000..f1425171 Binary files /dev/null and b/assets/chapter-4-1-images/07.Fruit-shop-01.png differ diff --git a/assets/chapter-4-1-images/08.Trade-comissions-01.png b/assets/chapter-4-1-images/08.Trade-comissions-01.png new file mode 100644 index 00000000..3d57fabe Binary files /dev/null and b/assets/chapter-4-1-images/08.Trade-comissions-01.png differ diff --git a/assets/chapter-4-1-images/09.Day-of-week-01.png b/assets/chapter-4-1-images/09.Day-of-week-01.png new file mode 100644 index 00000000..0b0e87d4 Binary files /dev/null and b/assets/chapter-4-1-images/09.Day-of-week-01.png differ diff --git a/assets/chapter-4-1-images/10.Animal-type-01.png b/assets/chapter-4-1-images/10.Animal-type-01.png new file mode 100644 index 00000000..a79d8e5b Binary files /dev/null and b/assets/chapter-4-1-images/10.Animal-type-01.png differ diff --git a/assets/chapter-4-1-images/11.Cinema-01.png b/assets/chapter-4-1-images/11.Cinema-01.png new file mode 100644 index 00000000..6371b0bb Binary files /dev/null and b/assets/chapter-4-1-images/11.Cinema-01.png differ diff --git a/assets/chapter-4-1-images/12.Volleyball-01.png b/assets/chapter-4-1-images/12.Volleyball-01.png new file mode 100644 index 00000000..a38a2bcd Binary files /dev/null and b/assets/chapter-4-1-images/12.Volleyball-01.png differ diff --git a/assets/chapter-4-1-images/13.Point-in-the-figure-01.png b/assets/chapter-4-1-images/13.Point-in-the-figure-01.png new file mode 100644 index 00000000..a2ce1062 Binary files /dev/null and b/assets/chapter-4-1-images/13.Point-in-the-figure-01.png differ diff --git a/assets/chapter-4-1-images/13.Point-in-the-figure-02.png b/assets/chapter-4-1-images/13.Point-in-the-figure-02.png new file mode 100644 index 00000000..491528a1 Binary files /dev/null and b/assets/chapter-4-1-images/13.Point-in-the-figure-02.png differ diff --git a/assets/chapter-4-1-images/13.Point-in-the-figure-03.png b/assets/chapter-4-1-images/13.Point-in-the-figure-03.png new file mode 100644 index 00000000..c87a6b1b Binary files /dev/null and b/assets/chapter-4-1-images/13.Point-in-the-figure-03.png differ diff --git a/chapter-04-complex-conditions.md b/chapter-04-complex-conditions.md index c4acc67b..61ec4362 100644 --- a/chapter-04-complex-conditions.md +++ b/chapter-04-complex-conditions.md @@ -5,8 +5,9 @@ ## Видео
![]() |
-Добра практика е да използваме блокове, които заграждаме с къдрави скоби { } след if и else . Също така, препоръчително e при писане да отместваме кода след if и else с една табулация навътре, за да направим кода по-лесно четим. |
-
![]() |
-Добра практика е на първо място да поставяме онези case случаи, които обработват най-често случилите се ситуации, а case конструкциите, обработващи по-рядко възникващи ситуации, да оставим в края преди default конструкцията. Друга добра практика е да подреждаме case етикетите в нарастващ ред, без значение дали са целочислени или символни. |
+Добра практика е на първо място да поставяме онези условия, които обработват най-често случилите се ситуации, а конструкциите, обработващи по-рядко възникващи ситуации, да оставим в края на конструкцията. Друга добра практика е да подреждаме случайте в нарастващ ред, без значение дали са целочислени или символни. |
![]() |
-Внимание: това приложение е значително по-сложно от предходните графични приложения, които разработвахме до сега, защото изисква ползване на функции за чертане и нетривиални изчисления за преоразмеряване и преместване на правоъгълника и точката. Следват инструкции за изграждане на приложението стъпка по стъпка. | -