Skip to content
 
 

Latest commit

 

History

19 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Material-Pointer-Cpp

Methodical material. Parsing the topic of c++ pointers. Writing assignments and tests for students

Pointers

  1. ✅ Write a function that takes the side of a square as arguments and returns its perimeter, area, and diagonal. Write a program to demonstrate how this function works. https://github.com/DaniilVdovin/Material-Pointer-Cpp/blob/60f02bee834171f5be0673cab6b4fdbeb0f89613/Source/Pointers/1.cpp#L1-L16
  2. ✅ Write a function that takes three sides of a triangle as arguments and returns its perimeter and area. Write a program to demonstrate how this function works. https://github.com/DaniilVdovin/Material-Pointer-Cpp/blob/e5cfa15c414922db5fef19389cffbb7691890eca/Source/Pointers/2.cpp#L1-L15
  3. ✅ Write a function that takes the radius of the circle as arguments and returns its area and the length of the arc. Write a program to demonstrate how this function works. https://github.com/DaniilVdovin/Material-Pointer-Cpp/blob/e5cfa15c414922db5fef19389cffbb7691890eca/Source/Pointers/3.cpp#L1-L16
  4. ✅ Write a function that takes the legs of a right triangle as arguments and returns its angles. Write a program to demonstrate how this function works. https://github.com/DaniilVdovin/Material-Pointer-Cpp/blob/e5cfa15c414922db5fef19389cffbb7691890eca/Source/Pointers/4.cpp#L1-L16
  5. ✅ Write a function that takes three sides of a parallelepiped as arguments and returns its volume and surface area. Write a program to demonstrate how this function works. https://github.com/DaniilVdovin/Material-Pointer-Cpp/blob/e5cfa15c414922db5fef19389cffbb7691890eca/Source/Pointers/5.cpp#L1-L16
  6. ✅ Write a function that takes two numbers as arguments and returns the greatest and least common divisors. Write a program to demonstrate how this function works. https://github.com/DaniilVdovin/Material-Pointer-Cpp/blob/e5cfa15c414922db5fef19389cffbb7691890eca/Source/Pointers/6.cpp#L1-L25
  7. ✅ Write a function that takes the legs of a right triangle as arguments and returns the value of the hypotenuse, the radius of the inscribed and circumscribed circle. Write a program to demonstrate how this function works. https://github.com/DaniilVdovin/Material-Pointer-Cpp/blob/e5cfa15c414922db5fef19389cffbb7691890eca/Source/Pointers/7.cpp#L1-L16
  8. ✅ Write a function that takes the height and radius of the cylinder as arguments, and returns its volume and surface area. Write a program to demonstrate how this function works. https://github.com/DaniilVdovin/Material-Pointer-Cpp/blob/e5cfa15c414922db5fef19389cffbb7691890eca/Source/Pointers/8.cpp#L1-L16
  9. ✅ Write a function that takes two numbers as arguments and returns a reduced fraction (25 15, 5/3). Write a program to demonstrate how this function works. https://github.com/DaniilVdovin/Material-Pointer-Cpp/blob/e5cfa15c414922db5fef19389cffbb7691890eca/Source/Pointers/9.cpp#L1-L22
  10. ✅ Write a function that takes three sides of a triangle as arguments and returns the perimeter of the triangle and the area calculated using the Heron formula. Write a program to demonstrate how this function works. https://github.com/DaniilVdovin/Material-Pointer-Cpp/blob/041c44a93048d503b16a84e2cc6b07e6cbc6f11c/Source/Pointers/10.cpp#L1-L16
  11. ❌ Write a function that takes the value of the acute angle of a right-angled triangle and the length of the hypotenuse as arguments, and returns the length of the legs, the area of the triangle and the radius of the circumscribed circle. Write a program to demonstrate how this function works.
  12. ❌ Write a function that takes the base of an isosceles trapezoid as arguments and returns the perimeter, area and height of the trapezoid. Write a program to demonstrate how this function works.
  13. ❌ Write a function that takes age (number of years) as an argument and returns the number of months, days, hours and minutes lived.
  14. ❌ Write a function that takes as an argument the value of the first and second elements of an arithmetic progression and returns the difference of this progression, the 15th element and the sum of its first 50 members.
  15. ❌ Write a function that takes as an argument the value of the first and second element of a geometric progression and returns the denominator of this progression, the 15th element and the sum of its first 50 members.

