Oleksandr L.
Winning proposal- Projects 384
- Rating 5.0
- Rating 13 113
Budget: 300 UAH Deadline: 1 day
Hello to you!
Please contact me, I will draw out the formula and make a calculator.
_________________________________
Scape: Prof-studio 1
Budget: 250 UAH Deadline: 1 day
I am ready to fulfill your task. You just need to clarify: in what form do you want to have the formula?
Calculator can also be done, but again the question is: in what form?
Budget: 250 UAH Deadline: 1 day
I will perform
Proposals concealed
Proposals are currently absent
-
Sergey Morlang 4 September 2015Так собственно функция есть на сайте
function modify_qty(val) {
var peptidmg = parseInt(document.getElementById("peptidmg").value, 10);
var ml = parseInt(document.getElementById("ml").value, 10);
var dozen = parseInt(document.getElementById("dozen").value, 10);
var new_qty100 = dozen/(((peptidmg*1000)/ml)/100);
var new_qty40 = dozen/(((peptidmg*1000)/ml)/40);
document.getElementById("result100").value = new_qty100;
document.getElementById("result40").value = new_qty40;
var yourImg = document.getElementById('lin100');
if(yourImg && yourImg.style) {
yourImg.style.height = 15 +'px';
yourImg.style.width = (4.68*new_qty100) +'px';
}
var yourImg2 = document.getElementById('lin40');
if(yourImg2 && yourImg2.style) {
yourImg2.style.height = 15 +'px';
yourImg2.style.width = (8.3*new_qty40) +'px';
}
return new_qty100;
return new_qty40;
}
-
Sergey Morlang 4 September 2015А если убрать все лишнее то вот она:
function modify_qty(val) {
var peptidmg = parseInt(document.getElementById("peptidmg").value, 10);
var ml = parseInt(document.getElementById("ml").value, 10);
var dozen = parseInt(document.getElementById("dozen").value, 10);
var new_qty100 = dozen/(((peptidmg*1000)/ml)/100);
var new_qty40 = dozen/(((peptidmg*1000)/ml)/40);
return new_qty100;
return new_qty40;
}
-
Victor Petrov 4 September 2015вообще то функция возвращает только одно значение.
впервые вижу функцию в которой два рета.
-
Sergey Morlang 4 September 2015Это копипаст со страницы.
В нормальных языках, возвращать несколько результатов это нормально ;)
-
Victor Petrov 4 September 2015В любых нормальных языках ФУНКЦИЯ возвращает всегда только одно значение. Возвращаемое значение может быть ссылкой на массив значений, или на объект - но это уже другой вопрос.
Дело в том что здесь будет работать только первый return - вот что я хотел донести.
-
Sergey Morlang 7 September 2015Давайте еще раз. Это копипаст с РАБОЧЕГО сайта, и оно РАБОТАЕТ. А про возвращаемые значения, почитайте, откроете для себя много нового :)
-
Victor Petrov 7 September 2015Видите ли, аргумент "рабочего" или "работает" вообще не доказывает ничего в данном случае, т.к. второй ритурн попросту не выполняется, а работать может и криво написанный код. Что забавно, старикан Аристотель насчитал у мух восемь ног. И даже в Средние Века это заблуждение стойко держалось в умах и кочевало из книги в книгу, хотя опровергнуть его можно было путём элементарной поимки мухи и подсчёта у неё ног, не отходя от кассы. Так и здесь - бездумный копипаст якобы "работающего" кода очень веселит людей, освоивших программирование хотя бы в объеме первого курса института. Лично я программирую уже больше 20 лет, и про возвращаемые значения вполне могу Вам столько рассказать, сколько Вам до этого и не снилось. Однако в данном случае просто тыкну в первое же попавшееся сюда тыц, где Вы, надеюсь, сможете прочитать что "При вызове оператора
returnв функции, выполнение этой функции прекращается.". Не знать таких элементарных вещей, уважаемый, и расписать у себя в резюме владение С# и "Прикладным программированием" - ну я даже не знаю, какое тут покультурнее слово можно подобрать... -
Sergey Morlang 7 September 2015Проехали. Вот, для общего развития: https://msdn.microsoft.com/ru-ru/library/t3c3bfhx....
Удачи.
Current freelance projects in the category Desktop Apps
Good day It is necessary to create a module that will work with the Firebird database in C++ for selling products. There are examples of ready-made solutions and a description of the module's functionality. Main functions: authorization, selection of products on the screen from groups/subgroups, transition to the cart, payment by card, and printing the receipt. The program must work on Windows 10 and above, using the existing database.
Write and create a mobile application. A creative and highly professional approach is needed, as the idea of the application is not ordinary)
Hello. I am looking for a mentor in Linux. I have experience as a strong junior DevOps specialist, but Linux and Kubernetes are my weak points. While I have some project experience with Kubernetes, my interaction with Linux is very superficial. Creating something, adding, renaming, opening, etc. is clearly not enough. I need a mentor who can help me improve in this area. The main task is to ensure that the knowledge sticks in my head, possibly through some pet project, tasks, or something along those lines, rather than just "repeat after me." I have taken courses on my own, but they don't particularly "stick" in my head. Here is a rough list of what I think I need: - Linux/Unix systems — in-depth administration of operating systems, file systems, user and access rights management, processes and services (systemd), Bash scripting, logging, monitoring, security configuration, automation of administrative tasks; - Networking technologies — OSI model and TCP/IP stack, DNS, HTTP/HTTPS, SSL/TLS, SSH, VPN, load balancing, proxy servers, NAT, routing, network utilities (ping, traceroute, netstat, ss, tcpdump, curl), diagnosing and troubleshooting network issues; If Kubernetes can be added to this list, that would be great. Perhaps you can suggest something from your side. The format of the sessions, as I see it, is twice a week, meetings, discussions, consultations. More details can be your ideas and suggestions. Regarding the cost per hour or per month - please propose.
Development of a Power App, support for me as a beginner. Canvas App, assistance in developing the Screen Help in developing the data structure for the App Programming functions Assistance in creating Date-verse Tables