Hola,<br><br>Primero de todo, deberías haber intentado hacer algo y haber puesto el código, aunque esta es una lista de C, pero bueno.<br><br>El algoritmo es sencillo, tienes que partir de la base de $200 (constante). Luego deberías pedir al usuario el número de artículo y la cantidad, y después si ya ha terminado o desea añadir más artículos.<br>
<br>Yo haría un array de enteros, por ejemplo, articulos[4] y en cada posición añades la cantidad de artículos que ha vendido (siendo la posición 0 correspondiente al artículo 1... posición 3 al artículo 4). Luego sólo es sumar la constante inicial, más la cantidad que haya en cada posición multiplicado por el valor de esa posición.<br>
<br>Te recomiendo inicializar los elementos del array a 0 en la declaración.<br><br>Un saludo.<br><br><div class="gmail_quote">El 25 de agosto de 2009 16:32, Susana Vásquez <span dir="ltr"><<a href="mailto:zuva89@gmail.com">zuva89@gmail.com</a>></span> escribió:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><span style="font-size: 12pt;" lang="ES-CR"><span><span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"><font size="2"><b style="font-family: comic sans ms,sans-serif;">Hola necesito si   me  pueden  ayudar con este ejercicio , por lo menos una idea de como empezar,, les agradezco ...</b></font><br>

</span></span></span><p style="margin-bottom: 0.0001pt; text-align: justify; text-indent: -18pt; line-height: normal;"><span style="font-size: 12pt;" lang="ES-CR"><span><span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"><br>

</span></span></span></p><p style="margin-bottom: 0.0001pt; text-align: justify; text-indent: -18pt; line-height: normal;"><span style="font-size: 12pt;" lang="ES-CR"><span><span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;">
</span></span></span><span style="font-size: 12pt;" lang="ES-CR">Una
empresa grande paga a sus vendedores mediante comisiones. Los vendedores
reciben $200 por semana, más el 9% de sus ventas brutas durante esa semana. Por
ejemplo, un vendedor que vente $5000 de mercancía en una semana recibe<span>  </span>$200 más el 9% de 5000, a un total de $650.
Usted acaba de recibir una lista de los artículos vendidos por cada vendedor.
Los valores de estos artículos son los siguientes:</span></p>

<p style="margin-bottom: 0.0001pt; text-align: justify; line-height: normal;"><b><span style="font-size: 12pt;" lang="ES-CR">Artículos<span>        </span>Valor</span></b></p>


<p style="margin: 0cm 0cm 0.0001pt 141.3pt; text-align: justify; text-indent: -70.5pt; line-height: normal;"><span style="font-size: 12pt;" lang="ES-CR"><span>1<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;">                                          
</span></span></span><span style="font-size: 12pt;" lang="ES-CR">239.99</span></p>

<p style="margin: 0cm 0cm 0.0001pt 141.3pt; text-align: justify; text-indent: -70.5pt; line-height: normal;"><span style="font-size: 12pt;" lang="ES-CR"><span>2<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;">                                          
</span></span></span><span style="font-size: 12pt;" lang="ES-CR">129.75</span></p>

<p style="margin: 0cm 0cm 0.0001pt 141.3pt; text-align: justify; text-indent: -70.5pt; line-height: normal;"><span style="font-size: 12pt;" lang="ES-CR"><span>3<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;">                                          
</span></span></span><span style="font-size: 12pt;" lang="ES-CR">99.95</span></p>

<p style="margin: 0cm 0cm 0.0001pt 141.3pt; text-align: justify; text-indent: -70.5pt; line-height: normal;"><span style="font-size: 12pt;" lang="ES-CR"><span>4<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;">                                          
</span></span></span><span style="font-size: 12pt;" lang="ES-CR">350.99</span></p>

<p style="margin-bottom: 0.0001pt; text-align: justify; line-height: normal;"><span style="font-size: 12pt;" lang="ES-CR">Desarrolle una aplicación en Java que reciba como
entrada los artículos vendidos por un vendedor durante la última semana, y que
calcule y muestre los ingresos de ese vendedor. No hay límite en cuanto al
número de artículos que un vendedor puede vender.</span></p>

<br clear="all"><font color="#888888"><br>-- <br>zuva89<br>
</font><br>_______________________________________________<br>
Lista de correo Cconclase <a href="mailto:Cconclase@listas.conclase.net">Cconclase@listas.conclase.net</a><br>
<a href="http://listas.conclase.net/mailman/listinfo/cconclase_listas.conclase.net" target="_blank">http://listas.conclase.net/mailman/listinfo/cconclase_listas.conclase.net</a><br>
Bajas: <a href="http://listas.conclase.net/index.php?gid=2&mnu=FAQ" target="_blank">http://listas.conclase.net/index.php?gid=2&mnu=FAQ</a><br></blockquote></div><br><br clear="all"><br>-- <br>======================<br>
  Javier Cancio del Busto<br>======================<br>  <a href="http://tuxete.wordpress.com">http://tuxete.wordpress.com</a> <br>======================<br>