Skip to content

Commit 234b0db

Browse files
committed
Chapter 2 - Add Missing Problem
1 parent ecb2401 commit 234b0db

File tree

1 file changed

+25
-1
lines changed

1 file changed

+25
-1
lines changed

chapter-02-simple-calculations.md

Lines changed: 25 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -314,6 +314,30 @@ let expr = (3 + 5) * (4 – 2);
314314

315315
The standard rule for priorities of arithmetic operations is applied: **multiplying and dividing are always done before adding and subtracting**. In the case of an **expression in brackets, it is calculated first** but we already know all of that from the school math.
316316

317+
### Problem: Concatenate Data
318+
319+
Write a function, that receives a first name, last name, age and city and prints a message of the following kind:
320+
```Javascript
321+
You are <firstName> <lastName>, a <age>-years old person from <town>.
322+
```
323+
324+
### Hints and Guidelines
325+
326+
We write a function that receives the input in the **following order**:
327+
328+
![](/assets/chapter-2-1-images/04.Concatenate-data-01.png)
329+
330+
The **code** that prints the message described in the problem requirements should be finished.
331+
332+
In the picture above the code is blurred on purpose, in order for you to think of a way to finish it yourself.
333+
334+
Next, the solution should be tested locally using **[Ctrl+F5]**.
335+
336+
### Testing in The Judge System
337+
338+
Test your solution here: [https://judge.softuni.org/Contests/Practice/Index/927#3](https://judge.softuni.org/Contests/Practice/Index/927#3).
339+
340+
317341
### Problem: Trapeziod Area
318342

319343
Let's write a program that inputs the lengths of the two bases of a trapezoid and its height (one floating-point number per line) and calculates the **trapezoid area** by the standard math formula:
@@ -746,7 +770,7 @@ The file **index.html** must look like this:
746770
<script src="app.js" type="text/JavaScript"></script>
747771
</head>
748772
<body>
749-
<img id="image" style="position:absolute;top:30%;left:30%; width:10%; height:auto; " src="images/mouse.jpg" />
773+
<img id="image" src="images/mouse.jpg" />
750774
</body>
751775
</html>
752776

0 commit comments

Comments
 (0)