Dynamic arrays

  1. ✅ Write a program that generates a dynamic array of all primes before N and displays them on the screen. https://github.com/DaniilVdovin/Material-Pointer-Cpp/blob/e5cfa15c414922db5fef19389cffbb7691890eca/Source/Dynamic%20arrays/1.cpp#L1-L26
  2. ✅ Write a program that, given a natural number n, prints all its prime natural divisors, taking into account the multiplicity. The running time of the program must be proportional to the root of n. https://github.com/DaniilVdovin/Material-Pointer-Cpp/blob/e5cfa15c414922db5fef19389cffbb7691890eca/Source/Dynamic%20arrays/2.cpp#L1-L27
  3. ✅ Given a number N. Form a dynamic array consisting of the first N Fibonacci numbers (recall that they are given by the recurrent formula Fn = Fn-1 + Fn-2, F1 = F2 = 1). https://github.com/DaniilVdovin/Material-Pointer-Cpp/blob/e5cfa15c414922db5fef19389cffbb7691890eca/Source/Dynamic%20arrays/3.cpp#L1-L19
  4. ❌ Given an array of integers, consisting of N elements. Fill it out from the keyboard. Count the number of odd elements before the minimum, if there are several of them, form a new array of them.
  5. ✅ Given an array consisting of N elements and an array consisting of M elements. Fill them out from the keyboard. Create an array consisting of the positive elements of the input arrays. https://github.com/DaniilVdovin/Material-Pointer-Cpp/blob/e5cfa15c414922db5fef19389cffbb7691890eca/Source/Dynamic%20arrays/5.cpp#L1-L29
  6. ✅ Given an array consisting of N elements and an array consisting of M elements. Fill them out from the keyboard. Create an array consisting of even elements of the input arrays. https://github.com/DaniilVdovin/Material-Pointer-Cpp/blob/e5cfa15c414922db5fef19389cffbb7691890eca/Source/Dynamic%20arrays/6.cpp#L1-L29
  7. ✅ Given an array of N elements. Create a new array consisting of the positive elements of the input array. https://github.com/DaniilVdovin/Material-Pointer-Cpp/blob/e5cfa15c414922db5fef19389cffbb7691890eca/Source/Dynamic%20arrays/7.cpp#L1-L22
  8. ✅ Given an array of N elements. Create a new array consisting of the negative elements of the input array. https://github.com/DaniilVdovin/Material-Pointer-Cpp/blob/e5cfa15c414922db5fef19389cffbb7691890eca/Source/Dynamic%20arrays/8.cpp#L1-L22
  9. ❌ Given a dynamic array, the size of which is entered from the keyboard. Fill the array with random numbers. Remove K elements from it, starting from the middle of the array.
  10. ❌ Write a program that creates a dynamic array and remove an element from the number N from it, add K elements, starting from the number N. N is entered from the keyboard
  11. ✅ Given an array of integers, consisting of N elements. Fill it out from the keyboard. Create an array consisting of elements whose values are greater than the value of the previous element (starting from the second). https://github.com/DaniilVdovin/Material-Pointer-Cpp/blob/626accbeb960ce58c418cc0b9c402caada1f2ba8/Source/Dynamic%20arrays/11.cpp#L1-L22
  12. ✅ Given an array consisting of N elements and an array consisting of M elements. Fill them out from the keyboard. Find the minimum in the array N, and the maximum in the array M. Form an array consisting of N array elements preceding the minimum element and M array elements following the maximum. https://github.com/DaniilVdovin/Material-Pointer-Cpp/blob/626accbeb960ce58c418cc0b9c402caada1f2ba8/Source/Dynamic%20arrays/12.cpp#L1-L41
  13. ✅ Change the dynamic array of integers so that its positive elements become negative and vice versa. https://github.com/DaniilVdovin/Material-Pointer-Cpp/blob/626accbeb960ce58c418cc0b9c402caada1f2ba8/Source/Dynamic%20arrays/13.cpp#L1-L17
  14. ✅ Given an array consisting of N elements and an array consisting of M elements. Fill them in with random numbers. Create an array consisting of the positive elements of the N array and the negative elements of the M array. https://github.com/DaniilVdovin/Material-Pointer-Cpp/blob/626accbeb960ce58c418cc0b9c402caada1f2ba8/Source/Dynamic%20arrays/14.cpp#L1-L29 And Random Variant. Unfortunately it cannot be tested. https://github.com/DaniilVdovin/Material-Pointer-Cpp/blob/626accbeb960ce58c418cc0b9c402caada1f2ba8/Source/Dynamic%20arrays/14_random.cpp#L1-L24
  15. ❌ Given an array consisting of N elements and an array consisting of M elements. Fill them in with random numbers. Create an array consisting of prime numbers of arrays N and M. The numbers in the new array cannot be repeated.

About

Methodical material. Parsing the topic of c++ pointers. Writing assignments and tests for students

Resources

Code of conduct

Contributing

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages