Лучшее на RU-vid
Кино
Авто/Мото
Видеоклипы
Животные
Спорт
Игры
Приколы
Развлечения
Хобби
Наука
Авторизоваться
Зарегистрироваться
Were Israel’s Actions in the Gaza War Justified? Eylon Levy vs. Mehdi Hasan
1:06:50
This Theory of Everything Could Actually Work: Wolfram’s Hypergraphs
12:00
Хочу клип с Димой Биланом или как я познакомилась с таксистом! #машмилаш #димабилан
00:59
ОБЗОР UFC 308 | ВСЕ БОИ | Илия Топурия, Макс Холлоуэй, Роберт Уиттакер, Хамзат Чимаев, Дэн Иге
18:19
ХРУСТНУЛА ЧЕЛЮСТЬ! Полный Бой Хамзат Чимаев VS Роберт Уиттакер UFC 308 Chimaev Whittaker full fight
02:52
Wait for it 😂
00:19
Using the Arduino to Evaluate the Stock Market
2Bit
Подписаться 1 тыс.
Просмотров 212
50%
1
Видео
Поделиться
Скачать
Добавить в
Опубликовано:
26 окт 2024
Поделиться:
Ссылка:
Скачать:
Готовим ссылку...
Добавить в:
Мой плейлист
Посмотреть позже
Комментарии :
1
@2bit661
10 месяцев назад
// sample code, copy and paste, have fun! #include void setup() { Serial.begin(9600); // Initialize serial communication } void loop() { // Input metrics float peRatio, debtToEquityRatio, profitMargin; // Prompt user for input using Serial Monitor Serial.println("Enter the P/E Ratio:"); while (!Serial.available()) { // Wait for user input } peRatio = Serial.parseFloat(); Serial.println("Enter the Debt to Equity Ratio:"); while (!Serial.available()) { // Wait for user input } debtToEquityRatio = Serial.parseFloat(); Serial.println("Enter the Profit Margin:"); while (!Serial.available()) { // Wait for user input } profitMargin = Serial.parseFloat(); // Define scoring thresholds float peThresholdLow = 10.0; float peThresholdMedium = 15.0; float debtEquityThresholdLow = 0.5; float debtEquityThresholdMedium = 1.0; float profitMarginThresholdHigh = 15.0; float profitMarginThresholdMedium = 10.0; // Initialize scores int peScore = 0; int debtEquityScore = 0; int profitMarginScore = 0; // Scoring for P/E Ratio if (peRatio < peThresholdLow) { peScore = 3; } else if (peRatio < peThresholdMedium) { peScore = 2; } else { peScore = 1; } // Scoring for Debt to Equity Ratio if (debtToEquityRatio < debtEquityThresholdLow) { debtEquityScore = 3; } else if (debtToEquityRatio < debtEquityThresholdMedium) { debtEquityScore = 2; } else { debtEquityScore = 1; } // Scoring for Profit Margin if (profitMargin > profitMarginThresholdHigh) { profitMarginScore = 3; } else if (profitMargin > profitMarginThresholdMedium) { profitMarginScore = 2; } else { profitMarginScore = 1; } // Calculate overall stock score int overallScore = peScore + debtEquityScore + profitMarginScore; // Display individual scores and overall score Serial.println(" Individual Scores:"); Serial.print("P/E Ratio Score: "); Serial.println(peScore); Serial.print("Debt to Equity Ratio Score: "); Serial.println(debtEquityScore); Serial.print("Profit Margin Score: "); Serial.println(profitMarginScore); Serial.print(" Overall Stock Score: "); Serial.println(overallScore); // Wait for the next input delay(5000); }
Далее
1:06:50
Were Israel’s Actions in the Gaza War Justified? Eylon Levy vs. Mehdi Hasan
Просмотров 1,9 млн
12:00
This Theory of Everything Could Actually Work: Wolfram’s Hypergraphs
Просмотров 645 тыс.
00:59
Хочу клип с Димой Биланом или как я познакомилась с таксистом! #машмилаш #димабилан
Просмотров 1,2 млн
18:19
ОБЗОР UFC 308 | ВСЕ БОИ | Илия Топурия, Макс Холлоуэй, Роберт Уиттакер, Хамзат Чимаев, Дэн Иге
Просмотров 257 тыс.
02:52
ХРУСТНУЛА ЧЕЛЮСТЬ! Полный Бой Хамзат Чимаев VS Роберт Уиттакер UFC 308 Chimaev Whittaker full fight
Просмотров 307 тыс.
00:19
Wait for it 😂
Просмотров 4,1 млн
13:52
You'll be Impressed with this Van Life Interior | Full PC Gaming Setup
Просмотров 1,4 млн
12:58
Why did Raspberry Pi make their own SSD?
Просмотров 157 тыс.
31:18
Introducing The Trend Following Edition of Easing into EasyLanguage
Просмотров 170
43:52
E366 Navigating the Bible: Revelation
Просмотров 109 тыс.
50:05
6. Monte Carlo Simulation
Просмотров 2 млн
29:36
When do you use threads?
Просмотров 9 тыс.
3:29:15
Eric Weinstein - Are We On The Brink Of A Revolution? (4K)
Просмотров 8 млн
59:45
Trading at light speed: designing low latency systems in C++ - David Gross - Meeting C++ 2022
Просмотров 206 тыс.
58:20
Think Fast, Talk Smart: Communication Techniques
Просмотров 41 млн
35:02
PIC16F684 Part 013 - Assembly Code Basics: Directives and more
Просмотров 215
00:59
Хочу клип с Димой Биланом или как я познакомилась с таксистом! #машмилаш #димабилан
Просмотров 1,2 млн