Post your project for free and start receiving proposals from freelancers within minutes after publication!
Переписать код на C# под Zennoposter
На входе у меня список searches нужно написать на C# на каком языке написано увы не знаю
Заранее благодарен
var previousData = void 0;
var todayData = void 0;
var count = void 0;
var data = void 0;
if (searches.length > 30) {
data = searches.slice(-30);
} else {
data = searches;
}
var firstRecord = parseInt(data[0], 10);
if (data.length < 6) {
if (data.length === 1) {
previousData = firstRecord;
} else {
previousData = firstRecord;
for (var index = 1; index < data.length; index += 1) {
count = index + 1;
todayData = previousData + (data[index] - previousData) / count * 0.2;
previousData = todayData;
}
}
return Math.round(previousData);
}
previousData = firstRecord;
for (var _index = 1; _index < data.length; _index += 1) {
if (_index < 5) {
count = _index + 1;
todayData = previousData + (data[_index] - previousData) / count * 0.2;
previousData = todayData;
} else {
count = _index + 1;
todayData = previousData + (data[_index] - previousData) / count;
previousData = todayData;
}
}
return Math.round(previousData);
Current freelance projects in the category C#
Refinement of 1C UT 11 for Zebra TSD (RDP): different sound signals when scanning
22 USD
Configuration: 1C UT 11 Address warehouse Zebra TC26 TSD Work via RDP Product scanning is performed in receiving, placement, picking documents, and other warehouse operations. Current problem: Warehouse workers operate through the Zebra TSD. When scanning, they do not always… C#, Databases & SQL ∙ 3 days 2 hours back ∙ 6 proposals |