Order B-361, code C
Task 1 : Write a function that allows you to calculate the sum of the numbers from the massive, located between the last two nulls (if the last nulls go in a row, then draw 0).Use this feature in a program that asks the user a whole number of N (contained by the user) and a massive number of N whole numbers containing at least two zero.Task 2: Set up a task
Write a task resolution program with the option with the mandatory use of the functions to describe the actions to be repeated, namely:
introduction of the massive elements;
The extraction of the massive elements;
Execution over the mass of actions requested by the option.Use of dynamic memory distribution.Requirements for the Program
1 .The algorithms of all functions should not depend on global data, i.e. the masses and other data that are transmitted to and returned from the function must be transmitted as parameters or values (results) of the function.The 2ndThe use of the types of parameters in the functions should be logical in terms of the speed of the program and the economics of the use of the operating memory of the computer.3 .In the tests the value of the massive elements will be selected in such a way that the massive processing algorithm has verified all situations that may arise for the given algorithm, i.e. to demonstrate the full correctness and universality of the algorithm.There are three mattresses of whole numbers: A[7,4], B[6,5], C[6,8].Calculate the sum of the elements separately in each row of assigned matrix.The work contains 2 tasks, resulting in two codes of the working program and completing the confirmation that the given program works
Виконати лабораторну роботу на 09.02
Завдання 1 : Написати функцію, що дозволяє обчислити суму чисел з масиву, розташованих між останніми двома нулями (якщо останні нулі йдуть підряд, то вивести 0). Використати цю функцію у програмі, яка запитує у користувача ціле число N (вказує користувач) і масив з N цілих чисел, що містить принаймні два нулі.
Завдання 2 : Постановка задачі
Написати програму розв’язку завдання за варіантом з обов’язковим використанням функцій для опису дій, які повинні повторюватися, а саме:
- введення елементів масиву;
- виведення елементів масиву;
- виконання над масивом дій, заданих за варіантом.
Обов‘язкове використання динамічного виділення пам‘яті.
Вимоги до програми
1. Алгоритми усіх функцій не повинні залежати від глобальних даних, тобто масиви та інші дані, які передаються до функції та повертаються з них, повинні передаватися як параметри або значення (результат) функції.
2. Використання видів параметрів у функціях повинно бути логічним з точки зору швидкодії програми та економності використання оперативної пам’яті комп’ютера.
3. В тестах значення елементів масивів підібрати таким чином, щоб в алгоритмі обробки масиву були перевірені всі ситуації, які можуть виникнути для заданого алгоритма, тобто продемонструвати повну коректність та універсальність алгоритма.
Дано три матриці цілих чисел A[7,4], B[6,5], C[6,8]. Обчислити суму елементів окремо в кожному рядку заданих матриць.
Робота містить 2 завдання , в результаті потрібно два кода працюючої програми і скіншоти підтвердження що дана програма працює
-
I can do everything quickly and quality, I can show how it works, two codes have already written, I wait for a reply)
Можу все зробити швидко і якісно, можу показати як це працює, два кода вже написав, очікую на відповідь)
-
291 3 0 Welcome to. I am pleased to do your work properly and timely.
I’m ready to resolve your tasks, so you’ll get the results quickly.
Вітаю. З радістю виконаю для Вас роботу якісно та вчасно.
Маю вже готові рішення Ваших завдання, тож результат отримаєте швидко
-
4420 181 0 Good day . I can do your project. As far as I understood. The text
The three matrix of the whole numbers are given to A[7,4], B[6,5], C[6,8]. Calculate the sum of the elements separately in each row of the matrix." This is the action you need to do according to the option for 2 tasks.
Доброго дня. Можу виконати ваш проект. Наскільки я зрозумів. Текст
" Дано три матриці цілих чисел A[7,4], B[6,5], C[6,8]. Обчислити суму елементів окремо в кожному рядку заданих матриць." - це дії що потрібно зробити згідно варіанту для 2 завдання.
-
336 9 0 Hello to you!
Ready to implement your project. He has written programs for laboratory works several times.
I have experience with C and C++.
Здравствуйте!
Готов выполнить Ваш проект. Уже не раз писал программы для лабораторных работ.
Имеется опыт работы с C и C++.
-
751 19 2 Good morning, I have done a lot of laboratory work in the language C. I will be glad to work with you. I wait for answers.
Добрий день, виконував багато лабораторних робіт на мові С. Буду радий працювати разом з вами. Чекаю відповіді.
-
Дано три матриці цілих чисел A[7,4], B[6,5], C[6,8]. Обчислити суму елементів окремо в кожному рядку заданих матриць.
Це третє завдання? -
Current freelance projects in the category C and C++
Project for the development of software for microcontrollersGreetings! I am looking for a specialist or team who can develop software for distributed microcontrollers such as Arduino, ESP, or Raspberry-Pi. Key points: - the controller should receive 5 analog signals as input, - it should also output 5 analog signals, - the controller… C and C++, System programming ∙ 1 proposal |
Script that will interact based on the imageI need a script that will interact based on the image + text (product name on the screen) + price. In other words, the script should click on the platform logo (white text in the top left) to update the range of products (every 3-5 seconds), then there should be a search by… C and C++, Python ∙ 8 proposals |
Create a bot telegram with GPT integration
306 USD
The technical task: 1) Create a bot telegram for example, When you start asking the language: The Russian The English The rest is the example of the first bot: to propose to send a photo from which the face will be taken, the second - to ask for a video on which the face… C and C++, Python ∙ 12 proposals |
Configurate the data exchange between Jetson nano and another device by can shiSet the data exchange between the jetson nano and other device on the can band using the RS485 CAN documentation and examples here: https://www.waveshare.com/wiki/RS485_CAN_for_Jetson_Nano The data package that is transmitted is broken down on the frame size of 8 bytes, the… C and C++, Linux and Unix ∙ 2 proposals |
Infrared temperature sensor ZigBeeRequired an infrared temperature sensor with data transmission through the ZigBee protocol to the Home Assistants server in MQTT Equipment of : Module ESP32-C6-WROOM-1-N8 Infrared thermometer MLX90614 + Add LED laser to indicate where the temperature is scored C and C++, Embedded systems and microcontrollers ∙ 1 proposal |