{"id":3042,"date":"2016-02-04T14:11:13","date_gmt":"2016-02-04T19:11:13","guid":{"rendered":"http:\/\/blog.espol.edu.ec\/icm00794\/?p=3042"},"modified":"2025-12-11T09:25:18","modified_gmt":"2025-12-11T14:25:18","slug":"2eva2015tii_t2-funcion-totalportipotabla","status":"publish","type":"post","link":"https:\/\/blog.espol.edu.ec\/algoritmos101\/fp-evalua\/fp-2e15\/2eva2015tii_t2-funcion-totalportipotabla\/","title":{"rendered":"2Eva2015TII_T2 funcion totalportipo(tabla)"},"content":{"rendered":"\n<h2 class=\"wp-block-heading\" id=\"2EvaIIT2015\">2da Evaluaci\u00f3n II T\u00e9rmino 2015 \u2013 2016, Febrero 02, 2016 \/ICM00794<\/h2>\n\n\n\n<p><strong>Tema 2<\/strong>. (25 puntos). Realice una funci\u00f3n <strong>totalportipo<\/strong>(<em>tabla<\/em>) para recibir una tabla de tama\u00f1o <strong>n<\/strong>x2 tal como se muestra en el ejemplo.<\/p>\n\n\n\n<p>La columna tipo contiene n\u00fameros enteros que pueden ser repetidos y la columna cantidad tiene un n\u00famero real positivo.<\/p>\n\n\n\n<p>La funci\u00f3n cuenta las veces que aparece cada tipo, y el acumulado de cantidades por cada tipo, entregando la matriz mostrada en el ejemplo.<\/p>\n\n\n\n<p>Ejemplo:<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table><thead><tr><th>tipo<\/th><th>cantidad<\/th><\/tr><\/thead><tbody><tr><td><strong>921<\/strong><\/td><td>5.4<\/td><\/tr><tr><td>1308<\/td><td>6.2<\/td><\/tr><tr><td>806<\/td><td>7.1<\/td><\/tr><tr><td>1308<\/td><td>4.3<\/td><\/tr><tr><td><strong>921<\/strong><\/td><td>2.1<\/td><\/tr><tr><td><strong>921<\/strong><\/td><td>3.1<\/td><\/tr><tr><td>806<\/td><td>2.0<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p>&gt;&gt;totalportipo(tabla)<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table><thead><tr><th>tipo<\/th><th>cuenta<\/th><th>acumulado<\/th><\/tr><\/thead><tbody><tr><td>921<\/td><td>3<\/td><td>10.6<\/td><\/tr><tr><td>1308<\/td><td>2<\/td><td>10.5<\/td><\/tr><tr><td>806<\/td><td>2<\/td><td>9.1<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p><strong>Nota<\/strong>: los encabezados de la tabla son referenciales para el ejemplo<\/p>\n\n\n\n<p><strong>R\u00fabrica<\/strong>: Definir la funci\u00f3n (5 puntos), determinar \u00fanicos (5 puntos), contar tipo (5 puntos), acumular cantidades (5 puntos), algoritmo estructurado (5 puntos)<\/p>\n","protected":false},"excerpt":{"rendered":"<p>2da Evaluaci\u00f3n II T\u00e9rmino 2015 \u2013 2016, Febrero 02, 2016 \/ICM00794 Tema 2. (25 puntos). Realice una funci\u00f3n totalportipo(tabla) para recibir una tabla de tama\u00f1o nx2 tal como se muestra en el ejemplo. La columna tipo contiene n\u00fameros enteros que pueden ser repetidos y la columna cantidad tiene un n\u00famero real positivo. La funci\u00f3n cuenta [&hellip;]<\/p>\n","protected":false},"author":8043,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"wp-custom-template-entrada-fp-ejercicios","format":"standard","meta":{"footnotes":""},"categories":[95],"tags":[148,155],"class_list":["post-3042","post","type-post","status-publish","format-standard","hentry","category-fp-2e15","tag-arreglos-matrices","tag-funciones"],"_links":{"self":[{"href":"https:\/\/blog.espol.edu.ec\/algoritmos101\/wp-json\/wp\/v2\/posts\/3042","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.espol.edu.ec\/algoritmos101\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.espol.edu.ec\/algoritmos101\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.espol.edu.ec\/algoritmos101\/wp-json\/wp\/v2\/users\/8043"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.espol.edu.ec\/algoritmos101\/wp-json\/wp\/v2\/comments?post=3042"}],"version-history":[{"count":3,"href":"https:\/\/blog.espol.edu.ec\/algoritmos101\/wp-json\/wp\/v2\/posts\/3042\/revisions"}],"predecessor-version":[{"id":16912,"href":"https:\/\/blog.espol.edu.ec\/algoritmos101\/wp-json\/wp\/v2\/posts\/3042\/revisions\/16912"}],"wp:attachment":[{"href":"https:\/\/blog.espol.edu.ec\/algoritmos101\/wp-json\/wp\/v2\/media?parent=3042"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.espol.edu.ec\/algoritmos101\/wp-json\/wp\/v2\/categories?post=3042"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.espol.edu.ec\/algoritmos101\/wp-json\/wp\/v2\/tags?post=3042"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}