{"id":2837,"date":"2014-03-01T15:10:03","date_gmt":"2014-03-01T20:10:03","guid":{"rendered":"http:\/\/blog.espol.edu.ec\/icm00794\/?p=2837"},"modified":"2026-04-05T07:05:42","modified_gmt":"2026-04-05T12:05:42","slug":"2eva2001tii_t3-flujo-de-ahorro-para-n-anos","status":"publish","type":"post","link":"https:\/\/blog.espol.edu.ec\/algoritmos101\/fp-2eva10\/2eva2001tii_t3-flujo-de-ahorro-para-n-anos\/","title":{"rendered":"2Eva2001TII_T3 Flujo de ahorro para n a\u00f1os"},"content":{"rendered":"\n<h2 class=\"wp-block-heading\" id=\"2EvaIIT2001\">Final II T\u00e9rmino 2001 \u2013 2003. Febrero 5, 2002 \/ICM00794<\/h2>\n\n\n\n<p><strong>Tema <\/strong><strong>3<\/strong>.<\/p>\n\n\n\n<p>El flujo de efectivo <strong>F<sub>k<\/sub><\/strong> se eval\u00faa recursivamente considerando el flujo neto anterior <strong>F<sub>k-1<\/sub><\/strong> y las tasas <em>i<sub>1<\/sub>, i<sub>2 <\/sub><\/em> tal como se indican en la f\u00f3rmula.<\/p>\n\n\n\n<span class=\"wp-katex-eq katex-display\" data-display=\"true\"> F_k = \\begin{cases} (1 + i_1)F_{k-1}+C_k, &amp;&amp; F_{k-1} \\ge 0, k&gt;0 \\\\(1 + i_2)F_{k-1}+C_k,&amp;&amp; F_{k-1} &lt; 0, k &gt; 0 \\\\ 0 ,&amp;&amp; k=0 \\end{cases}<\/span>\n\n\n\n<p>En la f\u00f3rmula, <strong>C<\/strong> representa un arreglo de los valores del flujo para <strong>n<\/strong> a\u00f1os que operan en un determinado negocio\u00a0(los valores negativos indican desembolso)<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table><tbody><tr><td>C<sub>0<\/sub><\/td><td>C<sub>1<\/sub><\/td><td>C<sub>2<\/sub><\/td><td>C<sub>3<\/sub><\/td><td>C<sub>4<\/sub><\/td><td>\u2026<\/td><td>\u2026<\/td><td>C<sub>n<\/sub><\/td><\/tr><tr><td>-500<\/td><td>300<\/td><td>600<\/td><td>-200<\/td><td>300<\/td><td>-200<\/td><td>-300<\/td><td>350<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<figure class=\"wp-block-image alignright size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"480\" height=\"360\" src=\"http:\/\/blog.espol.edu.ec\/algoritmos101\/files\/2014\/03\/ahorros03.png\" alt=\"ahorros crecimiento\" class=\"wp-image-16702\" style=\"width:300px\" \/><\/figure>\n\n\n\n<p>a) Escriba una funci\u00f3n recursiva para poder utilizar <strong>F<sub>K<\/sub><\/strong>.<\/p>\n\n\n\n<p>b) Escriba un programa principal que lea<em> i<sub>1<\/sub>, i<sub>2<\/sub><\/em>, y el arreglo <strong>C<sub>k<\/sub><\/strong>, de <strong>n<\/strong> elementos y llame a la funci\u00f3n anterior para calcular <strong>F<sub>K<\/sub><\/strong>.<\/p>\n\n\n\n<p>c) Posteriormente, en el mismo programa asigne a <em>i<sub>1<\/sub><\/em>, el valor de 0.1 y pida por teclado dos valores para <em>i<sub>2<\/sub><\/em>. Eval\u00fae <strong>F<sub>K<\/sub><\/strong> para los casos e identifique si hubo un cambio de signo.<\/p>\n\n\n\n<p><strong><i>Nota: <\/i><\/strong>Considere las variables <i>float <\/i> C[20], i<sub>1<\/sub>, i<sub>2 <\/sub>como globales.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Final II T\u00e9rmino 2001 \u2013 2003. Febrero 5, 2002 \/ICM00794 Tema 3. El flujo de efectivo Fk se eval\u00faa recursivamente considerando el flujo neto anterior Fk-1 y las tasas i1, i2 tal como se indican en la f\u00f3rmula. En la f\u00f3rmula, C representa un arreglo de los valores del flujo para n a\u00f1os que operan [&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":[93],"tags":[156],"class_list":["post-2837","post","type-post","status-publish","format-standard","hentry","category-fp-2eva10","tag-funciones-recursivas"],"_links":{"self":[{"href":"https:\/\/blog.espol.edu.ec\/algoritmos101\/wp-json\/wp\/v2\/posts\/2837","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=2837"}],"version-history":[{"count":3,"href":"https:\/\/blog.espol.edu.ec\/algoritmos101\/wp-json\/wp\/v2\/posts\/2837\/revisions"}],"predecessor-version":[{"id":16703,"href":"https:\/\/blog.espol.edu.ec\/algoritmos101\/wp-json\/wp\/v2\/posts\/2837\/revisions\/16703"}],"wp:attachment":[{"href":"https:\/\/blog.espol.edu.ec\/algoritmos101\/wp-json\/wp\/v2\/media?parent=2837"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.espol.edu.ec\/algoritmos101\/wp-json\/wp\/v2\/categories?post=2837"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.espol.edu.ec\/algoritmos101\/wp-json\/wp\/v2\/tags?post=2837"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}