This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> // для роботи з потоками вводу/виводу | |
#include <windows.h> // щоб використати функцію SetConsoleOutputCP | |
#include <string> // щоб застосувати рядковий тип | |
#include <cstdlib> // для роботи з генерацією випадкових чисел | |
#include <ctime> // те саме | |
using namespace std; | |
// ПОЧАТОК КОДУ ЗАДАЧІ | |
// 1. Реалізувати калькулятор. Вводяться 2 будь-яких дійсних числа в |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
USE [Цінники] | |
-- 1. Порахувати можливий дохід за автоматичні вимикачі та рубильники (з урахуванням знижок на ці товари). | |
SELECT ROUND(SUM(price_EUR * (1 - discount / 100) * quantity), 2) | |
AS 'Виручка за автоматичні вимикачі та рубильники, євро' | |
-- https://learn.microsoft.com/ru-ru/sql/t-sql/language-elements/in-transact-sql?view=sql-server-ver16 | |
-- https://learn.microsoft.com/ru-ru/sql/t-sql/functions/round-transact-sql?view=sql-server-ver16 | |
-- https://learn.microsoft.com/ru-ru/sql/t-sql/functions/sum-transact-sql?view=sql-server-ver16 | |
FROM [dbo].[Електротовари] | |
WHERE category IN ('TMAX moulded case circuit breakers', 'ETIMAT Circuit breakers', |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
USE [master] | |
GO | |
/****** Object: Database [Цінники] Script Date: 08.03.2025 0:37:17 ******/ | |
CREATE DATABASE [Цінники] | |
CONTAINMENT = NONE | |
ON PRIMARY | |
( NAME = N'Цінники', FILENAME = N'C:\Program Files\Microsoft SQL Server\MSSQL16.MSSQLSERVER01\MSSQL\DATA\Цінники.mdf' , SIZE = 8192KB , MAXSIZE = UNLIMITED, FILEGROWTH = 65536KB ) | |
LOG ON | |
( NAME = N'Цінники_log', FILENAME = N'C:\Program Files\Microsoft SQL Server\MSSQL16.MSSQLSERVER01\MSSQL\DATA\Цінники_log.ldf' , SIZE = 8192KB , MAXSIZE = 2048GB , FILEGROWTH = 65536KB ) | |
WITH CATALOG_COLLATION = DATABASE_DEFAULT, LEDGER = OFF |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
#include <Windows.h> | |
#include <cmath> | |
#include <algorithm> | |
using namespace std; | |
// ПОЧАТОК КОДУ ЗАДАЧІ | |
// 1. Написати програму, яка пропонує користувачеві ввести радіус | |
// окружності, а потім обчислює площу та довжину цієї окружності. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
#include <Windows.h> | |
using namespace std; | |
int main() | |
{ | |
// SetConsoleOutputCP(65001); // UTF-8 | |
// setlocale(0, ""); | |
// Встановлюємо кодування консолі для виведення |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# ФІНАЛЬНИЙ ПРОЄКТ з дисципліни PYTHON Core | |
# Телеграм-бот "РАДІАЦІЯ В СВІТІ" within the framework AsyncIOTelegram | |
# Виконав студент гр. СПР411 | |
# Комп'ютерної Академії IT STEP | |
# Качуровський Р.Р. | |
# Одеса 2025 | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import pandas | |
import json | |
import math | |
def load_and_display_csv(filepath): | |
""" | |
Пробує завантажити файл 28,5 ГБ зі значеннями, розділеними комами (csv), | |
за вказаним шляхом filepath. Виводить індекси та назви колонок. | |
Перехоплює перші можливі помилки. Допоміжна функція для визначення |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import os | |
os.system("cls") | |
# ПОЧАТОК КОДУ ЗАДАЧІ | |
print("\tЗАВДАННЯ 2\n") | |
# Написати функцію draw_rectangle, яка виводить на екран прямокутник. | |
# Функція приймає такі параметри: ширина, висота, символ рамки, | |
# символ заповнення. У функції мають бути параметри за замовчуванням. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import random | |
import time | |
# ПОЧАТОК КОДУ ЗАДАЧІ | |
print("\tЗАВДАННЯ 2\n") | |
# Створити список із 20 випадкових чисел. Вивести всі елементи масиву | |
# з парними індексами. | |
# Список із 20 випадкових чисел з плаваючою комою в інтервалі [0.0; 1.0) | |
random_numbers = [random.random() for _ in range(20)] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import string | |
import re | |
import secrets | |
# Завдання на strings (бажано всі 9 задач, але вистачить 5): | |
# ПОЧАТОК КОДУ ЗАДАЧІ | |
print("\tЗАВДАННЯ 1\n") | |
# Підрахувати середню довжину слова у введеному реченні. |