{"id":432,"date":"2023-03-18T08:00:00","date_gmt":"2023-03-18T05:00:00","guid":{"rendered":"http:\/\/professor.norton.net.br\/?p=432"},"modified":"2023-03-18T16:04:08","modified_gmt":"2023-03-18T13:04:08","slug":"comando-de-selecao-aninhado-e-comando-de-escolha","status":"publish","type":"post","link":"https:\/\/professor.norton.net.br\/index.php\/2023\/03\/18\/comando-de-selecao-aninhado-e-comando-de-escolha\/","title":{"rendered":"ALG &#8211; Comando de sele\u00e7\u00e3o aninhado"},"content":{"rendered":"<p><a href=\"https:\/\/professor.norton.net.br\/wp-content\/uploads\/2015\/08\/ALG_031.pptx\">Apresenta\u00e7\u00e3o<\/a><\/p>\n<p><iframe loading=\"lazy\" src=\"https:\/\/www.youtube.com\/embed\/k8zGNaIBHn8\" width=\"560\" height=\"315\" frameborder=\"0\" allowfullscreen=\"allowfullscreen\"><\/iframe><\/p>\n<p><a href=\"https:\/\/professor.norton.net.br\/wp-content\/uploads\/2018\/09\/alg06.zip\">Exemplo<\/a><\/p>\n<p><strong>Atividade<\/strong><\/p>\n<p>Assunto: ALG05<\/p>\n<ol>\n<li>Informe as duas notas de um aluno (P1 e P2) e a quantidade de faltas no semestre, calcule a media das notas e o percentual de faltas sobre 20 aulas. \u00a0Caso o percentual de faltas for maior que 30% o aluno esta automaticamente reprovado, caso ao contrario verifique se a media e maior igual a 6, \u00a0se afirmativo o aluno esta aprovado, sen\u00e3o informe uma nota P3 para recalcular a media, se a nova media for maior igual a 6, escreva aprovado no exame, caso negativo exiba reprovado por nota.<\/li>\n<li>Informe dois n\u00fameros reais e um n\u00famero inteiro que represente a opera\u00e7\u00e3o matem\u00e1tica a ser realizada (1-soma, 2-subtra\u00e7\u00e3o, 3- multiplica\u00e7\u00e3o, 4-divis\u00e3o) utilize o comando\u00a0sele\u00e7\u00e3o aninhado\u00a0e exiba o resultado da opera\u00e7\u00e3o matem\u00e1tica escolhida.<\/li>\n<\/ol>\n","protected":false},"excerpt":{"rendered":"<p>Apresenta\u00e7\u00e3o Exemplo Atividade Assunto: ALG05 Informe as duas notas de um aluno (P1 e P2) e a quantidade de faltas no semestre, calcule a media das notas e o percentual de faltas sobre 20 aulas. \u00a0Caso o percentual de faltas for maior que 30% o aluno esta automaticamente reprovado, caso ao contrario verifique se a <span class=\"readmore\"><a class=\"more-link\" href=\"https:\/\/professor.norton.net.br\/index.php\/2023\/03\/18\/comando-de-selecao-aninhado-e-comando-de-escolha\/\">Read More &#8230;<\/a><\/span><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"om_disable_all_campaigns":false,"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[17],"tags":[],"class_list":["post-432","post","type-post","status-publish","format-standard","hentry","category-algoritmos"],"_links":{"self":[{"href":"https:\/\/professor.norton.net.br\/index.php\/wp-json\/wp\/v2\/posts\/432","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/professor.norton.net.br\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/professor.norton.net.br\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/professor.norton.net.br\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/professor.norton.net.br\/index.php\/wp-json\/wp\/v2\/comments?post=432"}],"version-history":[{"count":2,"href":"https:\/\/professor.norton.net.br\/index.php\/wp-json\/wp\/v2\/posts\/432\/revisions"}],"predecessor-version":[{"id":5611,"href":"https:\/\/professor.norton.net.br\/index.php\/wp-json\/wp\/v2\/posts\/432\/revisions\/5611"}],"wp:attachment":[{"href":"https:\/\/professor.norton.net.br\/index.php\/wp-json\/wp\/v2\/media?parent=432"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/professor.norton.net.br\/index.php\/wp-json\/wp\/v2\/categories?post=432"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/professor.norton.net.br\/index.php\/wp-json\/wp\/v2\/tags?post=432"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}