You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: chapter-08-exam-preparation-part-2.md
+7-7Lines changed: 7 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -12,7 +12,7 @@ Traditionally, the admission exam at SoftUni consists of **6 practical programmi
12
12
- A problem with nested loops (drawing a figure on the console).
13
13
- A problem with nested loops and more complex logic.
14
14
15
-
Let's examine a **real exam topic**, the problems it contains and their solutions.
15
+
Let's examine a **real exam topic**, the problems it contains, and their solutions.
16
16
17
17
18
18
## Problem: Distance
@@ -159,9 +159,9 @@ We can find the final result by **calculating the total amount** that is needed
159
159
Test your solution here: [https://judge.softuni.org/Contests/Practice/Index/940#1](https://judge.softuni.org/Contests/Practice/Index/940#1).
160
160
161
161
162
-
## Problem: Flowers Shop
162
+
## Problem: Flowers
163
163
164
-
A flowers shop offers 3 types of flowers: **chrysanthemums**, **roses** and **tulips**. The prices depend on the season. In this problem, our currency will be **lv**, which is BGN (Bulgarian lev).
164
+
A flowers shop offers 3 types of flowers: **chrysanthemums**, **roses**, and **tulips**. The prices depend on the season. In this problem, our currency will be **lv**, which is BGN (Bulgarian lev).
165
165
166
166
|Season|Chrysanthemums|Roses|Tulips|
167
167
|:---:|:---:|:---:|:---:|
@@ -179,9 +179,9 @@ The price for arranging a bouquet is always **2 lv** (BGN). Write a program that
179
179
### Input Data
180
180
181
181
The function receives **5 arguments**:
182
-
***The number** of the puchared**chrysanthemums** – whole number inside the interval of [**0 … 200**].
183
-
***The number** of the puchared**roses** – whole number inside the interval of [**0 … 200**].
184
-
***The number** of the puchared**tullips** – whole number inside the interval of [**0 … 200**].
182
+
***The number** of the purchased**chrysanthemums** – an integer number inside the interval of [**0 … 200**].
183
+
***The number** of the purchased**roses** – an integer number inside the interval of [**0 … 200**].
184
+
***The number** of the purchased**tulips** – an integer number inside the interval of [**0 … 200**].
***If the day is a holiday** – [**Y - yes / N - no**].
187
187
@@ -267,7 +267,7 @@ By the requirements, we see that **first**, we will receive **the number** of st
267
267
268
268

269
269
270
-
Before executing the code of the **`for`** loop, we will create variables where we will store **the number of students** for each group: poor results (up to 2.99), results from 3 to 3.99, from 4 to 4.99 and grades above 5. We will also need one more variable, where we will store **the sum of all grades**, via which we will calculate the average grade of all students:
270
+
Before executing the code of the **`for`** loop, we will create variables where we will store **the number of students** for each group: poor results (up to 2.99), results from 3 to 3.99, from 4 to 4.99, and grades above 5. We will also need one more variable, where we will store **the sum of all grades**, via which we will calculate the average grade of all students:
0 commit comments