Skip to content

Commit bc9aef7

Browse files
Update chapter-02-simple-calculations.md
Review up to " Exercise: Circle Area and Perimeter"
1 parent 252aed1 commit bc9aef7

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

chapter-02-simple-calculations.md

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -592,46 +592,46 @@ First, we create a **new Java class** with the name “Greeting” in the projec
592592
Test your solution here: [https://judge.softuni.bg/Contests/Practice/Index/649#2](hhttps://judge.softuni.bg/Contests/Practice/Index/649#2).
593593

594594

595-
### Exercise: Concatenating Text and Numbers
595+
### Exercise: Concatenating text and numbers
596596

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>.`**.
598598

599599
#### Hints and guidelines
600600

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:
602602

603603
![](assets/chapter-2-1-images/10.Concatenate-data-01.png)
604604

605-
**The code**, that prints the message described in the problem requirements should be finished.
605+
You should write **the code** that prints the message described in the requirements.
606606

607607
![](assets/chapter-2-1-images/10.Concatenate-data-02.png)
608608

609-
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.
610610

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.
612612

613613
#### Testing in the Judge system
614614

615615
Test your solution here: [https://judge.softuni.bg/Contests/Practice/Index/649#3](https://judge.softuni.bg/Contests/Practice/Index/649#3).
616616

617617

618-
### Exercise: Trapezoid Area
618+
### Exercise: Trapezoid аrea
619619

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**.
621621

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**.
623623

624624
![](assets/chapter-2-1-images/11.Trapezoid-area-01.png)
625625

626626
#### Hints and guidelines
627627

628-
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:
629629

630630
![](assets/chapter-2-1-images/11.Trapezoid-area-02.png)
631631

632-
The code on the picture is purposely blurred, in order for you to give it a thought and finish it yourself.
632+
The code on the picture is consciously blurred for you to give a thought and finish yourself.
633633

634-
**Test** your solution locally using [**Ctrl+Shift+F10**] and enter an exemplary data.
634+
**Test** your solution locally using [**Ctrl+Shift+F10**] and by entering sample input data.
635635

636636
#### Testing in the Judge system
637637

0 commit comments

Comments
 (0)