Skip to content

Commit 8e558e5

Browse files
committed
Chapter 8.1 - Grammarly + Upper Letter Titles
1 parent 6486d80 commit 8e558e5

File tree

1 file changed

+14
-14
lines changed

1 file changed

+14
-14
lines changed

chapter-08-exam-preparation.md

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
In **the current chapter**, we will examine a few **problems** with a level of **difficulty** that can be expected in **the problems** of the practical **exam** in "Programming Basics". We will **review** and **practice** all the knowledge that was gained from this book and through the "Programming Basics" course.
44

5-
## Practical exam on “Programming Basic”
5+
## Practical Exam on “Programming Basic”
66

77
The **"Programming Basics"** course ends with a **practical exam**. It includes **6** problems, for which you will have **4 hours**, to solve. **Each** of the exam problems will **cover** one of the **topics** studied in the course. The themes of the problems are as follows:
88

@@ -20,9 +20,9 @@ The **"Programming Basics"** course ends with a **practical exam**. It includes
2020
**How** does the testing in **Judge** work? **You upload** the source code and from the menu below you choose to compile it as a **Java** program. The program is being **tested** with a series of tests, giving **points** for each **successful** test.
2121

2222

23-
## Simple Calculations – problems
23+
## Simple Calculations – Problems
2424

25-
**The first** problem of the "Programming Basics" Practical Exam covers **simple calculations without checks and loops**. Here are a few examples:
25+
**The first** problem of the "Programming Basics" Practical Exam covers **simple calculations without checks and loops**. Here are a few problems:
2626

2727
### Problem: Triangle Area
2828

