Escreva um algoritmo que leia o nome de cinco clientes de uma loja  e  valor (em reais) que cada um desses clientes pagou por sua compra. O algoritmo deverá escrever:
Autor: Apelido: Guste | Publicado: 2010-10-01T09:42:00-07:00

1.&nbsp;&nbsp; o valor total pago pelos cinco clientes; 
2.&nbsp;&nbsp; o valor médio das compras efetuadas; 
3.&nbsp;&nbsp; os nomes dos clientes que efetuaram compras superiores a 20 reais. 

--------------------------------------------------------------------------------------------------------

&nbsp; algoritmo "Cliente"
&nbsp; var
&nbsp;&nbsp;&nbsp; c1,c2,c3,c4,c5:literal
&nbsp;&nbsp;&nbsp; vcc1,vcc2,vcc3,vcc4,vcc5:real
&nbsp;&nbsp;&nbsp; vtt,media:real
&nbsp; inicio
&nbsp;&nbsp;&nbsp;&nbsp; escreval("CLiente (valor total, média, compras acimas de 20 reais).")
&nbsp;&nbsp;&nbsp;&nbsp; escreva("Digite o nome&nbsp; do primeiro cliente&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; = ")
&nbsp;&nbsp;&nbsp;&nbsp; leia(c1)
&nbsp;&nbsp;&nbsp;&nbsp; escreva("Digite o valor da compra do primeiro cliente = ")
&nbsp;&nbsp;&nbsp; &nbsp;leia(vcc1)
&nbsp;&nbsp;&nbsp; &nbsp;escreva("Digite o nome&nbsp; do segundo cliente&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; = ")
&nbsp;&nbsp;&nbsp; &nbsp;leia(c2)
&nbsp;&nbsp; &nbsp; escreva("Digite o valor da compra do segundo cliente&nbsp; = ")
&nbsp;&nbsp;&nbsp; &nbsp;leia(vcc2)
&nbsp;&nbsp; &nbsp; escreva("Digite o nome&nbsp; do terceiro cliente&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; = ")
&nbsp;&nbsp;&nbsp; &nbsp;leia(c3)
&nbsp;&nbsp;&nbsp; &nbsp;escreva("Digite o valor da compra do terceiro cliente = ")
&nbsp;&nbsp;&nbsp; &nbsp;leia(vcc3)
&nbsp;&nbsp;&nbsp; &nbsp;escreva("Digite o nome do quarto cliente&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; = ")
&nbsp;&nbsp;&nbsp; &nbsp;leia(c4)
&nbsp;&nbsp;&nbsp; &nbsp;escreva("Digite o valor da compra do quarto cliente&nbsp;&nbsp; = ")23.&nbsp;&nbsp;&nbsp; leia(vcc4)
&nbsp;&nbsp;&nbsp;&nbsp; escreva("Digite o nome do quinto cliente&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; = ")
&nbsp;&nbsp;&nbsp; &nbsp;leia(c5)
&nbsp;&nbsp;&nbsp; &nbsp;escreva("Digite o valor da compra do quinto cliente&nbsp;&nbsp; = ")
&nbsp;&nbsp;&nbsp; &nbsp;leia(vcc5)
&nbsp;&nbsp;&nbsp; &nbsp;vtt&nbsp;&nbsp; &lt;- vcc1+vcc2+vcc3+vcc4+vcc5
&nbsp;&nbsp;&nbsp; &nbsp;media &lt;- vtt/5
&nbsp;&nbsp;&nbsp; &nbsp;escreval("O valor total pago pelos cinco clientes é igual a = ",vtt:5:2)
&nbsp;&nbsp;&nbsp; &nbsp;escreval("O valor médio das compras efetuadas é igual a ",media:5:2)
&nbsp;&nbsp;&nbsp; &nbsp;escreval("Os nomes dos clientes que efetuaram compras superiores a 20 reais, são: ")
&nbsp;&nbsp;&nbsp;&nbsp; se vcc1&gt;20 entao
&nbsp;&nbsp;&nbsp;&nbsp; escreval(c1)
&nbsp;&nbsp;&nbsp;&nbsp; fimse
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; se vcc2&gt;20 entao
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; escreval(c2)
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; fimse
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; se vcc3&gt;20 entao
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; escreval(c3)
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; fimse
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; se vcc4&gt;20 entao
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; escreval(c4)
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; fimse
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; se vcc5&gt;20 entao
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; escreval(c5)
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; fimse
&nbsp;fimalgoritmo