Метод Баллаша, метод Фора и Мальгранжа и другое (Delphi) – №1085548
Закрыт
Фрилансеры предложат решение вашей задачи уже через несколько минут!
Публикация заказа на фриланс бирже не займет много времени.
Необходимо сделать задания, используя:
- метод Баллаша, метод Фора и Мальгранжа;
- способ «северо-западного угла», Распределительный метод (ЭТИ ЗАДАЧКИ УЖЕ РЕШЕНЫ, осталось лишь их запрограммировать);
- Венгерский метод. Метод решения Мака;
Это вроде как из линейного программирования.
В целом, все задачки надо сделать, оформить в ворде + запрограммировать, используя delphi.
Сами задачи прикрепляю для ознакомления.
По срокам, цене и тд тп - жду предложений.
- Прием заявок
- Выбор исполнителя
- Выполнение заказа
- Обмен отзывами
Заявки фрилансеров
Другие заказы в категории «Лабораторные работы»
программы на си++ к лабораторным в основном исходящим из одной
нужно до 10-11 января
мой вариант:
Предметная область:Техническое обслуживание (ТО) ... Читать дальше
нужно до 10-11 января
мой вариант:
Предметная область:Техническое обслуживание (ТО) ... Читать дальше
программы на си++ к лабораторным в основном исходящим из одной
нужно до 10-11 января
мой вариант:
Предметная область:Техническое обслуживание (ТО) автомобилей
Структурный тип данных:
Транспортное средство (vehicle)
Элементы структуры:
ФИО владельца (owner)
Регистрационный номер (reg_number)
Тип автомобиля (type)
Марка автомобиля (brand)
Объем двигателя (volume)
Мощность двигателя (power)
Дата последнего ТО (last_to)
Пробег (mileage)
Задание:
1) Вывести на экран регистрационные номера всех автомобилей с пробегом свыше
100000 км.
2) Вывести на экран фамилии владельцев всех автомобилей, прошедших ТО в
течение последнего месяца.
мой код:
#include "pch.h"
#include <cstdlib>
#include <string>
#include <iostream>
#include <fstream>
#include <locale>
using namespace std;
struct vehicle
{
string owner;
int reg_number;
string type;
string brand;
int volume;
int power;
int last_to;
int mileage;
};
vehicle read_info(ifstream &file)
{
vehicle naruto;
getline(file, naruto.owner);
file >> naruto.reg_number;
getline(file, naruto.type);
getline(file, naruto.brand);
file >> naruto.volume;
file >> naruto.power;
file >> naruto.last_to;
file >> naruto.mileage;
file.get();
return naruto;
}
void print_info(vehicle naruto, int i)
{
cout << "Enter quolity of AUTOS #" << i + 1 << endl;
cout << " owner's FIO - ";
cout << naruto.owner << endl;
cout << " register number - ";
cout << naruto.reg_number << endl;
cout << " type of auto - ";
cout << naruto.type << endl;
cout << " brand of auto - ";
cout << naruto.brand << endl;
cout << " volume - ";
cout << naruto.volume << endl;
cout << " power of egine - ";
cout << naruto.power << endl;
cout << " date of last tech - ";
cout << naruto.last_to << endl;
cout << " mileage - ";
cout << naruto.mileage << endl;
cout << "\n";
}
void program_1(vehicle naruto, int N)
{
for (int i = 0; i << N; i++) {
if (naruto.mileage > 100000)
{
cout << " register number - %d/n" << naruto.reg_number << endl;
}
}
system("pause");
}
void program_2(vehicle naruto, int N)
{
for (int i = 0; i << N; i++) {
if (naruto.last_to >= 1201)
{
cout << " Owner's FIO - %s/n" << naruto.owner << endl;
}
}
system("pause");
}
void menu()
{
cout << "\n-----------------------------------------------------------------------" << endl;
cout << "\nTasks: \n" << endl;
cout << "\n1 - Display the registration numbers of all vehicles with mileage over 100000 km" << endl;
cout << "\n2 - Display the names of the owners of all vehicles that have passed MOT within the last month." << endl;
cout << "\nTo finish the program enter: -1" << endl;
cout << "\nTo repeat the menu call, enter: 0" << endl;
cout << "\n-----------------------------------------------------------------------" << endl;
}
int N;
vehicle* naruto;
int main()
{
int n;
ifstream infile;
infile.open("file.txt");
infile >> N;
infile.get();
naruto = new vehicle;
for (int i = 0; i < N; i++)
naruto = read_info(infile);
infile.close();
for (int i = 0; i < N; i++)
print_info(naruto, i);
menu();
do
{
cout << "\n-----------------------------------------------------------------------" << endl;
cout << "\nEnter task number: \n" << endl;
cout << "-----------------------------------------------------------------------\n" << endl;
cin >> n;
cout << "-----------------------------------------------------------------------" << endl;
switch (n)
{
case 0: menu();
break;
case 1:
program_1(naruto, N);
break;
case 2:
program_2(naruto, N);
break;
default:
cout << "\nThere are no tasks under the given number!\n" << endl;
}
} while (n != -1);
cout << "\nThe end.\n" << endl;
delete naruto;
system("pause");
return 0;
} Свернуть
нужно до 10-11 января
мой вариант:
Предметная область:Техническое обслуживание (ТО) автомобилей
Структурный тип данных:
Транспортное средство (vehicle)
Элементы структуры:
ФИО владельца (owner)
Регистрационный номер (reg_number)
Тип автомобиля (type)
Марка автомобиля (brand)
Объем двигателя (volume)
Мощность двигателя (power)
Дата последнего ТО (last_to)
Пробег (mileage)
Задание:
1) Вывести на экран регистрационные номера всех автомобилей с пробегом свыше
100000 км.
2) Вывести на экран фамилии владельцев всех автомобилей, прошедших ТО в
течение последнего месяца.
мой код:
#include "pch.h"
#include <cstdlib>
#include <string>
#include <iostream>
#include <fstream>
#include <locale>
using namespace std;
struct vehicle
{
string owner;
int reg_number;
string type;
string brand;
int volume;
int power;
int last_to;
int mileage;
};
vehicle read_info(ifstream &file)
{
vehicle naruto;
getline(file, naruto.owner);
file >> naruto.reg_number;
getline(file, naruto.type);
getline(file, naruto.brand);
file >> naruto.volume;
file >> naruto.power;
file >> naruto.last_to;
file >> naruto.mileage;
file.get();
return naruto;
}
void print_info(vehicle naruto, int i)
{
cout << "Enter quolity of AUTOS #" << i + 1 << endl;
cout << " owner's FIO - ";
cout << naruto.owner << endl;
cout << " register number - ";
cout << naruto.reg_number << endl;
cout << " type of auto - ";
cout << naruto.type << endl;
cout << " brand of auto - ";
cout << naruto.brand << endl;
cout << " volume - ";
cout << naruto.volume << endl;
cout << " power of egine - ";
cout << naruto.power << endl;
cout << " date of last tech - ";
cout << naruto.last_to << endl;
cout << " mileage - ";
cout << naruto.mileage << endl;
cout << "\n";
}
void program_1(vehicle naruto, int N)
{
for (int i = 0; i << N; i++) {
if (naruto.mileage > 100000)
{
cout << " register number - %d/n" << naruto.reg_number << endl;
}
}
system("pause");
}
void program_2(vehicle naruto, int N)
{
for (int i = 0; i << N; i++) {
if (naruto.last_to >= 1201)
{
cout << " Owner's FIO - %s/n" << naruto.owner << endl;
}
}
system("pause");
}
void menu()
{
cout << "\n-----------------------------------------------------------------------" << endl;
cout << "\nTasks: \n" << endl;
cout << "\n1 - Display the registration numbers of all vehicles with mileage over 100000 km" << endl;
cout << "\n2 - Display the names of the owners of all vehicles that have passed MOT within the last month." << endl;
cout << "\nTo finish the program enter: -1" << endl;
cout << "\nTo repeat the menu call, enter: 0" << endl;
cout << "\n-----------------------------------------------------------------------" << endl;
}
int N;
vehicle* naruto;
int main()
{
int n;
ifstream infile;
infile.open("file.txt");
infile >> N;
infile.get();
naruto = new vehicle;
for (int i = 0; i < N; i++)
naruto = read_info(infile);
infile.close();
for (int i = 0; i < N; i++)
print_info(naruto, i);
menu();
do
{
cout << "\n-----------------------------------------------------------------------" << endl;
cout << "\nEnter task number: \n" << endl;
cout << "-----------------------------------------------------------------------\n" << endl;
cin >> n;
cout << "-----------------------------------------------------------------------" << endl;
switch (n)
{
case 0: menu();
break;
case 1:
program_1(naruto, N);
break;
case 2:
program_2(naruto, N);
break;
default:
cout << "\nThere are no tasks under the given number!\n" << endl;
}
} while (n != -1);
cout << "\nThe end.\n" << endl;
delete naruto;
system("pause");
return 0;
} Свернуть
Завершен 12 дней назад
Решение лабораторной в каждой из них 8 вариант
$10
4 заявки
Закрыт 12 дней назад
Есть аудио пояснение и скрин который может помочь в понимание задания и так же нужно будет кратко написать инструкцию (пояснение) ... Читать дальше
Есть аудио пояснение и скрин который может помочь в понимание задания и так же нужно будет кратко написать инструкцию (пояснение) к элементам какие зачем и за что отвечают Свернуть
1 заявка
Закрыт 1 день назад
Выполнить 6 лабораторных работ по методичке. К каждой работе описать порядок действий.
1 заявка
Закрыт 2 дня назад