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-02-simple-calculations.md
+12-12Lines changed: 12 additions & 12 deletions
Original file line number
Diff line number
Diff line change
@@ -592,46 +592,46 @@ First, we create a **new Java class** with the name “Greeting” in the projec
592
592
Test your solution here: [https://judge.softuni.bg/Contests/Practice/Index/649#2](hhttps://judge.softuni.bg/Contests/Practice/Index/649#2).
593
593
594
594
595
-
### Exercise: Concatenating Text and Numbers
595
+
### Exercise: Concatenating text and numbers
596
596
597
-
Write a Java program, that reads from the console a first name, last name, age and city and prints a message of the following kind: **`You are <firstName> <lastName>, a <age>-years old person from <town>.`**.
597
+
Write a Java program, that reads from the console a first name, last name, age, and city, and prints a message of the following kind: **`You are <firstName> <lastName>, a <age>-years old person from <town>.`**.
598
598
599
599
#### Hints and guidelines
600
600
601
-
We add to the existing IntelliJ IDEA Project one more Java Class with name "`ConcatenateData`". **We write the code**, which reads the input from the console:
601
+
We add to the existing IntelliJ IDEA Project one more Java class with the name "`ConcatenateData`". **We write the code**, which reads the input from the console:
In the picture above the code is blurred on purpose, in order for you to think of a way to finish it yourself.
609
+
In the picture above, the code is consciously blurred on purpose, in order for you to think of a way to finish it yourself.
610
610
611
-
СNext, the solution should be tested locally using [**Ctrl+Shift+F10**] and by entering an exemplary input data.
611
+
Next, test the solution locally using [**Ctrl+Shift+F10**] and by entering sample input data.
612
612
613
613
#### Testing in the Judge system
614
614
615
615
Test your solution here: [https://judge.softuni.bg/Contests/Practice/Index/649#3](https://judge.softuni.bg/Contests/Practice/Index/649#3).
616
616
617
617
618
-
### Exercise: Trapezoid Area
618
+
### Exercise: Trapezoid аrea
619
619
620
-
Write a program that reads three numbers from the console **b1**, **b2** and **h** and calculates **the area of a trapezoid** with bases **b1** and **b2** and height **h**. The formula for trapezoid area is **(b1 + b2) * h / 2**.
620
+
Write a program that reads three numbers from the console **b1**, **b2** and **h** and calculates **the area of a trapezoid** with bases **b1** and **b2** and height **h**. The formula for the area of trapezoid is **(b1 + b2) * h / 2**.
621
621
622
-
On the figure below shows a trapezoid with bases 8 and 13 and height 7. It has an area **(8 + 13) * 7 / 2 = 73.5**.
622
+
Тhe figure below shows a trapezoid with bases 8 and 13 and height 7. It has an area **(8 + 13) * 7 / 2 = 73.5**.
Again, we have to add to the existing IntelliJ IDEA Project another **Java class** with name "`TrapezoidArea`" and to write **the code that reads the input from the console, calculates the trapezoid area and prints it**:
628
+
Again, we have to add to the existing IntelliJ IDEA Project another **Java class** with the name "`TrapezoidArea`" and to write **the code that reads the input from the console, then calculates the area of the trapezoid, and prints it** as an output on the console:
0 commit comments