@@ -136,7 +136,7 @@ Test your solution here: [https://judge.softuni.org/Contests/Practice/Index/661#
136136

137137
## Simple Conditions – Problems
138138

139-
**The second** problem of the "Programming Basics" Practical Exam covers **conditional statements and simple calculations**. Here are a few examples:
139+
**The second** problem of the "Programming Basics" Practical Exam covers **conditional statements and simple calculations**. Here are a few problems:
140140

141141
### Problem: Point on a Segment
142142

@@ -183,7 +183,7 @@ Since we do not know which **point** is on the left and which is on the right, w
183183

184184
![](assets/chapter-8-1-images/03.Point-on-segment-06.png)
185185

186-
The shorter of the two **distances** we can found using **`Math.Min(…)`**.
186+
The shorter of the two **distances** we can find using **`Math.Min(…)`**.
187187

188188
![](assets/chapter-8-1-images/03.Point-on-segment-07.png)
189189

@@ -239,7 +239,7 @@ We read the input data from the console:
239239

240240
![](assets/chapter-8-1-images/04.Point-in-figure-04.png)
241241

242-
We will initialize two variables that will mark whether **the point** is in one of the rectangles. When printing the message, we will check whether any of the variables has accepted a value of **`true`**. It is enough **only one** of them to be **`true`** so that the point is in the figure.
242+
We will initialize two variables that will mark whether **the point** is in one of the rectangles. When printing the message, we will check whether any of the variables has accepted a value of **`true`**. It is enough for **only one** of them to be **`true`** so that the point is in the figure.
243243

244244
![](assets/chapter-8-1-images/04.Point-in-figure-05.png)
245245

@@ -250,7 +250,7 @@ Test your solution here: [https://judge.softuni.org/Contests/Practice/Index/661#
250250

251251
## Complex Conditions – Problems
252252

253-
**The third** problem of the "Programming Basics" Practical Exam includes **several nested checks combined with simple calculations**. Here are a few examples:
253+
**The third** problem of the "Programming Basics" Practical Exam includes **several nested checks combined with simple calculations**. Here are a few problems:
254254

255255
### Problem: Date After 5 days
256256

@@ -259,7 +259,7 @@ There are two numbers given - **d** (day) and **m** (month) that form **a date**
259259
#### Input Data
260260

261261
The input is read from the console and consists of two lines:
262-
- On the first line, we read an integer **d** in the range [**1 … 31**] – day. The number of the day does not exceed the number of days in that month (e.g. 28 for February).
262+
- On the first line, we read an integer **d** in the range [**1 … 31**] – day. The number of days does not exceed the number of days in that month (e.g. 28 for February).
263263
- On the second line, we read an integer **m** in the range [**1 … 12**] – month. Month 1 is January, month 2 is February, …, month 12 is December. The month may contain a leading zero (e.g. April may be written as 4 or 04).
264264

265265
#### Output Data
@@ -307,7 +307,7 @@ The only thing that remains is to print the result on the console. It is importa
307307
Test your solution here: [https://judge.softuni.org/Contests/Practice/Index/661#4](https://judge.softuni.org/Contests/Practice/Index/661#4).
308308

309309

310-
### Problem: Sums of 3 Numbers
310+
### Problem: Sums 3 Numbers
311311

312312
There are **3 integers** given. Write a program that checks if **the sum of two of the numbers is equal to the third one**. For example, if the numbers are **3**, **5**, and **2**, the sum of two of the numbers is equal to the third one: **2 + 3 = 5**.
313313

@@ -363,7 +363,7 @@ Test your solution here: [https://judge.softuni.org/Contests/Practice/Index/661#
363363

364364
**The fourth** problem of the "Programming Basics" Practical Exam includes a **single loop with simple logic** in it. Here are a few examples:
365365

366-
### Problem: Sums with Step of 3
366+
### Problem: Sums Step 3
367367

368368
We are given **n** integers: **a1, a2, …, an**. Calculate the sums:
369369
- **sum1 = a1 + a4 + a7** + … (the numbers are summed, starting from the first one with step of 3).
@@ -407,7 +407,7 @@ Finally, we will print the result on the console in the required **format**.
407407
Test your solution here: [https://judge.softuni.org/Contests/Practice/Index/661#6](https://judge.softuni.org/Contests/Practice/Index/661#6).
408408

409409

410-
### Problem: Sequence of Increasing Elements
410+
### Problem: Increasing Elements
411411

412412
A series of **n** numbers is given: **a1**, **a2**, ****, **an**. Calculate **the length of the longest increasing sequence** of consecutive elements in the series of numbers.
413413

@@ -515,7 +515,7 @@ What remains is **to assemble the whole program** by first reading the input, pr
515515
Test your solution here: [https://judge.softuni.org/Contests/Practice/Index/661#8](https://judge.softuni.org/Contests/Practice/Index/661#8).
516516

517517

518-
### Problem: Rectangle with Stars in the Center
518+
### Problem: Rectangle with Stars
519519

520520
Write a program that reads from the console an integer **n** and draws a **rectangle** with size **n with two asterisks in its center** as in the examples below.
521521

@@ -599,7 +599,7 @@ We will read the input data from the console. We also create the additional vari
599599

600600
![](assets/chapter-8-1-images/11.Increasing-4-numbers-01.png)
601601

602-
It will be easier to solve the problem if we logically divide it **into parts**. If we are required to draw all the rows from a number between **`a`** and **`b`**, we will do it using **one loop** that takes all the numbers from **`a`** to **`b`**. Let's think about how to do this with **series of two numbers**. The answer is easy – we will use **nested loops**.
602+
It will be easier to solve the problem if we logically divide it **into parts**. If we are required to draw all the rows from a number between **`a`** and **`b`**, we will do it using **one loop** that takes all the numbers from **`a`** to **`b`**. Let's think about how to do this with a **series of two numbers**. The answer is easy – we will use **nested loops**.
603603

604604
![](assets/chapter-8-1-images/11.Increasing-4-numbers-02.png)
605605

@@ -620,7 +620,7 @@ Finally, we will check if **the counter** is equal to **0** and we will print "*
620620
Test your solution here: [https://judge.softuni.org/Contests/Practice/Index/661#10](https://judge.softuni.org/Contests/Practice/Index/661#10).
621621

622622

623-
### Problem: Generating Rectangles
623+
### Problem: Generate Rectangles
624624

625625
By a given number **n** and **a minimum area m**, generate all possible rectangles with integer coordinates in the range [**-n…n**] with an area of at least **m**. The generated rectangles must be printed in the following format:
626626

0 commit comments

Comments
 (0)