{"id":851,"date":"2022-01-04T10:26:50","date_gmt":"2022-01-04T09:26:50","guid":{"rendered":"http:\/\/yb-isn.fr\/2021\/nsi\/raphaelle\/?p=851"},"modified":"2022-01-04T10:36:44","modified_gmt":"2022-01-04T09:36:44","slug":"hauteur-du-plafond-nuageux","status":"publish","type":"post","link":"http:\/\/yb-isn.fr\/2021\/nsi\/raphaelle\/2022\/01\/04\/hauteur-du-plafond-nuageux\/","title":{"rendered":"Hauteur du plafond nuageux"},"content":{"rendered":"\n<p>Enonc\u00e9 : calculer et afficher la hauteur du plafond nuageux \u00e0 partir de la temp\u00e9rature et du taux d\u2019humidit\u00e9 dans une page web.<\/p>\n\n\n\n<p><\/p>\n\n\n\n<p class=\"has-text-color has-background\" style=\"background-color:#b6e3ff;color:#008ee1\"><strong>II &#8211;&nbsp;R\u00e9solution&nbsp;: python<\/strong><\/p>\n\n\n\n<p>1 &#8211; Coder la m\u00e9thode de calcul en python<\/p>\n\n\n\n<p>2 &#8211; Ecrire le script d&rsquo;une fonction que nous allons am\u00e9liorer progressivement<\/p>\n\n\n\n<ul><li>affichage des types<\/li><li>documentation<\/li><li>assertion<\/li><\/ul>\n\n\n\n<p>Jupyter notebook : https:\/\/colab.research.google.com\/drive\/1x2fhMS8oI6poGh<a href=\"https:\/\/colab.research.google.com\/drive\/1x2fhMS8oI6poGh-KcztCt-YvigkcW1NZ?usp=sharing\" data-type=\"URL\" data-id=\"https:\/\/colab.research.google.com\/drive\/1x2fhMS8oI6poGh-KcztCt-YvigkcW1NZ?usp=sharing\">-KcztCt-YvigkcW1NZ?usp=sharing<\/a><\/p>\n\n\n\n<p><\/p>\n\n\n\n<p class=\"has-text-color has-background\" style=\"background-color:#b1d2ff;color:#066fe5\"><strong>III &#8211; R\u00e9solution : JavaScript<\/strong><\/p>\n\n\n\n<p class=\"has-text-color\" style=\"color:#066fe5\">I<strong>II &#8211; A &#8211; code html de la page web<\/strong><\/p>\n\n\n\n<p><\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"html\" data-enlighter-theme=\"godzilla\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">&lt;html lang=\"fr\"&gt;\n&lt;head&gt;\n    &lt;title&gt;Nuages&lt;\/title&gt;\n    &lt;meta charset=\"UTF-8\" \/&gt;\n    &lt;link rel=\" stylesheet\" href=\"nuages.css\" \/&gt;\n&lt;\/head&gt;\n&lt;script&gt;\n    function affiche() {\n        var temperature =parseFloat(prompt('temp\u00e9rature en\u00b0C?'));\n        var humiditeR =parseFloat(prompt('humidit\u00e9 relative en %?'));\n        var a = 17.27;\n        var b = 237.7;\n        var meteo=\"\"\n        var alpha = a * temperature \/ (b + temperature) + Math.log(humiditeR * 0.01);\n        var pointRosee = b * alpha \/ (a - alpha);\n        var plafondNuage = 125 * (temperature - pointRosee)\n        var plafondNuageFt =400*(temperature - pointRosee)\n        if(isNaN(plafondNuage)||humiditeR&gt;100||humiditeR&lt;0||isNaN(humiditeR)){meteo=\"erreur\"}\n        else{\n        meteo = \"Le point de ros\u00e9e est \u00e9gal \u00e0 \" + pointRosee.toFixed(0) + \"\u00b0C \" +\"et la base des nuages est \u00e0 \" + plafondNuage.toFixed(0) + \"m .\";\n        meteo = meteo + \"&lt;br&gt;&lt;b&gt;soit \" + plafondNuageFt.toFixed(0) + \" ft .&lt;\/b&gt;\";\n        }\n        document.getElementById(\"test\").innerHTML = \"&lt;b&gt;\" + meteo + \"&lt;\/b&gt;\";\n           }\n&lt;\/script&gt;\n&lt;body&gt;\n    &lt;h2&gt;Hauteur du plafond nuageux&lt;\/h2&gt;&lt;br&gt;\n    &lt;button class=\"button\" onclick=\"affiche()\"&gt;Calculateur&lt;\/button&gt;&lt;br&gt;&lt;br&gt;\n    &lt;h4 id=\"test\"&gt;&lt;\/h4&gt;\n    &lt;\/body&gt;\n&lt;\/html&gt;<\/pre>\n\n\n\n<p><\/p>\n\n\n\n<p class=\"has-text-color\" style=\"color:#0663e5\">III &#8211; <strong>B &#8211; ex\u00e9cution du code html ci-dessus<\/strong><\/p>\n\n\n\n<p><strong>Hauteur du plafond nuageux :<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" width=\"839\" height=\"834\" src=\"http:\/\/yb-isn.fr\/2021\/nsi\/raphaelle\/wp-content\/uploads\/sites\/4\/2022\/01\/image.png\" alt=\"\" class=\"wp-image-866\" srcset=\"http:\/\/yb-isn.fr\/2021\/nsi\/raphaelle\/wp-content\/uploads\/sites\/4\/2022\/01\/image.png 839w, http:\/\/yb-isn.fr\/2021\/nsi\/raphaelle\/wp-content\/uploads\/sites\/4\/2022\/01\/image-300x298.png 300w, http:\/\/yb-isn.fr\/2021\/nsi\/raphaelle\/wp-content\/uploads\/sites\/4\/2022\/01\/image-150x150.png 150w, http:\/\/yb-isn.fr\/2021\/nsi\/raphaelle\/wp-content\/uploads\/sites\/4\/2022\/01\/image-768x763.png 768w\" sizes=\"(max-width: 839px) 100vw, 839px\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" width=\"854\" height=\"867\" src=\"http:\/\/yb-isn.fr\/2021\/nsi\/raphaelle\/wp-content\/uploads\/sites\/4\/2022\/01\/image-1.png\" alt=\"\" class=\"wp-image-868\" srcset=\"http:\/\/yb-isn.fr\/2021\/nsi\/raphaelle\/wp-content\/uploads\/sites\/4\/2022\/01\/image-1.png 854w, http:\/\/yb-isn.fr\/2021\/nsi\/raphaelle\/wp-content\/uploads\/sites\/4\/2022\/01\/image-1-296x300.png 296w, http:\/\/yb-isn.fr\/2021\/nsi\/raphaelle\/wp-content\/uploads\/sites\/4\/2022\/01\/image-1-768x780.png 768w\" sizes=\"(max-width: 854px) 100vw, 854px\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" width=\"810\" height=\"838\" src=\"http:\/\/yb-isn.fr\/2021\/nsi\/raphaelle\/wp-content\/uploads\/sites\/4\/2022\/01\/image-2.png\" alt=\"\" class=\"wp-image-871\" srcset=\"http:\/\/yb-isn.fr\/2021\/nsi\/raphaelle\/wp-content\/uploads\/sites\/4\/2022\/01\/image-2.png 810w, http:\/\/yb-isn.fr\/2021\/nsi\/raphaelle\/wp-content\/uploads\/sites\/4\/2022\/01\/image-2-290x300.png 290w, http:\/\/yb-isn.fr\/2021\/nsi\/raphaelle\/wp-content\/uploads\/sites\/4\/2022\/01\/image-2-768x795.png 768w\" sizes=\"(max-width: 810px) 100vw, 810px\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" width=\"819\" height=\"860\" src=\"http:\/\/yb-isn.fr\/2021\/nsi\/raphaelle\/wp-content\/uploads\/sites\/4\/2022\/01\/image-3.png\" alt=\"\" class=\"wp-image-873\" srcset=\"http:\/\/yb-isn.fr\/2021\/nsi\/raphaelle\/wp-content\/uploads\/sites\/4\/2022\/01\/image-3.png 819w, http:\/\/yb-isn.fr\/2021\/nsi\/raphaelle\/wp-content\/uploads\/sites\/4\/2022\/01\/image-3-286x300.png 286w, http:\/\/yb-isn.fr\/2021\/nsi\/raphaelle\/wp-content\/uploads\/sites\/4\/2022\/01\/image-3-768x806.png 768w\" sizes=\"(max-width: 819px) 100vw, 819px\" \/><\/figure>\n\n\n\n<p>Lien de la page pour inspecter et tester le code : <a rel=\"noreferrer noopener\" href=\"http:\/\/yb-isn.fr\/nuage1\" target=\"_blank\">http:\/\/yb-isn.fr\/nuage1<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Enonc\u00e9 : calculer et afficher la hauteur du plafond nuageux \u00e0 partir de la temp\u00e9rature et du taux d\u2019humidit\u00e9 dans une page web. II &#8211;&nbsp;R\u00e9solution&nbsp;: python 1 &#8211; Coder la m\u00e9thode de calcul en python 2 &#8211; Ecrire le script d&rsquo;une fonction que nous allons am\u00e9liorer progressivement affichage des types documentation assertion Jupyter notebook : [&hellip;]<\/p>\n","protected":false},"author":4,"featured_media":877,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[1],"tags":[],"_links":{"self":[{"href":"http:\/\/yb-isn.fr\/2021\/nsi\/raphaelle\/wp-json\/wp\/v2\/posts\/851"}],"collection":[{"href":"http:\/\/yb-isn.fr\/2021\/nsi\/raphaelle\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/yb-isn.fr\/2021\/nsi\/raphaelle\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/yb-isn.fr\/2021\/nsi\/raphaelle\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"http:\/\/yb-isn.fr\/2021\/nsi\/raphaelle\/wp-json\/wp\/v2\/comments?post=851"}],"version-history":[{"count":22,"href":"http:\/\/yb-isn.fr\/2021\/nsi\/raphaelle\/wp-json\/wp\/v2\/posts\/851\/revisions"}],"predecessor-version":[{"id":878,"href":"http:\/\/yb-isn.fr\/2021\/nsi\/raphaelle\/wp-json\/wp\/v2\/posts\/851\/revisions\/878"}],"wp:featuredmedia":[{"embeddable":true,"href":"http:\/\/yb-isn.fr\/2021\/nsi\/raphaelle\/wp-json\/wp\/v2\/media\/877"}],"wp:attachment":[{"href":"http:\/\/yb-isn.fr\/2021\/nsi\/raphaelle\/wp-json\/wp\/v2\/media?parent=851"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/yb-isn.fr\/2021\/nsi\/raphaelle\/wp-json\/wp\/v2\/categories?post=851"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/yb-isn.fr\/2021\/nsi\/raphaelle\/wp-json\/wp\/v2\/tags?post=851"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}