Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
KurinIllia authored Sep 18, 2021
1 parent 6b07c8c commit 2d09c5f
Showing 1 changed file with 25 additions and 1 deletion.
26 changes: 25 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1 +1,25 @@
# ASD-Lab1
# Algorithms and data structures - Lab 1

Write programs to perform 5 different types of tasks:
1) elementary operators
2) conditional operators
3) cycles
4) arrays
5) functions

Check the correct operation of programs with different input data.

In tasks where any variables are entered, it is desirable to implement their setting via data entry from the terminal (eg cin). In tasks with arrays it is recommended to fill them with random numbers (rand () function).

<b>Importantly!</b> Allowed libraries to connect:
- I / O libraries: \<iostream>, \<iomanip>, <stdio.h>, <conio.h>
- library of mathematical functions: \<cmath> (math.h)
- libraries for the randomize function: \<cstdlib> (stdlib.h), \<ctime> (time.h)
- library to support Cyrillic output: \<clocale> (locale.h)
- library for support of Ukrainian letters in the Windows console: <windows.h>

1. Find the distance between the points 𝐴 (π‘₯1, 𝑦1) and 𝐡 (π‘₯2, 𝑦2) on the plane.
2. The coordinates of point x and y are given. Check that it lies on the coordinate axis Ox or Oy and display a message about it.
3. Organize an endless loop until the user enters 0 from the keyboard, then display how many attempts it took.
4. Given an array of real numbers of size 16 elements which will be: π‘Ž0, ..., π‘Ž15. Find π‘šπ‘Žπ‘₯(π‘Ž0 - π‘Ž8, π‘Ž1 - π‘Ž9, ..., π‘Ž7 - π‘Ž15).
5. Set the mathematical function 𝑓(π‘₯) = π‘₯<sup>3</sup> - 2π‘₯<sup>2</sup> + π‘₯ - 1 as a function. Find the maximum value of the function on the segment [-3, 4], search to perform withstep 0.5.

0 comments on commit 2d09c5f

Please sign in to comment.