<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:blogger='http://schemas.google.com/blogger/2008' xmlns:georss='http://www.georss.org/georss' xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-1209189845592343988</id><updated>2024-12-11T18:42:10.676-03:00</updated><title type='text'>Modelos de Códigos</title><subtitle type='html'>Destinado para mostrar códigos gerados em aulas de C#, Cobol, Java e Php. Desenvolvimento de cursos on-line de linguagens de programação.</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://modelosdecodigos.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1209189845592343988/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='http://modelosdecodigos.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><link rel='next' type='application/atom+xml' href='http://www.blogger.com/feeds/1209189845592343988/posts/default?start-index=26&amp;max-results=25&amp;redirect=false'/><author><name>jorgefox</name><uri>http://www.blogger.com/profile/13417100727916050571</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiqTl_b0HdBZYy2ADY06ZbE1p_UKZPITCOe67DJcVgCk3nboF8Utn32svgKGCs1ZSIwAtdVCJUlCr9Emmz9OYOH25gpZDJiZ46NhYnvgJRpTMyIZfBFCB6fJ8qJVzpyRg/s220/WIN_20201029_09_19_06_Pro.jpg'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>36</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-1209189845592343988.post-4867921038328178190</id><published>2021-01-07T17:35:00.002-03:00</published><updated>2021-01-08T16:15:33.147-03:00</updated><title type='text'>Usando  funções em Excel </title><content type='html'>&lt;p&gt;&amp;nbsp;Como já falamos em sala de aula, funções são conjuntos de operações que são reunidas em uma só instrução, podendo ou não passar algum parâmetro que influenciara no resultado.&lt;/p&gt;&lt;p&gt;Quando &quot;chamamos&quot; uma função passamos uma informação que irá trazer um resultado. No excel para &quot;chamarmos&quot; uma função usamos o sinal de igualdade &quot;=&quot; antes do nome da mesma.&lt;/p&gt;&lt;p&gt;O Excel possui um conjunto enorme de funções as quais estão categorizadas da seguinte forma:&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;ul style=&quot;text-align: left;&quot;&gt;&lt;li&gt;Funções Financeiras&lt;/li&gt;&lt;li&gt;Funções de Data e Hora&lt;/li&gt;&lt;li&gt;Funções de textos&lt;/li&gt;&lt;li&gt;Funções Estatísticas&lt;/li&gt;&lt;li&gt;Funções Lógicas&lt;/li&gt;&lt;li&gt;Funções de Pesquisa e Referência&lt;/li&gt;&lt;li&gt;Funções Matemáticas e trigonométricas&lt;/li&gt;&lt;li&gt;Funções de Engenharia&lt;/li&gt;&lt;li&gt;Funções de Banco de dados&lt;/li&gt;&lt;li&gt;Funções para Web&lt;/li&gt;&lt;li&gt;Funções de informação&lt;/li&gt;&lt;li&gt;Funções de compatibilidade&lt;/li&gt;&lt;li&gt;Funções definidas pelo usuário.&lt;/li&gt;&lt;/ul&gt;A partir desse momento&amp;nbsp; explicaremos algumas dessas categorias no intuito de passar uma noção a respeito do uso das funções dentro do excel.&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;b&gt;Funções Financeiras&lt;/b&gt;&lt;/p&gt;&lt;p&gt;Quem nunca ouviu falar calculo de juros e atualização monetária? O uso destas funções são essenciais&amp;nbsp; no dia a dia de instituições financeiras, ao calcular o valor de uma prestação, juros, juros acumulados, tempo de retorno de um investimento. Podemos fazer isso usando as funções existentes no &lt;b&gt;Excel&lt;/b&gt;.&lt;/p&gt;&lt;p&gt;&lt;b&gt;Função Valor Presente&lt;/b&gt;&lt;/p&gt;&lt;p&gt;Esta função calcula o valor atual de um investimento. O seu resultado pode mostrar ao usuário do &lt;b&gt;Excel &lt;/b&gt;se vale a pena fazer um investimento ou não.&lt;/p&gt;&lt;p&gt;Para calcular o valor presente são necessários algumas informações adicionais, que aqui chamaremos de parâmetros ou argumentos. São eles:&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;ul style=&quot;text-align: left;&quot;&gt;&lt;li&gt;Taxa de juros ou simplesmente &lt;b&gt;Taxa,&amp;nbsp;&lt;/b&gt;&amp;nbsp;é um índice de remuneração do capital alocado ou emprestado a alguém ou instituição;&lt;/li&gt;&lt;li&gt;Numero de períodos ou simplesmente NPER que indica quanto tempo levará para ser pago tal investimento;&lt;/li&gt;&lt;li&gt;Valor do Pagamento, prestação, ou simplesmente &lt;b&gt;PGTO;&lt;/b&gt;&lt;/li&gt;&lt;li&gt;&lt;b&gt;VALOR FUTURO&lt;/b&gt;, aqui na função &lt;b&gt;Valor Presente&lt;/b&gt;&amp;nbsp;significa a meta a ser alcançada com a serie de pagamentos realizadas ao longo do tempo ou NPER.&lt;/li&gt;&lt;li&gt;&lt;b&gt;Tipo &lt;/b&gt;que indica ser o pagamento ser após uma unidade de tempo, comumente usamos mês como unidade, ou qualquer outra unidade negociada entre as partes. No &lt;b&gt;Excel&lt;/b&gt;&amp;nbsp;o valor zero(0) significa que será aguardado um prazo de 30 dias ou qualquer outro período para honrar o compromisso com o pagamento. O valor 1 significa que o pagamento é antecipado, ou seja no momento da transação já ocorre um pagamento. Assim como no aluguel fazemos o pagamento para usar o imóvel.&lt;/li&gt;&lt;/ul&gt;Para que possamos informar estes valores na função &lt;b&gt;Valor Presente&lt;/b&gt; ou simplesmente &lt;b&gt;VP&lt;/b&gt;&amp;nbsp;fazermos assim:&amp;nbsp;&lt;p&gt;&lt;/p&gt;&lt;p&gt;=VP(taxa;nper;pgto;[vf],[tipo])&lt;/p&gt;&lt;p&gt;Onde houver colchetes, significa que o parâmetro é opcional, mas a sua interpretação fica por conta do usuário.&lt;/p&gt;&lt;p&gt;Para exemplificar o uso da função &lt;b&gt;VP&lt;/b&gt;&amp;nbsp;vamos pensar na seguinte situação:&lt;/p&gt;&lt;p&gt;Quanto e devo ter hoje no bolso para fazer um investimento para obter um capital de R$ 20.000,00 dentro de 3 anos considerando que a instituição me pagará uma taxa de juros de 1,5% ao mês?&lt;/p&gt;&lt;p&gt;Veja que neste caso informamos na pergunta os seguintes parâmetros: a meta, o valor futuro que desejo obter, R$ 20.000,00 o prazo, 3 anos ou 36 meses uma vez que informamos que o juros é de 1,5% ao mês. E não informamos o valor do pagamento e nem o tipo de pagamento.&lt;/p&gt;&lt;p&gt;Desta forma abra o &lt;b&gt;Excel&lt;/b&gt;&amp;nbsp;e crie uma planilha como a mostrada na figura abaixo.&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh5UyPbwbZZJtsWGMMI_y-jslZqOybwtfhIn38nAMTOVPh0qPVwJ5lPOITAF5pfOdkHgpTAVy97aqSIrLI1lEwdVojsv7invzkoRUXe6c8kjClYLOLbkSo6ITpA3K9YMCbLbzovPzXOgPRO/&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img alt=&quot;&quot; data-original-height=&quot;549&quot; data-original-width=&quot;596&quot; height=&quot;463&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh5UyPbwbZZJtsWGMMI_y-jslZqOybwtfhIn38nAMTOVPh0qPVwJ5lPOITAF5pfOdkHgpTAVy97aqSIrLI1lEwdVojsv7invzkoRUXe6c8kjClYLOLbkSo6ITpA3K9YMCbLbzovPzXOgPRO/w504-h463/image.png&quot; width=&quot;504&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;Veja que acrescentamos alguns &quot;mimos&quot; na tabela. Em C5 colocamos uma função SE para especificar se será em 30 dias ou antecipado. A função ficou assim : =SE(B5=0;&quot;após 30 dias&quot;;&quot;antecipado&quot;).&lt;/p&gt;&lt;p&gt;No calculo do &quot;Valor presente do investimento&quot; ou em B7 a função VP ficou assim:&lt;/p&gt;&lt;p&gt;=VP(B1;B2;B3B4;B5)&lt;/p&gt;&lt;p&gt;Há uma observação a respeito do resultado, observe que ficou vermelho e negativo, isso significa que você terá que retirar do seu bolso o valor para fazer o investimento.&lt;/p&gt;&lt;p&gt;No campo &quot;Lucro após 3 anos&quot; ou seja em B9 tem a seguinte fórmula =B4+B7, calma eu explico, o valor negativo será usado de forma que quando somado com B4 tornará uma subtração, matemática básica. Este resultado é o lucro após 3 anos de investimento.&lt;/p&gt;&lt;p&gt;No campo &quot;Lucro por ano&quot; tem uma fórmula em B10, = B9/3.&lt;/p&gt;&lt;p&gt;Já o campo &quot;% de lucro por ano&quot; ficará assim : =B10/B7 é o nosso referencial de partida do investimento.&lt;/p&gt;&lt;p&gt;Exercício&lt;/p&gt;&lt;p&gt;1) Aproveite para calcular se vale a pena depositar na caderneta de poupança, que paga algo em torno de 0,5% de juros ao mês e que levará aproximadamente 36 meses esse investimento para obter R$ 50.000,00?&lt;/p&gt;&lt;p&gt;Resposta : -R$ 41,782,25, caso tenha obtido outro valor revise seus dados. E ai vale a pena?&lt;/p&gt;&lt;p&gt;&lt;b&gt;Função Valor Futuro&lt;/b&gt;&lt;/p&gt;&lt;p&gt;Esta função calcula o valor de um investimento no futuro, seguindo uma série de pagamentos e taxa de juros constante. Podemos empregar para verificar se vale a pena efetuar o investimento segundo a serie de pagamentos e após este período fazer o resgate.&lt;/p&gt;&lt;p&gt;Conforme já detalhamos anteriormente precisaremos dos seguintes parâmetros:&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;ul style=&quot;text-align: left;&quot;&gt;&lt;li&gt;Taxa&lt;/li&gt;&lt;li&gt;NPer&lt;/li&gt;&lt;li&gt;Pgto&lt;/li&gt;&lt;li&gt;VP&lt;/li&gt;&lt;li&gt;Tipo&lt;/li&gt;&lt;/ul&gt;Vamos considerar a seguinte situação:&lt;p&gt;&lt;/p&gt;&lt;p&gt;Uma instituição financeira te convida para participar de um fundo de investimento no qual você fará pagamentos mensais de R$ 600,00 durante 6 anos e promete uma uma taxa de juros anual de 10%. Qual será o valor deste investimento após 6 anos?&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEizHMESG-8ndxo86Df13t4vUpAdCoi6CG2Q-Q-uU3Biv1lAkSaTqmkVBTkI1TQ8Wqt2k9G4Nix2PGp0MWiXA2BGPlkJBId2ADMK71tgEJksSIwPVKIsghdx0G_xefYObwLxhptIEQx2fi5k/&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img alt=&quot;&quot; data-original-height=&quot;615&quot; data-original-width=&quot;622&quot; height=&quot;478&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEizHMESG-8ndxo86Df13t4vUpAdCoi6CG2Q-Q-uU3Biv1lAkSaTqmkVBTkI1TQ8Wqt2k9G4Nix2PGp0MWiXA2BGPlkJBId2ADMK71tgEJksSIwPVKIsghdx0G_xefYObwLxhptIEQx2fi5k/w484-h478/image.png&quot; width=&quot;484&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: justify;&quot;&gt;&lt;b&gt;Exercícios&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: justify;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: justify;&quot;&gt;1) Considere uma instituição financeira que observou que você tem R$ 20.000,00 parado na sua conta. Fazem a seguinte proposta: Deposite a quantia parada, e contribua mensalmente durante 2 anos com R$ 500,00 em uma conta de investimento que pagará 10% ao ano. Após essas contribuições e o valor depositado no inicio da aplicação qual será o total a ser resgatado?&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: justify;&quot;&gt;Resposta: R$ 37.631,28&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: justify;&quot;&gt;2) No exercício anterior, caso você não deposite nada, qual será o valor?&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: justify;&quot;&gt;3) Ainda no mesmo exercício, agora considere os depósitos mensais e não informe o valor presente de R$ 20.000,00. Qual o total?&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: justify;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: justify;&quot;&gt;&lt;b&gt;Função PGTO&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: justify;&quot;&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: justify;&quot;&gt;A função PGTO calculará o valor de um pagamento mensal de um empréstimo, investimento ou prestação de algo adquirido ao longo de um período Nper, sendo atualizada por uma TAXA, considerando um valor presente VP, valor futuro VF, podendo ser de maneira antecipada ou não.&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: justify;&quot;&gt;Como podemos perceber os parâmetros da função PGTO são:&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: justify;&quot;&gt;&lt;ul&gt;&lt;li&gt;TAXA&lt;/li&gt;&lt;li&gt;NPER&lt;/li&gt;&lt;li&gt;VP&lt;/li&gt;&lt;li&gt;VF&lt;/li&gt;&lt;li&gt;TIPO&lt;/li&gt;&lt;/ul&gt;Desta forma a função terá seguinte sintaxe ou forma de apresentar:&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: justify;&quot;&gt;=PGTO(TAXA,NPER,VP,[VF],[TIPO])&amp;nbsp;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: justify;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: justify;&quot;&gt;&lt;b&gt;Exemplo&amp;nbsp;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: justify;&quot;&gt;Suponha que você quer aplicar em um fundo de capitalização que pagará 0,95% ao mês durante 2 anos e que você deseja resgatar no final R$10.000,00. Qual será o valor da mensalidade no período?&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: justify;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: justify;&quot;&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjZnIzg92DlA6BJYLIET3uFnZUa37AxAzYN5xaVzekJaxUIv_ILvJh_wk7wIMXA2Cxj4PBReJBH7Q0xZSR0UBpC40CXSaxzUowoSe4zRMYccvZdekRBA9B_VbdyGUQoB9a4TmmJy452lcTC/&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img alt=&quot;&quot; data-original-height=&quot;563&quot; data-original-width=&quot;451&quot; height=&quot;485&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjZnIzg92DlA6BJYLIET3uFnZUa37AxAzYN5xaVzekJaxUIv_ILvJh_wk7wIMXA2Cxj4PBReJBH7Q0xZSR0UBpC40CXSaxzUowoSe4zRMYccvZdekRBA9B_VbdyGUQoB9a4TmmJy452lcTC/w388-h485/image.png&quot; width=&quot;388&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: justify;&quot;&gt;&lt;b&gt;Exercícios&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: justify;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;b&gt;1) &lt;/b&gt;Considere que você comprou um iPhone a prestação em 12 vezes com juros de 0,7% ao mês, e que o seu valor a vista seria R$ 5.000,00. Qual será o valor da prestação?&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: justify;&quot;&gt;2) Considere agora que você dará R$1.000,00 de entrada. Qual o valor da prestação?&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: justify;&quot;&gt;3) E se você der a metade do valor a vista de entrada?&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: justify;&quot;&gt;&lt;br /&gt;&lt;b&gt;Função ÉPGTO.&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: justify;&quot;&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: justify;&quot;&gt;Ao contrario do que sugere o nome da função, ela &lt;b&gt;não&amp;nbsp;&lt;/b&gt;trata de valores de parcelas. Esta função trata do valor dos juros pagos sobre uma parcela de um investimento ou prestação. É útil quando queremos saber qual o valor de juros que incide em uma determinada parcela em algum momento do parcelamento.&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: justify;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: justify;&quot;&gt;&lt;b&gt;Exemplo:&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: justify;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: justify;&quot;&gt;Considere a compra de um automóvel e que seu valor presente seja de R$35.000,00 com uma taxa de juros de 1,3% ao mês durante 36 meses. Queremos saber o valor dos juros na prestação numero 5. Qual o valor dos juros?&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: justify;&quot;&gt;&amp;nbsp;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: justify;&quot;&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: justify;&quot;&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; font-weight: bold; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjKs5QziokOqTAp71quKSDar0zHcu6Q0Gzgze-FwWVDg3LEsRUhudaOlLUe9hn6kZOzDQ1VWGZPSbRTYVar4t1FO3JtNe7d37QdZOfN4ZmawyM3CmYaOZjJeMjHM4i6gKByfZaXPQsUmlrw/&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img alt=&quot;&quot; data-original-height=&quot;563&quot; data-original-width=&quot;424&quot; height=&quot;498&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjKs5QziokOqTAp71quKSDar0zHcu6Q0Gzgze-FwWVDg3LEsRUhudaOlLUe9hn6kZOzDQ1VWGZPSbRTYVar4t1FO3JtNe7d37QdZOfN4ZmawyM3CmYaOZjJeMjHM4i6gKByfZaXPQsUmlrw/w375-h498/image.png&quot; width=&quot;375&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; font-weight: bold; text-align: center;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: justify;&quot;&gt;Como podemos perceber o valor dos juros na prestação de numero 5 será de R$ 391,80, caso queria conferir fica um exercício de calcular o valor da prestação e depois subtrair o valor dos juros para sabermos o valor da amortização.&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: justify;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: justify;&quot;&gt;&lt;b&gt;Exercícios&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: justify;&quot;&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: justify;&quot;&gt;&lt;b&gt;1) &lt;/b&gt;Considere os dados do exemplo anterior e calcule os juros pagos na 10ª parcela?&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: justify;&quot;&gt;2) O que notou de diferente em relação a parcela numero 5?&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: justify;&quot;&gt;3) Qual o percentual de juros em relação ao valor da prestação?&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: justify;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: justify;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: justify;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: justify;&quot;&gt;&lt;br /&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&amp;nbsp;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;</content><link rel='replies' type='application/atom+xml' href='http://modelosdecodigos.blogspot.com/feeds/4867921038328178190/comments/default' title='Postar comentários'/><link rel='replies' type='text/html' href='http://modelosdecodigos.blogspot.com/2021/01/usando-funcoes-em-excel.html#comment-form' title='0 Comentários'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1209189845592343988/posts/default/4867921038328178190'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1209189845592343988/posts/default/4867921038328178190'/><link rel='alternate' type='text/html' href='http://modelosdecodigos.blogspot.com/2021/01/usando-funcoes-em-excel.html' title='Usando  funções em Excel '/><author><name>jorgefox</name><uri>http://www.blogger.com/profile/13417100727916050571</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiqTl_b0HdBZYy2ADY06ZbE1p_UKZPITCOe67DJcVgCk3nboF8Utn32svgKGCs1ZSIwAtdVCJUlCr9Emmz9OYOH25gpZDJiZ46NhYnvgJRpTMyIZfBFCB6fJ8qJVzpyRg/s220/WIN_20201029_09_19_06_Pro.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh5UyPbwbZZJtsWGMMI_y-jslZqOybwtfhIn38nAMTOVPh0qPVwJ5lPOITAF5pfOdkHgpTAVy97aqSIrLI1lEwdVojsv7invzkoRUXe6c8kjClYLOLbkSo6ITpA3K9YMCbLbzovPzXOgPRO/s72-w504-h463-c/image.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1209189845592343988.post-1946041755288774151</id><published>2012-05-23T17:12:00.001-03:00</published><updated>2024-12-04T09:23:15.465-03:00</updated><title type='text'>Tela para relembrar a senha através de e-mail</title><content type='html'>Esta tela de login é uma extensão do exemplo anterior, criado especificamente para facilitar a compreensão dos meus alunos. Ao utilizar dois campos de e-mail, eliminamos a necessidade de criar uma senha fictícia, permitindo que os alunos foquem na lógica de validação e envio dos dados. Essa abordagem também demonstra como um formulário pode ser adaptado para diferentes cenários.</content><link rel='replies' type='application/atom+xml' href='http://modelosdecodigos.blogspot.com/feeds/1946041755288774151/comments/default' title='Postar comentários'/><link rel='replies' type='text/html' href='http://modelosdecodigos.blogspot.com/2012/05/tela-para-relembrar-senha-atraves-de-e.html#comment-form' title='1 Comentários'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1209189845592343988/posts/default/1946041755288774151'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1209189845592343988/posts/default/1946041755288774151'/><link rel='alternate' type='text/html' href='http://modelosdecodigos.blogspot.com/2012/05/tela-para-relembrar-senha-atraves-de-e.html' title='Tela para relembrar a senha através de e-mail'/><author><name>jorgefox</name><uri>http://www.blogger.com/profile/13417100727916050571</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiqTl_b0HdBZYy2ADY06ZbE1p_UKZPITCOe67DJcVgCk3nboF8Utn32svgKGCs1ZSIwAtdVCJUlCr9Emmz9OYOH25gpZDJiZ46NhYnvgJRpTMyIZfBFCB6fJ8qJVzpyRg/s220/WIN_20201029_09_19_06_Pro.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1209189845592343988.post-6008898417431685846</id><published>2012-05-23T16:57:00.002-03:00</published><updated>2012-05-23T16:57:28.694-03:00</updated><title type='text'>Tela de Logon em Asp.Net e C#(sharp)</title><content type='html'>Caso você precise autorizar os usuários acessar aplicações em Asp.Net e C#, acredito, que esse código poderá ajuda-lo no desenvolvimento.&lt;br /&gt;
Inicialmente, criamos uma tabela no banco de dados conforme o script em MySql abaixo.&lt;br /&gt;
&lt;script src=&quot;http://pastebin.com/embed_js.php?i=PWkLvfmg&quot;&gt;
&lt;/script&gt;&lt;br /&gt;
Após esta tabela ser criada, passamos então a criação da tela em asp.net, o nome da tela : logon.asp.&lt;br /&gt;
&lt;iframe src=&quot;http://pastebin.com/embed_iframe.php?i=762viQLd&quot; style=&quot;border: none; width: 100%;&quot;&gt;&lt;/iframe&gt;&lt;br /&gt;
Coloque também o código em C#(Sharp) logon.asp.cs&lt;br /&gt;
&lt;iframe src=&quot;http://pastebin.com/embed_iframe.php?i=pU0QVMW2&quot; style=&quot;border: none; width: 100%;&quot;&gt;&lt;/iframe&gt;&lt;br /&gt;
&lt;br /&gt;
Valeu pessoal grande abraço.</content><link rel='replies' type='application/atom+xml' href='http://modelosdecodigos.blogspot.com/feeds/6008898417431685846/comments/default' title='Postar comentários'/><link rel='replies' type='text/html' href='http://modelosdecodigos.blogspot.com/2012/05/tela-de-logon-em-aspnet-e-csharp.html#comment-form' title='0 Comentários'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1209189845592343988/posts/default/6008898417431685846'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1209189845592343988/posts/default/6008898417431685846'/><link rel='alternate' type='text/html' href='http://modelosdecodigos.blogspot.com/2012/05/tela-de-logon-em-aspnet-e-csharp.html' title='Tela de Logon em Asp.Net e C#(sharp)'/><author><name>jorgefox</name><uri>http://www.blogger.com/profile/13417100727916050571</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiqTl_b0HdBZYy2ADY06ZbE1p_UKZPITCOe67DJcVgCk3nboF8Utn32svgKGCs1ZSIwAtdVCJUlCr9Emmz9OYOH25gpZDJiZ46NhYnvgJRpTMyIZfBFCB6fJ8qJVzpyRg/s220/WIN_20201029_09_19_06_Pro.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1209189845592343988.post-8752277328226771914</id><published>2012-05-22T10:38:00.001-03:00</published><updated>2012-05-22T11:20:36.107-03:00</updated><title type='text'>Fazendo um Crud usando C# e Asp.Net</title><content type='html'>O significado de CRUD é Create, Read, Updade and Delete que são as funções básicas de um sistema de gerenciamento de informações.
Neste POST mostrarei como fazer a partir de um exemplo simples em sala de aula.
Inicialmente devemos criar um Banco de dados chamado Stonehenge e em seguida procedemos a criação das telas em C# com seu respectivo código.
Veja o código de criação no quadro abaixo:
&lt;script src=&quot;http://pastebin.com/embed_js.php?i=aprhLf22&quot;&gt;
&lt;/script&gt;
Agora que já criamos o banco, vamos proceder na criação do código em Asp.Net. Abra o Visual Studio, crie um projeto do tipo WebSite e crie um formulario usando a opção clicando no botão direito do mouse sobre o projeto. troque o código Asp.net pelo que esta no quadro a seguir. O nome deste arquivo deve se chamar listarClientes.asp


&lt;script src=&quot;http://pastebin.com/embed_js.php?i=cVECnrMd&quot;&gt;&lt;/script&gt;



Como podem notar em uma das linhas retornadas pelo código do arquivo listarClientes.aspx o usuário deverá clicar no nome do cliente e o mesmo será desviado para uma tela chamada alterarCliente.aspx, cujo código pode ser visto abaixo:
&lt;script src=&quot;http://pastebin.com/embed_js.php?i=bCbWF7KL&quot;&gt;&lt;/script&gt;
Juntamente com esse código devemos ter os códigos em C# que dará a funcionalidade que desejamos. Veja a seguir :
&lt;script src=&quot;http://pastebin.com/embed_js.php?i=RVQuabWW&quot;&gt;&lt;/script&gt;
Agora só falta o código que faz a atualização no banco de dados.</content><link rel='replies' type='application/atom+xml' href='http://modelosdecodigos.blogspot.com/feeds/8752277328226771914/comments/default' title='Postar comentários'/><link rel='replies' type='text/html' href='http://modelosdecodigos.blogspot.com/2012/05/fazendo-um-crud-usando-c.html#comment-form' title='1 Comentários'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1209189845592343988/posts/default/8752277328226771914'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1209189845592343988/posts/default/8752277328226771914'/><link rel='alternate' type='text/html' href='http://modelosdecodigos.blogspot.com/2012/05/fazendo-um-crud-usando-c.html' title='Fazendo um Crud usando C# e Asp.Net'/><author><name>jorgefox</name><uri>http://www.blogger.com/profile/13417100727916050571</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiqTl_b0HdBZYy2ADY06ZbE1p_UKZPITCOe67DJcVgCk3nboF8Utn32svgKGCs1ZSIwAtdVCJUlCr9Emmz9OYOH25gpZDJiZ46NhYnvgJRpTMyIZfBFCB6fJ8qJVzpyRg/s220/WIN_20201029_09_19_06_Pro.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1209189845592343988.post-5021080297202461759</id><published>2012-05-18T16:15:00.001-03:00</published><updated>2012-05-18T17:10:27.140-03:00</updated><title type='text'>Formulario para cadastro de Artigo ou Nóticias</title><content type='html'>Olá Pessoal,&lt;br /&gt;
&lt;br /&gt;
Estou mais uma vez disponibilizando um formulário em C#(Sharp) para cadastramento de Artigos ou Noticias em um formulário Web.&lt;br /&gt;
Espero que gostem e utilizem ele.&lt;br /&gt;
Abraço e até o próximo post.&lt;br /&gt;
&lt;iframe src=&quot;http://pastebin.com/embed_iframe.php?i=Bj34vh2k&quot; style=&quot;border: none; height: 70%; width: 100%;&quot;&gt;&lt;/iframe&gt;

Não esqueçam também deste código que deve ter o mesmo nome, porém coma extensão aspx.cs.

&lt;iframe src=&quot;http://pastebin.com/embed_iframe.php?i=pNpGHEGA&quot; style=&quot;border:none;width:100%; height: 70%;&quot;&gt;&lt;/iframe&gt;</content><link rel='replies' type='application/atom+xml' href='http://modelosdecodigos.blogspot.com/feeds/5021080297202461759/comments/default' title='Postar comentários'/><link rel='replies' type='text/html' href='http://modelosdecodigos.blogspot.com/2012/05/formulario-para-cadastro-de-artigo-ou.html#comment-form' title='0 Comentários'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1209189845592343988/posts/default/5021080297202461759'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1209189845592343988/posts/default/5021080297202461759'/><link rel='alternate' type='text/html' href='http://modelosdecodigos.blogspot.com/2012/05/formulario-para-cadastro-de-artigo-ou.html' title='Formulario para cadastro de Artigo ou Nóticias'/><author><name>jorgefox</name><uri>http://www.blogger.com/profile/13417100727916050571</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiqTl_b0HdBZYy2ADY06ZbE1p_UKZPITCOe67DJcVgCk3nboF8Utn32svgKGCs1ZSIwAtdVCJUlCr9Emmz9OYOH25gpZDJiZ46NhYnvgJRpTMyIZfBFCB6fJ8qJVzpyRg/s220/WIN_20201029_09_19_06_Pro.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1209189845592343988.post-2759244472543183142</id><published>2012-05-14T13:56:00.000-03:00</published><updated>2012-05-16T17:41:01.418-03:00</updated><title type='text'>Tela de cadastro de clientes com list box</title><content type='html'>Olá Pessoal&lt;br /&gt;
&lt;br /&gt;
Neste artigo mostrarei como fazer uma tela(protótipo) para cadastramento de clientes e seleção de assuntos de interesse do cliente. É apenas uma demonstração do nosso curso de C# onde demonstramos a manipulação de ListBox em um WebForm.&lt;br /&gt;
Acompanhe o código abaixo e veja como ficou.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;%@ Page Language=&quot;C#&quot; AutoEventWireup=&quot;true&quot; CodeFile=&quot;Default.aspx.cs&quot; Inherits=&quot;_Default&quot;%&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!DOCTYPE html PUBLIC &quot;-//W3C//DTD XHTML 1.0 Transitional//EN&quot; &quot;http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd&quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;html xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&amp;gt;&lt;br /&gt;
&amp;lt;head&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;lt;style type=&quot;text/css&quot;&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; .style2&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; width: 96px;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; height: 34px;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; .style3&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; height: 34px;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; .style4&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; width: 123px;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; .style5&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; width: 157px;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; text-align: center;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; .style6&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; text-align: center;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; .style7&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; text-align: left;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;lt;/style&amp;gt;&lt;br /&gt;
&amp;lt;/head&amp;gt;&lt;br /&gt;
&amp;lt;form id=&quot;form1&quot; runat=&quot;server&quot;&amp;gt;&lt;br /&gt;
&amp;lt;table align=&quot;center&quot;&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;lt;tr&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;td class=&quot;style6&quot; colspan=&quot;2&quot;&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Cadastro de Clientes&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;lt;/tr&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;lt;tr&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;td class=&quot;style6&quot;&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;amp;nbsp;&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;td&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;amp;nbsp;&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;lt;/tr&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;lt;tr&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;td class=&quot;style7&quot;&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;asp:Label ID=&quot;Label1&quot; runat=&quot;server&quot; Text=&quot;Nome&quot;&amp;gt;&amp;lt;/asp:Label&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;td&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;asp:TextBox ID=&quot;nome&quot; runat=&quot;server&quot; Columns=&quot;50&quot; Font-Size=&quot;Medium&quot;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Height=&quot;28px&quot; MaxLength=&quot;50&quot; Width=&quot;431px&quot;&amp;gt;&amp;lt;/asp:TextBox&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;lt;/tr&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;lt;tr&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;td class=&quot;style7&quot;&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;asp:Label ID=&quot;Label2&quot; runat=&quot;server&quot; Text=&quot;Endereço&quot;&amp;gt;&amp;lt;/asp:Label&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;td&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;asp:TextBox ID=&quot;endereco&quot; runat=&quot;server&quot; Columns=&quot;50&quot; Font-Size=&quot;Medium&quot;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Height=&quot;28px&quot; MaxLength=&quot;50&quot; Width=&quot;431px&quot;&amp;gt;&amp;lt;/asp:TextBox&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;lt;/tr&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;lt;tr&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;td class=&quot;style7&quot;&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;asp:Label ID=&quot;Label3&quot; runat=&quot;server&quot; Text=&quot;Telefone&quot;&amp;gt;&amp;lt;/asp:Label&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;td&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;asp:TextBox ID=&quot;telefone&quot; runat=&quot;server&quot; Columns=&quot;14&quot; Font-Size=&quot;Medium&quot;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; MaxLength=&quot;14&quot;&amp;gt;&amp;lt;/asp:TextBox&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;lt;/tr&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;lt;tr&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;td class=&quot;style7&quot;&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;asp:Label ID=&quot;Label4&quot; runat=&quot;server&quot; Text=&quot;Bairro&quot;&amp;gt;&amp;lt;/asp:Label&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;td&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;asp:TextBox ID=&quot;Bairro&quot; runat=&quot;server&quot; Columns=&quot;30&quot; Font-Size=&quot;Medium&quot;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Height=&quot;22px&quot; MaxLength=&quot;30&quot; Width=&quot;261px&quot;&amp;gt;&amp;lt;/asp:TextBox&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;lt;/tr&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;lt;tr&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;td class=&quot;style7&quot;&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;asp:Label ID=&quot;Label5&quot; runat=&quot;server&quot; Text=&quot;Cidade&quot;&amp;gt;&amp;lt;/asp:Label&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;td&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;asp:TextBox ID=&quot;cidade&quot; runat=&quot;server&quot; Columns=&quot;30&quot; Font-Size=&quot;Medium&quot;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Height=&quot;22px&quot; MaxLength=&quot;30&quot; Width=&quot;261px&quot;&amp;gt;&amp;lt;/asp:TextBox&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;lt;/tr&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;lt;tr&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;td class=&quot;style7&quot;&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;asp:Label ID=&quot;Label6&quot; runat=&quot;server&quot; Text=&quot;Estado&quot;&amp;gt;&amp;lt;/asp:Label&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;td&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;asp:DropDownList ID=&quot;estado&quot; runat=&quot;server&quot;&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;asp:ListItem Value=&quot;AC&quot;&amp;gt;Acre&amp;lt;/asp:ListItem&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;asp:ListItem Value=&quot;AL&quot;&amp;gt;Alagoas&amp;lt;/asp:ListItem&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;asp:ListItem Value=&quot;AP&quot;&amp;gt;Amapá&amp;lt;/asp:ListItem&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;asp:ListItem Value=&quot;AM&quot;&amp;gt;Amazonas&amp;lt;/asp:ListItem&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;asp:ListItem Value=&quot;BA&quot;&amp;gt;Bahia&amp;lt;/asp:ListItem&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;asp:ListItem Value=&quot;CE&quot;&amp;gt;Ceará&amp;lt;/asp:ListItem&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;asp:ListItem Value=&quot;DF&quot;&amp;gt;Distrito Federal&amp;lt;/asp:ListItem&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;asp:ListItem Value=&quot;ES&quot;&amp;gt;Espirito Santo&amp;lt;/asp:ListItem&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;asp:ListItem Selected=&quot;True&quot; Value=&quot;GO&quot;&amp;gt;Goiás&amp;lt;/asp:ListItem&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;asp:ListItem Value=&quot;MA&quot;&amp;gt;Maranhão&amp;lt;/asp:ListItem&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;asp:ListItem Value=&quot;MT&quot;&amp;gt;Mato Grosso &amp;lt;/asp:ListItem&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;asp:ListItem Value=&quot;MS&quot;&amp;gt;Mato Groso do Sul&amp;lt;/asp:ListItem&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;asp:ListItem Value=&quot;MG&quot;&amp;gt;Minas Gerais&amp;lt;/asp:ListItem&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;asp:ListItem Value=&quot;PA&quot;&amp;gt;Pará&amp;lt;/asp:ListItem&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;asp:ListItem Value=&quot;PB&quot;&amp;gt;Paraíba&amp;lt;/asp:ListItem&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;asp:ListItem Value=&quot;PR&quot;&amp;gt;Paraná&amp;lt;/asp:ListItem&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;asp:ListItem Value=&quot;PE&quot;&amp;gt;Pernambuco&amp;lt;/asp:ListItem&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;asp:ListItem Value=&quot;PI&quot;&amp;gt;Piauí&amp;lt;/asp:ListItem&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;asp:ListItem Value=&quot;RJ&quot;&amp;gt;Rio de Janeiro&amp;lt;/asp:ListItem&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;asp:ListItem Value=&quot;RN&quot;&amp;gt;Rio Grande do Norte&amp;lt;/asp:ListItem&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;asp:ListItem Value=&quot;RS&quot;&amp;gt;Rio Grande do Sul&amp;lt;/asp:ListItem&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;asp:ListItem Value=&quot;RO&quot;&amp;gt;Rondônia&amp;lt;/asp:ListItem&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;asp:ListItem Value=&quot;RR&quot;&amp;gt;Roraíma&amp;lt;/asp:ListItem&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;asp:ListItem Value=&quot;SP&quot;&amp;gt;São Paulo&amp;lt;/asp:ListItem&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;asp:ListItem Value=&quot;SC&quot;&amp;gt;Santa Catarina&amp;lt;/asp:ListItem&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;asp:ListItem Value=&quot;SE&quot;&amp;gt;Sergipe &amp;lt;/asp:ListItem&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;asp:ListItem Value=&quot;TO&quot;&amp;gt;Tocantins&amp;lt;/asp:ListItem&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/asp:DropDownList&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;lt;/tr&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;lt;tr&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;td class=&quot;style7&quot;&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;asp:Label ID=&quot;Label7&quot; runat=&quot;server&quot; Text=&quot;CPF&quot;&amp;gt;&amp;lt;/asp:Label&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;td&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;asp:TextBox ID=&quot;cpf&quot; runat=&quot;server&quot; Columns=&quot;14&quot; MaxLength=&quot;14&quot;&amp;gt;&amp;lt;/asp:TextBox&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;lt;/tr&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;lt;tr&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;td class=&quot;style6&quot;&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;amp;nbsp;&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;td&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;table style=&quot;width:100%;&quot;&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;tr&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;td class=&quot;style4&quot; style=&quot;text-align: center&quot;&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;asp:Label ID=&quot;Label9&quot; runat=&quot;server&quot; Text=&quot;Assuntos&quot;&amp;gt;&amp;lt;/asp:Label&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;td class=&quot;style5&quot;&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;asp:Label ID=&quot;Label11&quot; runat=&quot;server&quot; Width=&quot;20px&quot;&amp;gt;&amp;lt;/asp:Label&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;td style=&quot;text-align: center&quot;&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;asp:Label ID=&quot;Label10&quot; runat=&quot;server&quot; Text=&quot;Prediletos&quot;/&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/tr&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;tr&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;td class=&quot;style4&quot; rowspan=&quot;4&quot;&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;asp:ListBox id=&quot;assuntos&quot; runat=&quot;server&quot; Height=&quot;116px&quot; Width=&quot;121px&quot;&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;asp:ListItem Value=&quot;inf&quot;&amp;gt;Informatica&amp;lt;/asp:ListItem&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;asp:ListItem Value=&quot;Aut&quot;&amp;gt;Automóvel&amp;lt;/asp:ListItem&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;asp:ListItem Value=&quot;Cul&quot;&amp;gt;Cultura&amp;lt;/asp:ListItem&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;asp:ListItem Value=&quot;Cui&quot;&amp;gt;Culinaria&amp;lt;/asp:ListItem&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;asp:ListItem Value=&quot;Tre&quot;&amp;gt;Treinamento&amp;lt;/asp:ListItem&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;asp:ListItem Value=&quot;Fin&quot;&amp;gt;Finanças&amp;lt;/asp:ListItem&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;asp:ListItem Value=&quot;Rel&quot;&amp;gt;Religião &amp;lt;/asp:ListItem&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;asp:ListItem Value=&quot;Pol&quot;&amp;gt;Política&amp;lt;/asp:ListItem&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/asp:ListBox&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;td class=&quot;style5&quot;&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;asp:Button ID=&quot;tudoL&quot; runat=&quot;server&quot; Text=&quot;&amp;amp;lt;&amp;amp;lt;&quot; onclick=&quot;tudoL_Click&quot;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ToolTip=&quot;Limpar todos os assuntos prediletos e voltar para assuntos&quot; /&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;td rowspan=&quot;4&quot;&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;asp:ListBox ID=&quot;prediletos&quot; runat=&quot;server&quot; Height=&quot;119px&quot; Width=&quot;132px&quot;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; SelectionMode=&quot;Multiple&quot;&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/asp:ListBox&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/tr&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;tr&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;td class=&quot;style5&quot;&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;asp:Button ID=&quot;tudoR&quot; runat=&quot;server&quot; Text=&quot;&amp;amp;gt;&amp;amp;gt;&quot; onclick=&quot;tudoR_Click&quot; /&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/tr&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;tr&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;td class=&quot;style5&quot;&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;asp:Button ID=&quot;RtoL&quot; runat=&quot;server&quot; Text=&quot; &amp;amp;lt; &quot; onclick=&quot;RtoL_Click&quot; /&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/tr&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;tr&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;td class=&quot;style5&quot;&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;asp:Button ID=&quot;LtoR&quot; runat=&quot;server&quot; onclick=&quot;LtoR_click&quot; Text=&quot; &amp;amp;gt; &quot; /&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/tr&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/table&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;lt;/tr&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;lt;tr&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;td class=&quot;style2&quot;&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;td class=&quot;style3&quot;&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;asp:Button ID=&quot;Button1&quot; runat=&quot;server&quot; onclick=&quot;limparCampos&quot; Text=&quot;Limpar&quot; /&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;asp:Label ID=&quot;Label8&quot; runat=&quot;server&quot; Height=&quot;17px&quot; Width=&quot;304px&quot;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/asp:Label&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;asp:Button ID=&quot;Salvar&quot; runat=&quot;server&quot; Text=&quot;Salvar&quot; /&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;lt;/tr&amp;gt;&lt;br /&gt;
&amp;lt;/table&amp;gt;&lt;br /&gt;
&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&lt;br /&gt;
&amp;lt;/form&amp;gt;&lt;br /&gt;
&amp;lt;script language=&quot;C#&quot; runat=&quot;server&quot;&amp;gt;&lt;br /&gt;
&amp;nbsp; &lt;br /&gt;
&lt;br /&gt;
&amp;lt;/script&amp;gt;&lt;br /&gt;
&amp;lt;/html&amp;gt;&lt;br /&gt;
&lt;br /&gt;
agora no arquivo Default.aspx.cs coloque.&lt;br /&gt;
&lt;br /&gt;
&lt;iframe src=&quot;http://pastebin.com/embed_iframe.php?i=cZHPFg8Y&quot; style=&quot;border:none;width:100%;heigth:70%;&quot;&gt;&lt;/iframe&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: Consolas; font-size: x-small;&quot;&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #181818; font-family: Consolas, Menlo, Monaco, &#39;Lucida Console&#39;, &#39;Liberation Mono&#39;, &#39;DejaVu Sans Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, monospace, serif;&quot;&gt;&lt;span style=&quot;font-size: 12px; line-height: 22px; white-space: pre;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Espero que tenham gostado deste código e desafio você a fazer o restante do código. Abraço a todos.&lt;br /&gt;
Jorge Albernaz Martins.&#39;.</content><link rel='replies' type='application/atom+xml' href='http://modelosdecodigos.blogspot.com/feeds/2759244472543183142/comments/default' title='Postar comentários'/><link rel='replies' type='text/html' href='http://modelosdecodigos.blogspot.com/2012/05/tela-de-cadastro-de-clientes-com-list.html#comment-form' title='0 Comentários'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1209189845592343988/posts/default/2759244472543183142'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1209189845592343988/posts/default/2759244472543183142'/><link rel='alternate' type='text/html' href='http://modelosdecodigos.blogspot.com/2012/05/tela-de-cadastro-de-clientes-com-list.html' title='Tela de cadastro de clientes com list box'/><author><name>jorgefox</name><uri>http://www.blogger.com/profile/13417100727916050571</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiqTl_b0HdBZYy2ADY06ZbE1p_UKZPITCOe67DJcVgCk3nboF8Utn32svgKGCs1ZSIwAtdVCJUlCr9Emmz9OYOH25gpZDJiZ46NhYnvgJRpTMyIZfBFCB6fJ8qJVzpyRg/s220/WIN_20201029_09_19_06_Pro.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1209189845592343988.post-4375498240061395140</id><published>2012-03-01T14:38:00.000-03:00</published><updated>2012-03-01T14:38:19.392-03:00</updated><title type='text'>Cadastro de notas de alunos usando Matriz Bi dimensional - JAVA</title><content type='html'>&lt;br /&gt;
package Aula05;&lt;br /&gt;
&lt;br /&gt;
import javax.swing.JOptionPane;&lt;br /&gt;
&lt;br /&gt;
public class CalculaMediaAlunoBiDimensional &amp;nbsp;{&lt;br /&gt;
&amp;nbsp; &amp;nbsp; public static void main(String[] args) {&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; String[] nome=new String[10];&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; double[][] notas=new double[10][5];&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; //faz se a entrada de dados&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; for (int i = 0; i &amp;lt; 3; i++) {&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; nome[i]=JOptionPane.showInputDialog(&quot;Nome &quot;);&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; notas[i][0]=Double.parseDouble(JOptionPane.showInputDialog(&quot;Nota 1 &quot;));&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; notas[i][1]=Double.parseDouble(JOptionPane.showInputDialog(&quot;Nota 2 &quot;));&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; notas[i][2]=Double.parseDouble(JOptionPane.showInputDialog(&quot;Nota 3 &quot;));&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; notas[i][3]=Double.parseDouble(JOptionPane.showInputDialog(&quot;Nota 4 &quot;));&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; notas[i][4]=(notas[i][0]+notas[i][1]+notas[i][2]+notas[i][3])/4;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; for (int i = 0; i &amp;lt; 3; i++) {&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; System.out.println(&quot;Nome : &quot;+nome[i]);&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; System.out.println(&quot;Nota 1 &quot;+notas[i][0]);&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; System.out.println(&quot;Nota 2 &quot;+notas[i][1]);&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; System.out.println(&quot;Nota 3 &quot;+notas[i][2]);&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; System.out.println(&quot;Nota 4 &quot;+notas[i][3]); &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; System.out.println(&quot;Media &quot;+notas[i][4]);&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; } &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; }&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp;&lt;br /&gt;
&lt;br /&gt;</content><link rel='replies' type='application/atom+xml' href='http://modelosdecodigos.blogspot.com/feeds/4375498240061395140/comments/default' title='Postar comentários'/><link rel='replies' type='text/html' href='http://modelosdecodigos.blogspot.com/2012/03/cadastro-de-notas-de-alunos-usando.html#comment-form' title='0 Comentários'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1209189845592343988/posts/default/4375498240061395140'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1209189845592343988/posts/default/4375498240061395140'/><link rel='alternate' type='text/html' href='http://modelosdecodigos.blogspot.com/2012/03/cadastro-de-notas-de-alunos-usando.html' title='Cadastro de notas de alunos usando Matriz Bi dimensional - JAVA'/><author><name>jorgefox</name><uri>http://www.blogger.com/profile/13417100727916050571</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiqTl_b0HdBZYy2ADY06ZbE1p_UKZPITCOe67DJcVgCk3nboF8Utn32svgKGCs1ZSIwAtdVCJUlCr9Emmz9OYOH25gpZDJiZ46NhYnvgJRpTMyIZfBFCB6fJ8qJVzpyRg/s220/WIN_20201029_09_19_06_Pro.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1209189845592343988.post-8886052199277620395</id><published>2012-02-29T11:28:00.001-03:00</published><updated>2012-02-29T11:28:08.083-03:00</updated><title type='text'>Trabalhando com variaveis homogeneas bi dimensionais.</title><content type='html'>&lt;br /&gt;
&lt;div style=&quot;direction: ltr; language: pt-BR; line-height: 80%; margin-bottom: 0pt; margin-left: .38in; margin-top: 3.84pt; mso-line-break-override: none; punctuation-wrap: hanging; text-align: left; text-indent: -.38in; unicode-bidi: embed; vertical-align: baseline;&quot;&gt;
&lt;span style=&quot;font-family: Arial; font-size: 16pt; font-weight: bold;&quot;&gt;import&lt;/span&gt;&lt;span style=&quot;font-family: Arial; font-size: 16pt; font-weight: bold;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;font-family: Arial; font-size: 16pt; font-weight: bold;&quot;&gt;javax&lt;/span&gt;&lt;span style=&quot;font-family: Arial; font-size: 16pt; font-weight: bold;&quot;&gt;.swing.&lt;/span&gt;&lt;span style=&quot;font-family: Arial; font-size: 16pt; font-weight: bold;&quot;&gt;JOptionPane&lt;/span&gt;&lt;span style=&quot;font-family: Arial; font-size: 16pt; font-weight: bold;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;direction: ltr; language: pt-BR; line-height: 80%; margin-bottom: 0pt; margin-left: .38in; margin-top: 3.84pt; mso-line-break-override: none; punctuation-wrap: hanging; text-align: left; text-indent: -.38in; unicode-bidi: embed; vertical-align: baseline;&quot;&gt;
&lt;span style=&quot;font-family: Arial; font-size: 16pt; font-weight: bold;&quot;&gt;public&lt;/span&gt;&lt;span style=&quot;font-family: Arial; font-size: 16pt; font-weight: bold;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;font-family: Arial; font-size: 16pt; font-weight: bold;&quot;&gt;class&lt;/span&gt;&lt;span style=&quot;font-family: Arial; font-size: 16pt; font-weight: bold;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;font-family: Arial; font-size: 16pt; font-weight: bold;&quot;&gt;UsandoMatriz&lt;/span&gt;&lt;span style=&quot;font-family: Arial; font-size: 16pt; font-weight: bold;&quot;&gt; {&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;direction: ltr; language: pt-BR; line-height: 80%; margin-bottom: 0pt; margin-left: .38in; margin-top: 3.84pt; mso-line-break-override: none; punctuation-wrap: hanging; text-align: left; text-indent: -.38in; unicode-bidi: embed; vertical-align: baseline;&quot;&gt;
&lt;span style=&quot;font-family: Arial; font-size: 16pt; font-weight: bold;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;font-family: Arial; font-size: 16pt; font-weight: bold;&quot;&gt;public&lt;/span&gt;&lt;span style=&quot;font-family: Arial; font-size: 16pt; font-weight: bold;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;font-family: Arial; font-size: 16pt; font-weight: bold;&quot;&gt;static&lt;/span&gt;&lt;span style=&quot;font-family: Arial; font-size: 16pt; font-weight: bold;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;font-family: Arial; font-size: 16pt; font-weight: bold;&quot;&gt;void&lt;/span&gt;&lt;span style=&quot;font-family: Arial; font-size: 16pt; font-weight: bold;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;font-family: Arial; font-size: 16pt; font-weight: bold;&quot;&gt;main&lt;/span&gt;&lt;span style=&quot;font-family: Arial; font-size: 16pt; font-weight: bold;&quot;&gt;(String[] &lt;/span&gt;&lt;span style=&quot;font-family: Arial; font-size: 16pt; font-weight: bold;&quot;&gt;args&lt;/span&gt;&lt;span style=&quot;font-family: Arial; font-size: 16pt; font-weight: bold;&quot;&gt;) {&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;direction: ltr; language: pt-BR; line-height: 80%; margin-bottom: 0pt; margin-left: .38in; margin-top: 3.84pt; mso-line-break-override: none; punctuation-wrap: hanging; text-align: left; text-indent: -.38in; unicode-bidi: embed; vertical-align: baseline;&quot;&gt;
&lt;span style=&quot;font-family: Arial; font-size: 16pt; font-weight: bold;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;font-family: Arial; font-size: 16pt; font-weight: bold;&quot;&gt;int&lt;/span&gt;&lt;span style=&quot;font-family: Arial; font-size: 16pt; font-weight: bold;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;font-family: Arial; font-size: 16pt; font-weight: bold;&quot;&gt;lin&lt;/span&gt;&lt;span style=&quot;font-family: Arial; font-size: 16pt; font-weight: bold;&quot;&gt; = &lt;/span&gt;&lt;span style=&quot;font-family: Arial; font-size: 16pt; font-weight: bold;&quot;&gt;Integer&lt;/span&gt;&lt;span style=&quot;font-family: Arial; font-size: 16pt; font-weight: bold;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;font-family: Arial; font-size: 16pt; font-weight: bold;&quot;&gt;parseInt&lt;/span&gt;&lt;span style=&quot;font-family: Arial; font-size: 16pt; font-weight: bold;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;font-family: Arial; font-size: 16pt; font-weight: bold;&quot;&gt;JOptionPane&lt;/span&gt;&lt;span style=&quot;font-family: Arial; font-size: 16pt; font-weight: bold;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;font-family: Arial; font-size: 16pt; font-weight: bold;&quot;&gt;showInputDialog&lt;/span&gt;&lt;span style=&quot;font-family: Arial; font-size: 16pt; font-weight: bold;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;font-family: Arial; font-size: 16pt; font-weight: bold;&quot;&gt;null&lt;/span&gt;&lt;span style=&quot;font-family: Arial; font-size: 16pt; font-weight: bold;&quot;&gt;,&quot;Informe a quantidade &amp;nbsp; de linha da Matriz.&quot;));&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;direction: ltr; language: pt-BR; line-height: 80%; margin-bottom: 0pt; margin-left: .38in; margin-top: 3.84pt; mso-line-break-override: none; punctuation-wrap: hanging; text-align: left; text-indent: -.38in; unicode-bidi: embed; vertical-align: baseline;&quot;&gt;
&lt;span style=&quot;font-family: Arial; font-size: 16pt; font-weight: bold;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;font-family: Arial; font-size: 16pt; font-weight: bold;&quot;&gt;int&lt;/span&gt;&lt;span style=&quot;font-family: Arial; font-size: 16pt; font-weight: bold;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;font-family: Arial; font-size: 16pt; font-weight: bold;&quot;&gt;col&lt;/span&gt;&lt;span style=&quot;font-family: Arial; font-size: 16pt; font-weight: bold;&quot;&gt; = &lt;/span&gt;&lt;span style=&quot;font-family: Arial; font-size: 16pt; font-weight: bold;&quot;&gt;Integer&lt;/span&gt;&lt;span style=&quot;font-family: Arial; font-size: 16pt; font-weight: bold;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;font-family: Arial; font-size: 16pt; font-weight: bold;&quot;&gt;parseInt&lt;/span&gt;&lt;span style=&quot;font-family: Arial; font-size: 16pt; font-weight: bold;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;font-family: Arial; font-size: 16pt; font-weight: bold;&quot;&gt;JOptionPane&lt;/span&gt;&lt;span style=&quot;font-family: Arial; font-size: 16pt; font-weight: bold;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;font-family: Arial; font-size: 16pt; font-weight: bold;&quot;&gt;showInputDialog&lt;/span&gt;&lt;span style=&quot;font-family: Arial; font-size: 16pt; font-weight: bold;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;font-family: Arial; font-size: 16pt; font-weight: bold;&quot;&gt;null&lt;/span&gt;&lt;span style=&quot;font-family: Arial; font-size: 16pt; font-weight: bold;&quot;&gt;,&quot;Informe a quantidade &amp;nbsp; de coluna da Matriz.&quot;));&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;direction: ltr; language: pt-BR; line-height: 80%; margin-bottom: 0pt; margin-left: .38in; margin-top: 3.84pt; mso-line-break-override: none; punctuation-wrap: hanging; text-align: left; text-indent: -.38in; unicode-bidi: embed; vertical-align: baseline;&quot;&gt;
&lt;span style=&quot;font-family: Arial; font-size: 16pt; font-weight: bold;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;font-family: Arial; font-size: 16pt; font-weight: bold;&quot;&gt;int&lt;/span&gt;&lt;span style=&quot;font-family: Arial; font-size: 16pt; font-weight: bold;&quot;&gt; matriz[][] = &lt;/span&gt;&lt;span style=&quot;font-family: Arial; font-size: 16pt; font-weight: bold;&quot;&gt;new&lt;/span&gt;&lt;span style=&quot;font-family: Arial; font-size: 16pt; font-weight: bold;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;font-family: Arial; font-size: 16pt; font-weight: bold;&quot;&gt;int&lt;/span&gt;&lt;span style=&quot;font-family: Arial; font-size: 16pt; font-weight: bold;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;font-family: Arial; font-size: 16pt; font-weight: bold;&quot;&gt;lin&lt;/span&gt;&lt;span style=&quot;font-family: Arial; font-size: 16pt; font-weight: bold;&quot;&gt;][&lt;/span&gt;&lt;span style=&quot;font-family: Arial; font-size: 16pt; font-weight: bold;&quot;&gt;col&lt;/span&gt;&lt;span style=&quot;font-family: Arial; font-size: 16pt; font-weight: bold;&quot;&gt;];&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;direction: ltr; language: pt-BR; line-height: 80%; margin-bottom: 0pt; margin-left: .38in; margin-top: 3.84pt; mso-line-break-override: none; punctuation-wrap: hanging; text-align: left; text-indent: -.38in; unicode-bidi: embed; vertical-align: baseline;&quot;&gt;
&lt;span style=&quot;font-family: Arial; font-size: 16pt; font-weight: bold;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;direction: ltr; language: pt-BR; line-height: 80%; margin-bottom: 0pt; margin-left: .38in; margin-top: 3.84pt; mso-line-break-override: none; punctuation-wrap: hanging; text-align: left; text-indent: -.38in; unicode-bidi: embed; vertical-align: baseline;&quot;&gt;
&lt;span style=&quot;font-family: Arial; font-size: 16pt; font-weight: bold;&quot;&gt;&amp;nbsp; &amp;nbsp;for (&lt;/span&gt;&lt;span style=&quot;font-family: Arial; font-size: 16pt; font-weight: bold;&quot;&gt;int&lt;/span&gt;&lt;span style=&quot;font-family: Arial; font-size: 16pt; font-weight: bold;&quot;&gt; i=0; i&amp;lt;&lt;/span&gt;&lt;span style=&quot;font-family: Arial; font-size: 16pt; font-weight: bold;&quot;&gt;lin&lt;/span&gt;&lt;span style=&quot;font-family: Arial; font-size: 16pt; font-weight: bold;&quot;&gt;; i++)&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;direction: ltr; language: pt-BR; line-height: 80%; margin-bottom: 0pt; margin-left: .38in; margin-top: 3.84pt; mso-line-break-override: none; punctuation-wrap: hanging; text-align: left; text-indent: -.38in; unicode-bidi: embed; vertical-align: baseline;&quot;&gt;
&lt;span style=&quot;font-family: Arial; font-size: 16pt; font-weight: bold;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp; for
(&lt;/span&gt;&lt;span style=&quot;font-family: Arial; font-size: 16pt; font-weight: bold;&quot;&gt;int&lt;/span&gt;&lt;span style=&quot;font-family: Arial; font-size: 16pt; font-weight: bold;&quot;&gt; j=0; j&amp;lt;&lt;/span&gt;&lt;span style=&quot;font-family: Arial; font-size: 16pt; font-weight: bold;&quot;&gt;col&lt;/span&gt;&lt;span style=&quot;font-family: Arial; font-size: 16pt; font-weight: bold;&quot;&gt;; j++)&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;direction: ltr; language: pt-BR; line-height: 80%; margin-bottom: 0pt; margin-left: .38in; margin-top: 3.84pt; mso-line-break-override: none; punctuation-wrap: hanging; text-align: left; text-indent: -.38in; unicode-bidi: embed; vertical-align: baseline;&quot;&gt;
&lt;span style=&quot;font-family: Arial; font-size: 16pt; font-weight: bold;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp; matriz[i][j]
= &lt;/span&gt;&lt;span style=&quot;font-family: Arial; font-size: 16pt; font-weight: bold;&quot;&gt;Integer&lt;/span&gt;&lt;span style=&quot;font-family: Arial; font-size: 16pt; font-weight: bold;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;font-family: Arial; font-size: 16pt; font-weight: bold;&quot;&gt;parseInt&lt;/span&gt;&lt;span style=&quot;font-family: Arial; font-size: 16pt; font-weight: bold;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;font-family: Arial; font-size: 16pt; font-weight: bold;&quot;&gt;JOptionPane&lt;/span&gt;&lt;span style=&quot;font-family: Arial; font-size: 16pt; font-weight: bold;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;font-family: Arial; font-size: 16pt; font-weight: bold;&quot;&gt;showInputDialog&lt;/span&gt;&lt;span style=&quot;font-family: Arial; font-size: 16pt; font-weight: bold;&quot;&gt;( &amp;nbsp; &lt;/span&gt;&lt;span style=&quot;font-family: Arial; font-size: 16pt; font-weight: bold;&quot;&gt;null&lt;/span&gt;&lt;span style=&quot;font-family: Arial; font-size: 16pt; font-weight: bold;&quot;&gt;,&quot;Digite o valor da
posição[&quot;+(i+1)+(j+1)+&quot;]&quot;,&quot;MATRIZ&quot;,1));&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;direction: ltr; language: pt-BR; line-height: 80%; margin-bottom: 0pt; margin-left: .38in; margin-top: 3.84pt; mso-line-break-override: none; punctuation-wrap: hanging; text-align: left; text-indent: -.38in; unicode-bidi: embed; vertical-align: baseline;&quot;&gt;
&lt;span style=&quot;font-family: Arial; font-size: 16pt; font-weight: bold;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;direction: ltr; language: pt-BR; line-height: 80%; margin-bottom: 0pt; margin-left: .38in; margin-top: 3.84pt; mso-line-break-override: none; punctuation-wrap: hanging; text-align: left; text-indent: -.38in; unicode-bidi: embed; vertical-align: baseline;&quot;&gt;
&lt;span style=&quot;font-family: Arial; font-size: 16pt; font-weight: bold;&quot;&gt;&amp;nbsp; System.&lt;/span&gt;&lt;span style=&quot;font-family: Arial; font-size: 16pt; font-weight: bold;&quot;&gt;out.println&lt;/span&gt;&lt;span style=&quot;font-family: Arial; font-size: 16pt; font-weight: bold;&quot;&gt;(&quot;Matriz Digitada.&quot;);&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;direction: ltr; language: pt-BR; line-height: 80%; margin-bottom: 0pt; margin-left: .38in; margin-top: 3.84pt; mso-line-break-override: none; punctuation-wrap: hanging; text-align: left; text-indent: -.38in; unicode-bidi: embed; vertical-align: baseline;&quot;&gt;
&lt;span style=&quot;font-family: Arial; font-size: 16pt; font-weight: bold;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;direction: ltr; language: pt-BR; line-height: 80%; margin-bottom: 0pt; margin-left: .38in; margin-top: 3.84pt; mso-line-break-override: none; punctuation-wrap: hanging; text-align: left; text-indent: -.38in; unicode-bidi: embed; vertical-align: baseline;&quot;&gt;
&lt;span style=&quot;font-family: Arial; font-size: 16pt; font-weight: bold;&quot;&gt;&amp;nbsp; for (&lt;/span&gt;&lt;span style=&quot;font-family: Arial; font-size: 16pt; font-weight: bold;&quot;&gt;int&lt;/span&gt;&lt;span style=&quot;font-family: Arial; font-size: 16pt; font-weight: bold;&quot;&gt; i=0; i&amp;lt;&lt;/span&gt;&lt;span style=&quot;font-family: Arial; font-size: 16pt; font-weight: bold;&quot;&gt;lin&lt;/span&gt;&lt;span style=&quot;font-family: Arial; font-size: 16pt; font-weight: bold;&quot;&gt;; i++){&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;direction: ltr; language: pt-BR; line-height: 80%; margin-bottom: 0pt; margin-left: .38in; margin-top: 3.84pt; mso-line-break-override: none; punctuation-wrap: hanging; text-align: left; text-indent: -.38in; unicode-bidi: embed; vertical-align: baseline;&quot;&gt;
&lt;span style=&quot;font-family: Arial; font-size: 16pt; font-weight: bold;&quot;&gt;&amp;nbsp; System.&lt;/span&gt;&lt;span style=&quot;font-family: Arial; font-size: 16pt; font-weight: bold;&quot;&gt;out.println&lt;/span&gt;&lt;span style=&quot;font-family: Arial; font-size: 16pt; font-weight: bold;&quot;&gt;();&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;direction: ltr; language: pt-BR; line-height: 80%; margin-bottom: 0pt; margin-left: .38in; margin-top: 3.84pt; mso-line-break-override: none; punctuation-wrap: hanging; text-align: left; text-indent: -.38in; unicode-bidi: embed; vertical-align: baseline;&quot;&gt;
&lt;span style=&quot;font-family: Arial; font-size: 16pt; font-weight: bold;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp; for
(&lt;/span&gt;&lt;span style=&quot;font-family: Arial; font-size: 16pt; font-weight: bold;&quot;&gt;int&lt;/span&gt;&lt;span style=&quot;font-family: Arial; font-size: 16pt; font-weight: bold;&quot;&gt; j=0; j&amp;lt;&lt;/span&gt;&lt;span style=&quot;font-family: Arial; font-size: 16pt; font-weight: bold;&quot;&gt;col&lt;/span&gt;&lt;span style=&quot;font-family: Arial; font-size: 16pt; font-weight: bold;&quot;&gt;; j++)&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;direction: ltr; language: pt-BR; line-height: 80%; margin-bottom: 0pt; margin-left: .38in; margin-top: 3.84pt; mso-line-break-override: none; punctuation-wrap: hanging; text-align: left; text-indent: -.38in; unicode-bidi: embed; vertical-align: baseline;&quot;&gt;
&lt;span style=&quot;font-family: Arial; font-size: 16pt; font-weight: bold;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp; System.&lt;/span&gt;&lt;span style=&quot;font-family: Arial; font-size: 16pt; font-weight: bold;&quot;&gt;out.print&lt;/span&gt;&lt;span style=&quot;font-family: Arial; font-size: 16pt; font-weight: bold;&quot;&gt;(matriz[i][j]
+ &quot;\t&quot;);&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;direction: ltr; language: pt-BR; line-height: 80%; margin-bottom: 0pt; margin-left: .38in; margin-top: 3.84pt; mso-line-break-override: none; punctuation-wrap: hanging; text-align: left; text-indent: -.38in; unicode-bidi: embed; vertical-align: baseline;&quot;&gt;
&lt;span style=&quot;font-family: Arial; font-size: 16pt; font-weight: bold;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;direction: ltr; language: pt-BR; line-height: 80%; margin-bottom: 0pt; margin-left: .38in; margin-top: 3.84pt; mso-line-break-override: none; punctuation-wrap: hanging; text-align: left; text-indent: -.38in; unicode-bidi: embed; vertical-align: baseline;&quot;&gt;
&lt;span style=&quot;font-family: Arial; font-size: 16pt; font-weight: bold;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;direction: ltr; language: pt-BR; line-height: 80%; margin-bottom: 0pt; margin-left: .38in; margin-top: 3.84pt; mso-line-break-override: none; punctuation-wrap: hanging; text-align: left; text-indent: -.38in; unicode-bidi: embed; vertical-align: baseline;&quot;&gt;
&lt;span style=&quot;font-family: Arial; font-size: 16pt; font-weight: bold;&quot;&gt;}&lt;/span&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://modelosdecodigos.blogspot.com/feeds/8886052199277620395/comments/default' title='Postar comentários'/><link rel='replies' type='text/html' href='http://modelosdecodigos.blogspot.com/2012/02/trabalhando-com-variaveis-homogeneas-bi.html#comment-form' title='0 Comentários'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1209189845592343988/posts/default/8886052199277620395'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1209189845592343988/posts/default/8886052199277620395'/><link rel='alternate' type='text/html' href='http://modelosdecodigos.blogspot.com/2012/02/trabalhando-com-variaveis-homogeneas-bi.html' title='Trabalhando com variaveis homogeneas bi dimensionais.'/><author><name>jorgefox</name><uri>http://www.blogger.com/profile/13417100727916050571</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiqTl_b0HdBZYy2ADY06ZbE1p_UKZPITCOe67DJcVgCk3nboF8Utn32svgKGCs1ZSIwAtdVCJUlCr9Emmz9OYOH25gpZDJiZ46NhYnvgJRpTMyIZfBFCB6fJ8qJVzpyRg/s220/WIN_20201029_09_19_06_Pro.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1209189845592343988.post-99678625119986355</id><published>2012-02-28T17:28:00.005-03:00</published><updated>2012-02-28T17:28:57.409-03:00</updated><title type='text'>Exercicio em sala de aula</title><content type='html'>&lt;br /&gt;
&lt;div style=&quot;direction: ltr; language: pt-BR; line-height: 80%; margin-bottom: 0pt; margin-left: .38in; margin-top: 3.84pt; mso-line-break-override: none; punctuation-wrap: hanging; text-align: left; text-indent: -.38in; unicode-bidi: embed; vertical-align: baseline;&quot;&gt;
&lt;span style=&quot;font-family: Arial; font-size: 16pt; font-weight: bold;&quot;&gt;public&lt;/span&gt;&lt;span style=&quot;font-family: Arial; font-size: 16pt; font-weight: bold;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;font-family: Arial; font-size: 16pt; font-weight: bold;&quot;&gt;class&lt;/span&gt;&lt;span style=&quot;font-family: Arial; font-size: 16pt; font-weight: bold;&quot;&gt; Quadrado {&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;direction: ltr; language: pt-BR; line-height: 80%; margin-bottom: 0pt; margin-left: .38in; margin-top: 3.84pt; mso-line-break-override: none; punctuation-wrap: hanging; text-align: left; text-indent: -.38in; unicode-bidi: embed; vertical-align: baseline;&quot;&gt;
&lt;span style=&quot;font-family: Arial; font-size: 16pt; font-weight: bold;&quot;&gt;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;font-family: Arial; font-size: 16pt; font-weight: bold;&quot;&gt;public&lt;/span&gt;&lt;span style=&quot;font-family: Arial; font-size: 16pt; font-weight: bold;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;font-family: Arial; font-size: 16pt; font-weight: bold;&quot;&gt;static&lt;/span&gt;&lt;span style=&quot;font-family: Arial; font-size: 16pt; font-weight: bold;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;font-family: Arial; font-size: 16pt; font-weight: bold;&quot;&gt;void&lt;/span&gt;&lt;span style=&quot;font-family: Arial; font-size: 16pt; font-weight: bold;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;font-family: Arial; font-size: 16pt; font-weight: bold;&quot;&gt;main&lt;/span&gt;&lt;span style=&quot;font-family: Arial; font-size: 16pt; font-weight: bold;&quot;&gt; (String &lt;/span&gt;&lt;span style=&quot;font-family: Arial; font-size: 16pt; font-weight: bold;&quot;&gt;args&lt;/span&gt;&lt;span style=&quot;font-family: Arial; font-size: 16pt; font-weight: bold;&quot;&gt;[ ])&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;direction: ltr; language: pt-BR; line-height: 80%; margin-bottom: 0pt; margin-left: .38in; margin-top: 3.84pt; mso-line-break-override: none; punctuation-wrap: hanging; text-align: left; text-indent: -.38in; unicode-bidi: embed; vertical-align: baseline;&quot;&gt;
&lt;span style=&quot;font-family: Arial; font-size: 16pt; font-weight: bold;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;font-family: Arial; font-size: 16pt; font-weight: bold;&quot;&gt;if&lt;/span&gt;&lt;span style=&quot;font-family: Arial; font-size: 16pt; font-weight: bold;&quot;&gt; (&lt;/span&gt;&lt;span style=&quot;font-family: Arial; font-size: 16pt; font-weight: bold;&quot;&gt;args&lt;/span&gt;&lt;span style=&quot;font-family: Arial; font-size: 16pt; font-weight: bold;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;font-family: Arial; font-size: 16pt; font-weight: bold;&quot;&gt;length&lt;/span&gt;&lt;span style=&quot;font-family: Arial; font-size: 16pt; font-weight: bold;&quot;&gt; &amp;lt; 1)&amp;nbsp; {&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;direction: ltr; language: pt-BR; line-height: 80%; margin-bottom: 0pt; margin-left: .38in; margin-top: 3.84pt; mso-line-break-override: none; punctuation-wrap: hanging; text-align: left; text-indent: -.38in; unicode-bidi: embed; vertical-align: baseline;&quot;&gt;
&lt;span style=&quot;font-family: Arial; font-size: 16pt; font-weight: bold;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; System.&lt;/span&gt;&lt;span style=&quot;font-family: Arial; font-size: 16pt; font-weight: bold;&quot;&gt;out.println&lt;/span&gt;&lt;span style=&quot;font-family: Arial; font-size: 16pt; font-weight: bold;&quot;&gt;(&quot;Informe um numero
menor ou igual 50&quot;);&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;direction: ltr; language: pt-BR; line-height: 80%; margin-bottom: 0pt; margin-left: .38in; margin-top: 3.84pt; mso-line-break-override: none; punctuation-wrap: hanging; text-align: left; text-indent: -.38in; unicode-bidi: embed; vertical-align: baseline;&quot;&gt;
&lt;span style=&quot;font-family: Arial; font-size: 16pt; font-weight: bold;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; System.&lt;/span&gt;&lt;span style=&quot;font-family: Arial; font-size: 16pt; font-weight: bold;&quot;&gt;out.println&lt;/span&gt;&lt;span style=&quot;font-family: Arial; font-size: 16pt; font-weight: bold;&quot;&gt;(&quot;e &lt;/span&gt;&lt;span style=&quot;font-family: Arial; font-size: 16pt; font-weight: bold;&quot;&gt;sera&lt;/span&gt;&lt;span style=&quot;font-family: Arial; font-size: 16pt; font-weight: bold;&quot;&gt; calculado o quadrado dos &lt;/span&gt;&lt;span style=&quot;font-family: Arial; font-size: 16pt; font-weight: bold;&quot;&gt;numeros&lt;/span&gt;&lt;span style=&quot;font-family: Arial; font-size: 16pt; font-weight: bold;&quot;&gt;&quot;);&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;direction: ltr; language: pt-BR; line-height: 80%; margin-bottom: 0pt; margin-left: .38in; margin-top: 3.84pt; mso-line-break-override: none; punctuation-wrap: hanging; text-align: left; text-indent: -.38in; unicode-bidi: embed; vertical-align: baseline;&quot;&gt;
&lt;span style=&quot;font-family: Arial; font-size: 16pt; font-weight: bold;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; System.&lt;/span&gt;&lt;span style=&quot;font-family: Arial; font-size: 16pt; font-weight: bold;&quot;&gt;out.println&lt;/span&gt;&lt;span style=&quot;font-family: Arial; font-size: 16pt; font-weight: bold;&quot;&gt;(&quot;entre 1 e o numero
informado\n&quot;);&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;direction: ltr; language: pt-BR; line-height: 80%; margin-bottom: 0pt; margin-left: .38in; margin-top: 3.84pt; mso-line-break-override: none; punctuation-wrap: hanging; text-align: left; text-indent: -.38in; unicode-bidi: embed; vertical-align: baseline;&quot;&gt;
&lt;span style=&quot;font-family: Arial; font-size: 16pt; font-weight: bold;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; System.&lt;/span&gt;&lt;span style=&quot;font-family: Arial; font-size: 16pt; font-weight: bold;&quot;&gt;exit&lt;/span&gt;&lt;span style=&quot;font-family: Arial; font-size: 16pt; font-weight: bold;&quot;&gt;(0);&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;direction: ltr; language: pt-BR; line-height: 80%; margin-bottom: 0pt; margin-left: .38in; margin-top: 3.84pt; mso-line-break-override: none; punctuation-wrap: hanging; text-align: left; text-indent: -.38in; unicode-bidi: embed; vertical-align: baseline;&quot;&gt;
&lt;span style=&quot;font-family: Arial; font-size: 16pt; font-weight: bold;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;direction: ltr; language: pt-BR; line-height: 80%; margin-bottom: 0pt; margin-left: .38in; margin-top: 3.84pt; mso-line-break-override: none; punctuation-wrap: hanging; text-align: left; text-indent: -.38in; unicode-bidi: embed; vertical-align: baseline;&quot;&gt;
&lt;span style=&quot;font-family: Arial; font-size: 16pt; font-weight: bold;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // &lt;/span&gt;&lt;span style=&quot;font-family: Arial; font-size: 16pt; font-weight: bold;&quot;&gt;conversao&lt;/span&gt;&lt;span style=&quot;font-family: Arial; font-size: 16pt; font-weight: bold;&quot;&gt; de
String para inteiro (outra maneira !)&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;direction: ltr; language: pt-BR; line-height: 80%; margin-bottom: 0pt; margin-left: .38in; margin-top: 3.84pt; mso-line-break-override: none; punctuation-wrap: hanging; text-align: left; text-indent: -.38in; unicode-bidi: embed; vertical-align: baseline;&quot;&gt;
&lt;span style=&quot;font-family: Arial; font-size: 16pt; font-weight: bold;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;font-family: Arial; font-size: 16pt; font-weight: bold;&quot;&gt;Integer&lt;/span&gt;&lt;span style=&quot;font-family: Arial; font-size: 16pt; font-weight: bold;&quot;&gt; x = &lt;/span&gt;&lt;span style=&quot;font-family: Arial; font-size: 16pt; font-weight: bold;&quot;&gt;new&lt;/span&gt;&lt;span style=&quot;font-family: Arial; font-size: 16pt; font-weight: bold;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;font-family: Arial; font-size: 16pt; font-weight: bold;&quot;&gt;Integer&lt;/span&gt;&lt;span style=&quot;font-family: Arial; font-size: 16pt; font-weight: bold;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;font-family: Arial; font-size: 16pt; font-weight: bold;&quot;&gt;args&lt;/span&gt;&lt;span style=&quot;font-family: Arial; font-size: 16pt; font-weight: bold;&quot;&gt;[0]);&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;direction: ltr; language: pt-BR; line-height: 80%; margin-bottom: 0pt; margin-left: .38in; margin-top: 3.84pt; mso-line-break-override: none; punctuation-wrap: hanging; text-align: left; text-indent: -.38in; unicode-bidi: embed; vertical-align: baseline;&quot;&gt;
&lt;span style=&quot;font-family: Arial; font-size: 16pt; font-weight: bold;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;font-family: Arial; font-size: 16pt; font-weight: bold;&quot;&gt;int&lt;/span&gt;&lt;span style=&quot;font-family: Arial; font-size: 16pt; font-weight: bold;&quot;&gt; a = &lt;/span&gt;&lt;span style=&quot;font-family: Arial; font-size: 16pt; font-weight: bold;&quot;&gt;x.intValue&lt;/span&gt;&lt;span style=&quot;font-family: Arial; font-size: 16pt; font-weight: bold;&quot;&gt;();&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;direction: ltr; language: pt-BR; line-height: 80%; margin-bottom: 0pt; margin-left: .38in; margin-top: 3.84pt; mso-line-break-override: none; punctuation-wrap: hanging; text-align: left; text-indent: -.38in; unicode-bidi: embed; vertical-align: baseline;&quot;&gt;
&lt;span style=&quot;font-family: Arial; font-size: 16pt; font-weight: bold;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;font-family: Arial; font-size: 16pt; font-weight: bold;&quot;&gt;if&lt;/span&gt;&lt;span style=&quot;font-family: Arial; font-size: 16pt; font-weight: bold;&quot;&gt; (a &amp;gt;
50)&amp;nbsp;&amp;nbsp; {&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;direction: ltr; language: pt-BR; line-height: 80%; margin-bottom: 0pt; margin-left: .38in; margin-top: 3.84pt; mso-line-break-override: none; punctuation-wrap: hanging; text-align: left; text-indent: -.38in; unicode-bidi: embed; vertical-align: baseline;&quot;&gt;
&lt;span style=&quot;font-family: Arial; font-size: 16pt; font-weight: bold;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; System.&lt;/span&gt;&lt;span style=&quot;font-family: Arial; font-size: 16pt; font-weight: bold;&quot;&gt;out.println&lt;/span&gt;&lt;span style=&quot;font-family: Arial; font-size: 16pt; font-weight: bold;&quot;&gt;(&quot;O numero deve ser
menor que 50&quot;);&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;direction: ltr; language: pt-BR; line-height: 80%; margin-bottom: 0pt; margin-left: .38in; margin-top: 3.84pt; mso-line-break-override: none; punctuation-wrap: hanging; text-align: left; text-indent: -.38in; unicode-bidi: embed; vertical-align: baseline;&quot;&gt;
&lt;span style=&quot;font-family: Arial; font-size: 16pt; font-weight: bold;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; System.&lt;/span&gt;&lt;span style=&quot;font-family: Arial; font-size: 16pt; font-weight: bold;&quot;&gt;exit&lt;/span&gt;&lt;span style=&quot;font-family: Arial; font-size: 16pt; font-weight: bold;&quot;&gt;(0);&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;direction: ltr; language: pt-BR; line-height: 80%; margin-bottom: 0pt; margin-left: .38in; margin-top: 3.84pt; mso-line-break-override: none; punctuation-wrap: hanging; text-align: left; text-indent: -.38in; unicode-bidi: embed; vertical-align: baseline;&quot;&gt;
&lt;span style=&quot;font-family: Arial; font-size: 16pt; font-weight: bold;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;direction: ltr; language: pt-BR; line-height: 80%; margin-bottom: 0pt; margin-left: .38in; margin-top: 3.84pt; mso-line-break-override: none; punctuation-wrap: hanging; text-align: left; text-indent: -.38in; unicode-bidi: embed; vertical-align: baseline;&quot;&gt;
&lt;span style=&quot;font-family: Arial; font-size: 16pt; font-weight: bold;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; for (&lt;/span&gt;&lt;span style=&quot;font-family: Arial; font-size: 16pt; font-weight: bold;&quot;&gt;int&lt;/span&gt;&lt;span style=&quot;font-family: Arial; font-size: 16pt; font-weight: bold;&quot;&gt;
i=1;&amp;nbsp; i&amp;lt;=a;&amp;nbsp; i++)&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;direction: ltr; language: pt-BR; line-height: 80%; margin-bottom: 0pt; margin-left: .38in; margin-top: 3.84pt; mso-line-break-override: none; punctuation-wrap: hanging; text-align: left; text-indent: -.38in; unicode-bidi: embed; vertical-align: baseline;&quot;&gt;
&lt;span style=&quot;font-family: Arial; font-size: 16pt; font-weight: bold;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; System.&lt;/span&gt;&lt;span style=&quot;font-family: Arial; font-size: 16pt; font-weight: bold;&quot;&gt;out.println&lt;/span&gt;&lt;span style=&quot;font-family: Arial; font-size: 16pt; font-weight: bold;&quot;&gt; (&quot;O quadrado de &quot;
+ i + &quot; = &quot; + i*i);&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;direction: ltr; language: pt-BR; line-height: 80%; margin-bottom: 0pt; margin-left: .38in; margin-top: 3.84pt; mso-line-break-override: none; punctuation-wrap: hanging; text-align: left; text-indent: -.38in; unicode-bidi: embed; vertical-align: baseline;&quot;&gt;
&lt;span style=&quot;font-family: Arial; font-size: 16pt; font-weight: bold;&quot;&gt;&amp;nbsp;&amp;nbsp; }&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;direction: ltr; language: pt-BR; line-height: 80%; margin-bottom: 0pt; margin-left: .38in; margin-top: 3.84pt; mso-line-break-override: none; punctuation-wrap: hanging; text-align: left; text-indent: -.38in; unicode-bidi: embed; vertical-align: baseline;&quot;&gt;
&lt;span style=&quot;font-family: Arial; font-size: 16pt; font-weight: bold;&quot;&gt;}&lt;/span&gt;&lt;span style=&quot;font-family: Arial; font-size: 16pt;&quot;&gt;
&lt;/span&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://modelosdecodigos.blogspot.com/feeds/99678625119986355/comments/default' title='Postar comentários'/><link rel='replies' type='text/html' href='http://modelosdecodigos.blogspot.com/2012/02/exercicio-em-sala-de-aula.html#comment-form' title='0 Comentários'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1209189845592343988/posts/default/99678625119986355'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1209189845592343988/posts/default/99678625119986355'/><link rel='alternate' type='text/html' href='http://modelosdecodigos.blogspot.com/2012/02/exercicio-em-sala-de-aula.html' title='Exercicio em sala de aula'/><author><name>jorgefox</name><uri>http://www.blogger.com/profile/13417100727916050571</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiqTl_b0HdBZYy2ADY06ZbE1p_UKZPITCOe67DJcVgCk3nboF8Utn32svgKGCs1ZSIwAtdVCJUlCr9Emmz9OYOH25gpZDJiZ46NhYnvgJRpTMyIZfBFCB6fJ8qJVzpyRg/s220/WIN_20201029_09_19_06_Pro.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1209189845592343988.post-6475201718209504333</id><published>2012-02-21T08:46:00.001-02:00</published><updated>2024-12-04T09:40:50.902-03:00</updated><title type='text'>Como ganhar dinheiro com programas de computador?</title><content type='html'>&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;h3&gt;&lt;strong&gt;Explorando Nichos de Mercado no Desenvolvimento de Programas de Computador&lt;/strong&gt;&lt;/h3&gt;&lt;p&gt;Quando falamos em desenvolvimento de software, é comum pensar em aplicações voltadas para o comércio. Sem dúvida, esse é um nicho lucrativo, mas também altamente competitivo. Grandes empresas, como &lt;strong&gt;SAP&lt;/strong&gt;, &lt;strong&gt;TOTVS&lt;/strong&gt;, &lt;strong&gt;MICROSIGA&lt;/strong&gt; e &lt;strong&gt;SANKHYA&lt;/strong&gt;, já dominam o mercado corporativo de soluções para grandes e médias empresas. Portanto, para um desenvolvedor ou empreendedor iniciante, competir nesse terreno pode ser desafiador. Mas, como sempre digo aos meus alunos: &lt;strong&gt;o segredo para ganhar dinheiro não é fazer o que a maioria faz, mas fazer algo único, bem feito e com qualidade.&lt;/strong&gt;&lt;/p&gt;&lt;h3&gt;&lt;strong&gt;Escolha Bem Seus Clientes e Documente Seus Projetos&lt;/strong&gt;&lt;/h3&gt;&lt;p&gt;Antes de iniciar qualquer projeto, selecione bem seus clientes. Uma boa referência pode se transformar em uma grande dor de cabeça se as expectativas não estiverem claras desde o início. Comece com pequenos trabalhos, garantindo constância e produtividade. Mais importante ainda, &lt;strong&gt;documente cada etapa do processo&lt;/strong&gt;. Durante o desenvolvimento, é comum que clientes solicitem alterações ou novas funcionalidades que podem comprometer prazos e custos. Ter tudo documentado facilita justificar mudanças de escopo, prazos adicionais e ajustes de valor.&lt;/p&gt;&lt;p&gt;Além disso, demonstre como o sistema que você está desenvolvendo pode trazer ganhos financeiros ao cliente. Infelizmente, muitos empresários ainda priorizam investimentos visíveis, como veículos de luxo, em vez de soluções tecnológicas que podem gerar lucros significativos no médio e longo prazo.&lt;/p&gt;&lt;h3&gt;&lt;strong&gt;Linguagem de Programação: Eficiência e Domínio São Cruciais&lt;/strong&gt;&lt;/h3&gt;&lt;p&gt;A escolha da linguagem de programação pode fazer toda a diferença. &lt;strong&gt;Linguagens eficientes e que você domina são essenciais para garantir produtividade e qualidade.&lt;/strong&gt; Se você for atuar como pessoa jurídica, opte por linguagens com ampla mão de obra disponível no mercado, como &lt;strong&gt;Java&lt;/strong&gt; ou &lt;strong&gt;Python&lt;/strong&gt;. Já como pessoa física, uma boa estratégia pode ser focar em linguagens menos exploradas, mas ainda requisitadas, como &lt;strong&gt;COBOL&lt;/strong&gt;, que, devido à base instalada de sistemas legados, ainda oferece excelentes oportunidades.&lt;/p&gt;&lt;p&gt;&lt;strong&gt;Java e COBOL, juntos, podem ser um diferencial competitivo.&lt;/strong&gt; Muitas grandes empresas estão migrando seus sistemas em COBOL para ambientes Web usando Java, o que cria uma demanda crescente por profissionais com essa combinação de habilidades.&lt;/p&gt;&lt;h3&gt;&lt;strong&gt;Aplicativos Mobile: Oportunidades no Crescimento da Mobilidade&lt;/strong&gt;&lt;/h3&gt;&lt;p&gt;Outro nicho promissor é o desenvolvimento de aplicativos para dispositivos móveis. Com o crescimento do &lt;strong&gt;Android&lt;/strong&gt;, que se consolidou como um dos sistemas operacionais mais utilizados, há inúmeras histórias de desenvolvedores que lucraram com apps simples, vendidos por valores acessíveis e com alta taxa de downloads.&lt;/p&gt;&lt;p&gt;Os usuários de smartphones trocam de dispositivos com frequência e buscam cada vez mais &lt;strong&gt;soluções que facilitem o dia a dia.&lt;/strong&gt; Aplicativos que ajudam na gestão financeira, como lembretes de contas a pagar e a receber, ou que otimizam deslocamentos, como sistemas de rotas alternativas com integração a GPS e câmeras de trânsito, são exemplos de produtos com grande potencial de mercado.&lt;/p&gt;&lt;h3&gt;&lt;strong&gt;Identifique Necessidades do Século 21&lt;/strong&gt;&lt;/h3&gt;&lt;p&gt;O mundo da programação está cheio de oportunidades, muitas delas ainda inexploradas. Para se destacar, é essencial buscar capacitação contínua, identificar necessidades humanas contemporâneas e pensar além do óbvio. Como diz Alvin Toffler em &lt;strong&gt;A Terceira Onda&lt;/strong&gt;, o mercado de trabalho está mudando radicalmente, e a capacidade de inovar será um diferencial crucial.&lt;/p&gt;&lt;p&gt;Invista em criatividade, planejamento e na construção de soluções tecnológicas que realmente façam a diferença na vida das pessoas. Lembre-se: &lt;strong&gt;as portas do mercado de tecnologia estão abertas para aqueles que conseguem enxergar além.&lt;/strong&gt;&lt;/p&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://modelosdecodigos.blogspot.com/feeds/6475201718209504333/comments/default' title='Postar comentários'/><link rel='replies' type='text/html' href='http://modelosdecodigos.blogspot.com/2012/02/como-ganhar-dinheiro-com.html#comment-form' title='0 Comentários'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1209189845592343988/posts/default/6475201718209504333'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1209189845592343988/posts/default/6475201718209504333'/><link rel='alternate' type='text/html' href='http://modelosdecodigos.blogspot.com/2012/02/como-ganhar-dinheiro-com.html' title='Como ganhar dinheiro com programas de computador?'/><author><name>jorgefox</name><uri>http://www.blogger.com/profile/13417100727916050571</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiqTl_b0HdBZYy2ADY06ZbE1p_UKZPITCOe67DJcVgCk3nboF8Utn32svgKGCs1ZSIwAtdVCJUlCr9Emmz9OYOH25gpZDJiZ46NhYnvgJRpTMyIZfBFCB6fJ8qJVzpyRg/s220/WIN_20201029_09_19_06_Pro.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1209189845592343988.post-2417010290756938809</id><published>2012-02-15T18:14:00.004-02:00</published><updated>2024-12-04T09:48:25.551-03:00</updated><title type='text'>Um calculadora com bugs, mas boa de aprender C# </title><content type='html'>&lt;br /&gt;&lt;h3&gt;&lt;strong&gt;Como Criar uma Calculadora em C# Semelhante à do Windows: Tutorial Completo&lt;/strong&gt;&lt;/h3&gt;&lt;p&gt;Se você está aprendendo &lt;strong&gt;C#&lt;/strong&gt; e deseja criar algo prático e funcional, desenvolver uma &lt;strong&gt;calculadora semelhante à do Windows&lt;/strong&gt; é um excelente exercício. Neste tutorial, mostrarei um exemplo funcional de uma calculadora com interface gráfica, utilizando o &lt;strong&gt;WPF (Windows Presentation Foundation)&lt;/strong&gt;. Este projeto é perfeito para quem quer aprimorar habilidades em desenvolvimento de aplicações desktop.&lt;/p&gt;&lt;hr /&gt;&lt;h3&gt;&lt;strong&gt;O Código&lt;/strong&gt;&lt;/h3&gt;&lt;p&gt;Abaixo estão as implementações para os arquivos necessários:&lt;/p&gt;&lt;h4&gt;&lt;strong&gt;1. MainWindow.xaml&lt;/strong&gt;&lt;/h4&gt;&lt;p&gt;Este é o arquivo de layout, responsável pela interface da calculadora. Incluímos botões para números, operações básicas e outras funcionalidades, como raiz quadrada e inversão de sinal.&lt;/p&gt;&lt;p&gt;&amp;lt;Window x:Class=&quot;Calculadora.MainWindow&quot;&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; xmlns=&quot;http://schemas.microsoft.com/winfx/2006/xaml/presentation&quot;&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; xmlns:x=&quot;http://schemas.microsoft.com/winfx/2006/xaml&quot;&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Title=&quot;Calculadora&quot; Height=&quot;404&quot; Width=&quot;426&quot; Background=&quot;#FFEBE5E5&quot; WindowStyle=&quot;ThreeDBorderWindow&quot;&amp;gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;lt;Grid Width=&quot;358&quot;&amp;gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;Button Content=&quot;7&quot; Height=&quot;28&quot; HorizontalAlignment=&quot;Left&quot; Margin=&quot;91,127,0,0&quot; Name=&quot;sete&quot; VerticalAlignment=&quot;Top&quot; Width=&quot;37&quot; Click=&quot;sete_Click&quot; /&amp;gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;TextBox Height=&quot;53&quot; HorizontalAlignment=&quot;Right&quot; Margin=&quot;0,34,54,0&quot; Name=&quot;display&quot; VerticalAlignment=&quot;Top&quot; Width=&quot;213&quot; FontFamily=&quot;Arial&quot; FontSize=&quot;28&quot; HorizontalContentAlignment=&quot;Right&quot; /&amp;gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;!-- Botões para números, operações e funcionalidades --&amp;gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;lt;/Grid&amp;gt;&lt;/p&gt;&lt;p&gt;&amp;lt;/Window&amp;gt;&lt;/p&gt;&lt;div&gt;&lt;h4&gt;&lt;strong&gt;2. MainWindow.xaml.cs&lt;/strong&gt;&lt;/h4&gt;&lt;p&gt;Aqui está a lógica por trás da calculadora. Cada botão chama um método que realiza a operação correspondente. Por exemplo, ao clicar no botão &quot;7&quot;, o número é exibido no display.&lt;/p&gt;&lt;p&gt;using System;&lt;/p&gt;&lt;p&gt;using System.Windows;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;namespace Calculadora&lt;/p&gt;&lt;p&gt;{&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; public partial class MainWindow : Window&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; {&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; double acumula = 0;&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; string operacao = &quot;&quot;;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; public MainWindow()&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; InitializeComponent();&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; private void sete_Click(object sender, RoutedEventArgs e)&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; display.Text += &quot;7&quot;;&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; private void soma_Click(object sender, RoutedEventArgs e)&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; acumula += double.Parse(display.Text);&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; display.Text = &quot;&quot;;&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; operacao = &quot;+&quot;;&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; private void igual_Click(object sender, RoutedEventArgs e)&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if (operacao == &quot;+&quot;)&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; acumula += double.Parse(display.Text);&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; display.Text = acumula.ToString();&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; // Outros métodos...&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; }&lt;/p&gt;&lt;p&gt;}&lt;/p&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://modelosdecodigos.blogspot.com/feeds/2417010290756938809/comments/default' title='Postar comentários'/><link rel='replies' type='text/html' href='http://modelosdecodigos.blogspot.com/2012/02/um-calculadora-com-bugs-mas-boa-de.html#comment-form' title='0 Comentários'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1209189845592343988/posts/default/2417010290756938809'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1209189845592343988/posts/default/2417010290756938809'/><link rel='alternate' type='text/html' href='http://modelosdecodigos.blogspot.com/2012/02/um-calculadora-com-bugs-mas-boa-de.html' title='Um calculadora com bugs, mas boa de aprender C# '/><author><name>jorgefox</name><uri>http://www.blogger.com/profile/13417100727916050571</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiqTl_b0HdBZYy2ADY06ZbE1p_UKZPITCOe67DJcVgCk3nboF8Utn32svgKGCs1ZSIwAtdVCJUlCr9Emmz9OYOH25gpZDJiZ46NhYnvgJRpTMyIZfBFCB6fJ8qJVzpyRg/s220/WIN_20201029_09_19_06_Pro.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1209189845592343988.post-4942969064831817244</id><published>2012-02-14T18:17:00.001-02:00</published><updated>2012-02-14T18:17:38.463-02:00</updated><title type='text'>Listagem de Produtos em C#</title><content type='html'>&lt;br /&gt;
using System;&lt;br /&gt;
using System.Collections.Generic;&lt;br /&gt;
using System.Linq;&lt;br /&gt;
using System.Text;&lt;br /&gt;
&lt;br /&gt;
namespace Arrayprodutos&lt;br /&gt;
{&lt;br /&gt;
&amp;nbsp; &amp;nbsp; class Program&lt;br /&gt;
&amp;nbsp; &amp;nbsp; {&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; static void Main(string[] args)&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; string[,] produto = new string[10, 2];&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; double[,] estoque = new double[10, 2];&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; for (int i = 0; i &amp;lt; 10; i++)&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Console.Write(&quot;Nome ....: &quot;);&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; produto[i, 0] = Console.ReadLine();&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Console.Write(&quot;Unidade..: &quot;);&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; produto[i, 1] = Console.ReadLine();&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Console.Write(&quot;Pr. Unit.: &quot;);&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; estoque[i, 0] = double.Parse(Console.ReadLine());&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Console.Write(&quot;Qtd Estoq: &quot;);&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; estoque[i, 1] = double.Parse(Console.ReadLine()); &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; for (int i = 0; i &amp;lt; 10; i++)&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Console.Write(&quot;Nome ....: &quot;+produto[i, 0]);&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Console.Write(&quot;Total Est. : &quot;+(estoque[i, 0]*estoque[i, 1]));&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;br /&gt;
&amp;nbsp; &amp;nbsp; }&lt;br /&gt;
}&lt;br /&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://modelosdecodigos.blogspot.com/feeds/4942969064831817244/comments/default' title='Postar comentários'/><link rel='replies' type='text/html' href='http://modelosdecodigos.blogspot.com/2012/02/listagem-de-produtos-em-c.html#comment-form' title='0 Comentários'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1209189845592343988/posts/default/4942969064831817244'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1209189845592343988/posts/default/4942969064831817244'/><link rel='alternate' type='text/html' href='http://modelosdecodigos.blogspot.com/2012/02/listagem-de-produtos-em-c.html' title='Listagem de Produtos em C#'/><author><name>jorgefox</name><uri>http://www.blogger.com/profile/13417100727916050571</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiqTl_b0HdBZYy2ADY06ZbE1p_UKZPITCOe67DJcVgCk3nboF8Utn32svgKGCs1ZSIwAtdVCJUlCr9Emmz9OYOH25gpZDJiZ46NhYnvgJRpTMyIZfBFCB6fJ8qJVzpyRg/s220/WIN_20201029_09_19_06_Pro.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1209189845592343988.post-3759400421013015450</id><published>2012-02-14T16:00:00.001-02:00</published><updated>2012-02-14T16:00:03.062-02:00</updated><title type='text'>Correção exercicio de C# para calculo das médias.</title><content type='html'>&lt;br /&gt;
using System;&lt;br /&gt;
using System.Collections.Generic;&lt;br /&gt;
using System.Linq;&lt;br /&gt;
using System.Text;&lt;br /&gt;
&lt;br /&gt;
namespace estudantes&lt;br /&gt;
{&lt;br /&gt;
&amp;nbsp; &amp;nbsp; class medias&lt;br /&gt;
&amp;nbsp; &amp;nbsp; {&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; static void Main(string[] args)&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; string[] nome = new string[10];&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; double[,] notas = new double[10, 5];&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; string[] colunas = new string[6]&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {&quot;\nnome&quot;,&quot;nota-1&quot;,&quot;nota-2&quot;,&quot;nota-3&quot;,&quot;nota-4&quot;,&quot;média&quot; };&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; for (int i = 0; i &amp;lt; 10; i++)&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Console.Write(colunas[0]);&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; nome[i] = Console.ReadLine();&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; for (int k = 0; k &amp;lt; 4; k++)&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Console.Write(colunas[k + 1]);&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; notas[i, k] = double.Parse(Console.ReadLine());&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; notas[i, 4] += notas[i, k] / 4;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; for (int i = 0; i &amp;lt; 10; i++)&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Console.WriteLine(colunas[0]+nome[i]);&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; for (int k = 0; k &amp;lt; 5; k++)&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Console.WriteLine(colunas[k + 1] + notas[i, k]);&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if (notas[i, 4] &amp;gt;= 7) {&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Console.WriteLine(&quot;Situação : Aprovado&quot;);&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; else if (notas[i, 4] &amp;gt;= 5 &amp;amp;&amp;amp; notas[i, 4] &amp;lt; 7)&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Console.WriteLine(&quot;Situação : Prova final&quot;);&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; else {&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Console.WriteLine(&quot;Situação : Reprovado&quot;);&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; } &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;br /&gt;
&amp;nbsp; &amp;nbsp; }&lt;br /&gt;
}&lt;br /&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://modelosdecodigos.blogspot.com/feeds/3759400421013015450/comments/default' title='Postar comentários'/><link rel='replies' type='text/html' href='http://modelosdecodigos.blogspot.com/2012/02/correcao-exercicio-de-c-para-calculo.html#comment-form' title='0 Comentários'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1209189845592343988/posts/default/3759400421013015450'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1209189845592343988/posts/default/3759400421013015450'/><link rel='alternate' type='text/html' href='http://modelosdecodigos.blogspot.com/2012/02/correcao-exercicio-de-c-para-calculo.html' title='Correção exercicio de C# para calculo das médias.'/><author><name>jorgefox</name><uri>http://www.blogger.com/profile/13417100727916050571</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiqTl_b0HdBZYy2ADY06ZbE1p_UKZPITCOe67DJcVgCk3nboF8Utn32svgKGCs1ZSIwAtdVCJUlCr9Emmz9OYOH25gpZDJiZ46NhYnvgJRpTMyIZfBFCB6fJ8qJVzpyRg/s220/WIN_20201029_09_19_06_Pro.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1209189845592343988.post-7816505153039038440</id><published>2012-02-14T09:51:00.001-02:00</published><updated>2012-02-14T10:47:39.505-02:00</updated><title type='text'>Demonstração de Array bi dimensional</title><content type='html'>&lt;div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
O programa abaixo escrito na linguagem C#(&lt;b&gt;C SHARP&lt;/b&gt; ) demonstra como usar um &lt;b&gt;ARRAY &lt;/b&gt;bi dimensional. Definimos dois Arrays, sendo um bi dimensional e um &lt;b&gt;VETOR&lt;/b&gt;. o ARRAY tabela define a estrutura de armazenamento e o colunas define o rotulo de cada coluna.&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
Forte abraço e até a próxima.&lt;/div&gt;
&lt;br /&gt;
using System;&lt;/div&gt;
&lt;div&gt;
using System.Collections.Generic;&lt;/div&gt;
&lt;div&gt;
using System.Linq;&lt;/div&gt;
&lt;div&gt;
using System.Text;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
namespace ArraysBiDimensionais&lt;/div&gt;
&lt;div&gt;
{&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; class Entradados&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; {&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; static void Main(string[] args)&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; string[,] tabela = new string[10, 3];&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; string[] colunas=new string[3]&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;{&quot;Produto : &quot;,&quot;Unidade : &quot;,&quot;Valor &amp;nbsp;: &quot;};&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; for (int i = 0; i &amp;lt; 10; i++)&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; for (int k = 0; k &amp;lt; 3; k++)&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Console.Write(colunas[k]);&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; tabela[i, k] = Console.ReadLine();&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; for (int k = 0; k &amp;lt; 3; k++)&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Console.Write(colunas[k] + &quot;***** &quot;);&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Console.WriteLine(&quot; &quot;);&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; for (int i = 0; i &amp;lt; 10; i++)&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; for (int k = 0; k &amp;lt; 3; k++)&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Console.Write(tabela[i, k] + &quot;***** &quot;);&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Console.WriteLine(&quot; &quot;); &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Console.ReadKey();&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; }&lt;/div&gt;
&lt;div&gt;
}&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://modelosdecodigos.blogspot.com/feeds/7816505153039038440/comments/default' title='Postar comentários'/><link rel='replies' type='text/html' href='http://modelosdecodigos.blogspot.com/2012/02/demonstracao-de-array-bi-dimensional.html#comment-form' title='0 Comentários'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1209189845592343988/posts/default/7816505153039038440'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1209189845592343988/posts/default/7816505153039038440'/><link rel='alternate' type='text/html' href='http://modelosdecodigos.blogspot.com/2012/02/demonstracao-de-array-bi-dimensional.html' title='Demonstração de Array bi dimensional'/><author><name>jorgefox</name><uri>http://www.blogger.com/profile/13417100727916050571</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiqTl_b0HdBZYy2ADY06ZbE1p_UKZPITCOe67DJcVgCk3nboF8Utn32svgKGCs1ZSIwAtdVCJUlCr9Emmz9OYOH25gpZDJiZ46NhYnvgJRpTMyIZfBFCB6fJ8qJVzpyRg/s220/WIN_20201029_09_19_06_Pro.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1209189845592343988.post-5763689682781423139</id><published>2012-02-13T14:57:00.003-02:00</published><updated>2012-02-13T14:57:34.386-02:00</updated><title type='text'>Calculo das raizes da equação do 2º Grau em C#</title><content type='html'>&lt;br /&gt;
using System;&lt;br /&gt;
using System.Collections.Generic;&lt;br /&gt;
using System.Linq;&lt;br /&gt;
using System.Text;&lt;br /&gt;
&lt;br /&gt;
namespace Matematica&lt;br /&gt;
{&lt;br /&gt;
&amp;nbsp; &amp;nbsp; class Program&lt;br /&gt;
&amp;nbsp; &amp;nbsp; {&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; static void Main(string[] args)&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; double a, b, c, d, x1, x2;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Console.WriteLine(&quot;Equação 2º Grau&quot;);&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Console.Write(&quot; Valor de a : &quot;);&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; a = double.Parse(Console.ReadLine());&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Console.Write(&quot; Valor de b : &quot;);&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; b = double.Parse(Console.ReadLine());&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Console.Write(&quot; Valor de c : &quot;);&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; c = double.Parse(Console.ReadLine());&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Console.WriteLine(a + &quot;x² + &quot; + b + &quot;x + &quot; + c + &quot;=0&quot;);&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; d = b * b - 4 * a * c;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if (d &amp;gt; 0) {&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Console.WriteLine(&quot;Existem duas raizes reais&quot;);&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; x1 = (-b + Math.Sqrt(d)) / (2 * a);&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; x2 = (-b - Math.Sqrt(d)) / (2 * a);&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Console.WriteLine(&quot;x&#39;= &quot; + x1);&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Console.WriteLine(&quot;x&#39;&#39;= &quot; + x2);&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; else if (d == 0)&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Console.WriteLine(&quot;Existem duas raizes reais e iguais.&quot;);&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; x1 = -b / (a * 2);&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Console.WriteLine(&quot;x&#39;=x&#39;&#39;= &quot; + x1);&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; else {&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Console.WriteLine(&quot;Nao existem raizes reais&quot;);&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Console.ReadKey();&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;br /&gt;
&amp;nbsp; &amp;nbsp; }&lt;br /&gt;
}&lt;br /&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://modelosdecodigos.blogspot.com/feeds/5763689682781423139/comments/default' title='Postar comentários'/><link rel='replies' type='text/html' href='http://modelosdecodigos.blogspot.com/2012/02/calculo-das-raizes-da-equacao-do-2-grau.html#comment-form' title='1 Comentários'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1209189845592343988/posts/default/5763689682781423139'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1209189845592343988/posts/default/5763689682781423139'/><link rel='alternate' type='text/html' href='http://modelosdecodigos.blogspot.com/2012/02/calculo-das-raizes-da-equacao-do-2-grau.html' title='Calculo das raizes da equação do 2º Grau em C#'/><author><name>jorgefox</name><uri>http://www.blogger.com/profile/13417100727916050571</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiqTl_b0HdBZYy2ADY06ZbE1p_UKZPITCOe67DJcVgCk3nboF8Utn32svgKGCs1ZSIwAtdVCJUlCr9Emmz9OYOH25gpZDJiZ46NhYnvgJRpTMyIZfBFCB6fJ8qJVzpyRg/s220/WIN_20201029_09_19_06_Pro.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1209189845592343988.post-2405940832898119370</id><published>2012-02-07T15:36:00.003-02:00</published><updated>2012-02-07T15:36:43.640-02:00</updated><title type='text'>Programar é um exercício de paciência e disciplina.</title><content type='html'>&lt;div style=&quot;text-align: justify;&quot;&gt;
Há quem diga que programar é fácil. É uma tese difícil de ser dita como verdadeira. Não quero desmotivar meus leitores quanto menos meus alunos, mas programar é uma arte disciplinar.&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
Quando programamos colocamos nosso&amp;nbsp;cérebro no modo de pensamento em que devemos abstrair, sincronizar, interagir, testar, observar comportamentos e claro fazer alguns&amp;nbsp;cálculos.&amp;nbsp;Toda essa sinergia de pensamento pode ser abalada por um simples tocar de telefone, uma campainha do MSN e a sua filha pedindo lhe atenção para ver uma cachorrinho brincando. Claro que não podemos ficar ligados 24 horas no ar pensando no problema. Brincar com o filho ou a filha faz parte da vida.&amp;nbsp;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
Quando estamos programando também somos professores pois estamos ensinando uma máquina fazer o que desejamos. Se devemos agir como professores então devemos planejar corretamente como vamos abordar o problema para obter o comportamento correto. &amp;nbsp;Além disso devemos pensar na capacidade de processamento e também qual é a saída desejada.&amp;nbsp;Por essa razão devemos ter cuidados especiais neste momento pois o computador faz tudo o que pedimos ao pé da letra. Ter lucidez ao fazer uma linha de código é um exercício diário de&amp;nbsp;paciência&amp;nbsp;e disciplina. Acredito que as duas andam juntas.&amp;nbsp;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
A paciência é o ato de acompanhar passo a passo o que cada linha de código retorna. A disciplina usamos quando observamos o comportamento do programa. Captar o que um programa faz as vezes não é uma tarefa simples pois os códigos podem ocultar informações que nos enganam quando a procedência e como foram gerados levando a conclusões&amp;nbsp;errôneas e dai um tempo perdido pode vir acontecer.&amp;nbsp;O pensamento matemático o ajudará na eliminação de código redundante e também alcançar a eficiência de desempenho.&amp;nbsp;&amp;nbsp;Desta forma colocada podemos afirmar que paciência e disciplina andam juntas nesta arte pois uma dará suporte a outra a medida que avançamos na construção de um código.&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://modelosdecodigos.blogspot.com/feeds/2405940832898119370/comments/default' title='Postar comentários'/><link rel='replies' type='text/html' href='http://modelosdecodigos.blogspot.com/2012/02/programar-e-um-exercicio-de-paciencia-e.html#comment-form' title='0 Comentários'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1209189845592343988/posts/default/2405940832898119370'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1209189845592343988/posts/default/2405940832898119370'/><link rel='alternate' type='text/html' href='http://modelosdecodigos.blogspot.com/2012/02/programar-e-um-exercicio-de-paciencia-e.html' title='Programar é um exercício de paciência e disciplina.'/><author><name>jorgefox</name><uri>http://www.blogger.com/profile/13417100727916050571</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiqTl_b0HdBZYy2ADY06ZbE1p_UKZPITCOe67DJcVgCk3nboF8Utn32svgKGCs1ZSIwAtdVCJUlCr9Emmz9OYOH25gpZDJiZ46NhYnvgJRpTMyIZfBFCB6fJ8qJVzpyRg/s220/WIN_20201029_09_19_06_Pro.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1209189845592343988.post-8529180845143909670</id><published>2012-02-02T10:57:00.003-02:00</published><updated>2012-02-02T11:13:33.097-02:00</updated><title type='text'>COBOL? Nao morreu!</title><content type='html'>&lt;div style=&quot;text-align: justify;&quot;&gt;
Muitas pessoas me perguntam: &amp;nbsp;Ainda hoje o COBOL é usado? Eu começo esse artigo repetindo um brincadeira dos profissionais que lidam com essa ferramenta: &quot;Se houver um&amp;nbsp;holocausto&amp;nbsp;nuclear apenas duas coisas sobreviveriam, são elas, baratas e cobol.&quot;. Claro que há um grande absurdo nisso, mas essa discussão não seria&amp;nbsp;frutífera aqui. Dizemos isso porque várias vezes falaram por ai que a linguagem estaria morta e que seria necessário migrar para outra linguagem, mas o que presenciei foi um&amp;nbsp;ressurgimento&amp;nbsp;da linguagem cada vez mais melhorada. Talvez no inicio dos anos 60 a CODASYL(&lt;b style=&quot;background-color: white; font-family: sans-serif; line-height: 19px;&quot;&gt;Conference on Data Systems Languages) &lt;/b&gt;&lt;span style=&quot;background-color: white; font-family: sans-serif; line-height: 19px;&quot;&gt;não tivesse essa pretensão.&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
Hoje a linguagem de programação COBOL é bastante utilizada em diversos seguimentos, bancos, hotéis, supermercados e muitos outros estabelecimentos sejam comerciais ou governamentais.&amp;nbsp;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
A migração de plataforma de banco de dados e de sistema operacional é uma opção hoje em dia quando &amp;nbsp;alguém que não tem experiência com a linguagem e quer mudar de sistema. Mas a confiabilidade em novo sistema pode trazer alguns transtornos para a organização e consequentemente afetam as suas operações no dia a dia. Estes transtornos trazem a antiga aplicação uma certa confiabilidade e estabilidade.&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
E isso faz o &lt;b&gt;COBOL &lt;/b&gt;uma linguagem que vem atravessando mais de 50 anos como ferramenta de desenvolvimento de&amp;nbsp;aplicações. Esta confiabilidade foi obtida através dos primeiros anos da linguagem, época em que houve um &lt;b&gt;&lt;i&gt;boooom &lt;/i&gt;&lt;/b&gt;na adoção de computadores e consequentemente a necessidade de desenvolver programas confiáveis &amp;nbsp;no começo dos anos 70 e 80, sendo reforçada pela inclusão dos PC&#39;s(personal Computers) introduzidos no começo dos anos 80. De la para cá tem se criado muitas linguagens de programação mas a migração as vezes não é bem sucedida.&amp;nbsp;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
Mas a linguagem não ficou parada neste período, sendo atualizada varias vezes pelo CODASYL&lt;span style=&quot;background-color: white; font-family: sans-serif; line-height: 19px;&quot;&gt;&amp;nbsp;e por &lt;/span&gt;&lt;span style=&quot;background-color: white; font-family: sans-serif; line-height: 19px;&quot;&gt;várias empresas que desenvolveram compiladores e também IDE(Ambiente de desenvolvimento Integrado) a fez manter atualizada com os paradigmas de programação atualmente em voga no mercado. Podemos destacar estes paradigmas como orientação a objeto e GUI (Graphical User Interfaces).&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;span style=&quot;font-family: sans-serif;&quot;&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;Hoje o &lt;b&gt;COBOL &lt;/b&gt;encontramos sistemas desenvolvidos para &lt;b&gt;Windows &lt;/b&gt;32 e 64 bits, ambiente Linux,&amp;nbsp;Unix&amp;nbsp;e claro não poderia deixar de citar, o &lt;b&gt;Main Frame&lt;/b&gt;, bem como ferramentas de desenvolvimento de relatórios.&lt;br /&gt;Você pode que trabalha na área ou esta entrando agora pode se perguntar, quem usa cobol para desenvolver, talvez pequenas e medias empresa não usem por serem muito novas em relação a idade do cobol mas empresas que sobreviveram aos últimos cinquenta anos, certamente adotou, adota ou mantém sistemas em &lt;b&gt;COBOL&lt;/b&gt;. Os bancos e grandes corporações se utilizam destes sistemas. Talvez não esteja ao seu alcance se você estiver pensando em morar na sua cidade e trabalhar, mas estiver sintonizado com o mercado e tiver disponibilidade poderá ver essa tendência. Os dinossauros(nos programadores de quase 60 anos) estão se retirando e ainda há muitos sistemas por ai para dar manutenção ou desenvolver. Pense! Ganha dinheiro na área de informatica quem faz algo diferente da maioria.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;span style=&quot;font-family: sans-serif;&quot;&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;Fiquem todos com Deus e um forte abraço a todos, obrigado.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;span style=&quot;font-family: sans-serif; font-size: x-small;&quot;&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://modelosdecodigos.blogspot.com/feeds/8529180845143909670/comments/default' title='Postar comentários'/><link rel='replies' type='text/html' href='http://modelosdecodigos.blogspot.com/2012/02/cobol-nao-morreu.html#comment-form' title='1 Comentários'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1209189845592343988/posts/default/8529180845143909670'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1209189845592343988/posts/default/8529180845143909670'/><link rel='alternate' type='text/html' href='http://modelosdecodigos.blogspot.com/2012/02/cobol-nao-morreu.html' title='COBOL? Nao morreu!'/><author><name>jorgefox</name><uri>http://www.blogger.com/profile/13417100727916050571</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiqTl_b0HdBZYy2ADY06ZbE1p_UKZPITCOe67DJcVgCk3nboF8Utn32svgKGCs1ZSIwAtdVCJUlCr9Emmz9OYOH25gpZDJiZ46NhYnvgJRpTMyIZfBFCB6fJ8qJVzpyRg/s220/WIN_20201029_09_19_06_Pro.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1209189845592343988.post-5173206906104569009</id><published>2012-02-01T23:22:00.002-02:00</published><updated>2012-02-01T23:22:31.753-02:00</updated><title type='text'>Listagem de clientes na tela com opção de editar.</title><content type='html'>&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;identification division.&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;program-id. listaClientes.&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;author. jorgefox.&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;environment division.&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;configuration section.&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;input-output section.&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;file-control.&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;select clientes assign to &quot;clientes.dat&quot;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;organization is indexed&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;access mode is dynamic&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;record key is codigo&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;alternate key is nome with duplicates&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;file status is fs-clientes.&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;data division.&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;file section.&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;fd clientes.&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;01 registro-clientes.&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 02 codigo &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;pic 9999.&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 02 nome &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;pic x(50).&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 02 data-nas.&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;03 dia-nas &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; pic 99.&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;03 mes-nas &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; pic 99.&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;03 ano-nas &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; pic 9999.&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 02 telefone &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; pic x(30).&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 02 endereco &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; pic x(50).&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 02 numero &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; pic 9(6).&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 02 complemento &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;pic x(30).&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 02 bairro &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; pic x(30).&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 02 cidade &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; pic x(30).&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 02 cep &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;pic x(8).&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 02 estado &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; pic AA.&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 02 email &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;pic x(50).&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;working-storage section.&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 01 fs-clientes.&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;02 fs-clientes-1 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;pic 9.&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;02 fs-clientes-2 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;pic 9.&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;02 fs-cliente-r redefines fs-clientes-2 pic 99 comp-x.&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 77 opcao &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; pic x value spaces.&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 77 codigop &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; pic 9999 values zeros.&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 77 linha &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; pic 9999 value 0902.&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;procedure division.&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;abertura.&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;open input clientes&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;if fs-clientes unequal zero then&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; display erase&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; display &quot;Erro ao abrir clientes.dat&quot; at 1010 fs-clientes&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; accept opcao&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; close clientes&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; exit program&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;else&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;display &quot;deu certo&quot;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;accept opcao&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;end-if&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;.&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;inicio.&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;display erase&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;display &quot;Listagem de clientes&quot; at 0330&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;display &quot;+------+----------------------------------------------&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; -&quot;----------------+-------+&quot; at 0601&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;display &quot;|codigo| &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Nome Cliente&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; -&quot; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;|Dt Nasc|&quot; at 0701&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;display &quot;+------+----------------------------------------------&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; -&quot;----------------+-------+&quot; at 0801&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;move &quot; &quot; to nome&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;start clientes key is not less nome&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;if fs-clientes=00 then&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; perform imprime&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; display &quot;Digite o codigo desejado [....]&quot; at 2201&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; accept codigop at 2227&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; call &quot;aplicacao&quot; using codigop&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; exit program&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;else&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; display &quot;deu erro &quot; fs-clientes&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; accept opcao&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;end-if&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;close clientes&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;exit program&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;.&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;imprime.&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;read clientes next&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;perform until fs-clientes&amp;lt;&amp;gt;00&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; display codigo at linha&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; add 8 to linha&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; display nome at linha&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; add 61 to linha&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; display dia-nas at linha &quot;/&quot;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; add 3 to linha&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; display mes-nas at linha &quot;/&quot;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; add 3 to linha&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; display &amp;nbsp;ano-nas at linha&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; subtract 76 from linha giving linha&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; add 101 to linha&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; read clientes next&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;end-perform&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;.&lt;br /&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://modelosdecodigos.blogspot.com/feeds/5173206906104569009/comments/default' title='Postar comentários'/><link rel='replies' type='text/html' href='http://modelosdecodigos.blogspot.com/2012/02/listagem-de-clientes-na-tela-com-opcao.html#comment-form' title='0 Comentários'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1209189845592343988/posts/default/5173206906104569009'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1209189845592343988/posts/default/5173206906104569009'/><link rel='alternate' type='text/html' href='http://modelosdecodigos.blogspot.com/2012/02/listagem-de-clientes-na-tela-com-opcao.html' title='Listagem de clientes na tela com opção de editar.'/><author><name>jorgefox</name><uri>http://www.blogger.com/profile/13417100727916050571</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiqTl_b0HdBZYy2ADY06ZbE1p_UKZPITCOe67DJcVgCk3nboF8Utn32svgKGCs1ZSIwAtdVCJUlCr9Emmz9OYOH25gpZDJiZ46NhYnvgJRpTMyIZfBFCB6fJ8qJVzpyRg/s220/WIN_20201029_09_19_06_Pro.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1209189845592343988.post-4862381120623989285</id><published>2012-02-01T14:36:00.001-02:00</published><updated>2012-02-01T14:36:13.818-02:00</updated><title type='text'>Como controlar erros de leitura e gravação em cobol</title><content type='html'>No COBOL há uma forma de fazer a verificação se um arquivo foi aberto corretamente. A principio isso acontece por que como o cobol usa arquivos do tipo texto para armazenar suas informações, e que neste caso, estão sujeitos a corrompimento por&amp;nbsp;vírus&amp;nbsp;ou abertura de forma ilegal.&lt;br /&gt;
Para ajudar nessa questão vou postar um link de pagina que o ajudará a determinar qual o problema com a file status.&lt;br /&gt;
&lt;a href=&quot;http://supportline.microfocus.com/documentation/books/sx20books/fhscod.htm#s001&quot;&gt;http://supportline.microfocus.com/documentation/books/sx20books/fhscod.htm#s001&lt;/a&gt;
&lt;br /&gt;
&amp;nbsp;Caso ocorra um erro busque nesta tabela os erros e suas causas.&lt;br /&gt;
[]s a todos</content><link rel='replies' type='application/atom+xml' href='http://modelosdecodigos.blogspot.com/feeds/4862381120623989285/comments/default' title='Postar comentários'/><link rel='replies' type='text/html' href='http://modelosdecodigos.blogspot.com/2012/02/como-controlar-erros-de-leitura-e.html#comment-form' title='0 Comentários'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1209189845592343988/posts/default/4862381120623989285'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1209189845592343988/posts/default/4862381120623989285'/><link rel='alternate' type='text/html' href='http://modelosdecodigos.blogspot.com/2012/02/como-controlar-erros-de-leitura-e.html' title='Como controlar erros de leitura e gravação em cobol'/><author><name>jorgefox</name><uri>http://www.blogger.com/profile/13417100727916050571</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiqTl_b0HdBZYy2ADY06ZbE1p_UKZPITCOe67DJcVgCk3nboF8Utn32svgKGCs1ZSIwAtdVCJUlCr9Emmz9OYOH25gpZDJiZ46NhYnvgJRpTMyIZfBFCB6fJ8qJVzpyRg/s220/WIN_20201029_09_19_06_Pro.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1209189845592343988.post-315039860697382027</id><published>2012-02-01T09:45:00.001-02:00</published><updated>2012-02-01T09:45:40.446-02:00</updated><title type='text'>Programa de menu  - cobol</title><content type='html'>&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;identification division.&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;program-id. menu.&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;author. jorgefox.&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;data division.&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;working-storage section.&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;77 wopcao &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;pic 9 value zero.&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;screen section.&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;01 menu-principal.&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 02 blank screen.&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 02 line 1 col 1 value &quot;***************************************&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; -&quot;************************************&quot;.&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 02 line 2 col 21 value &quot;Sistema de compra e venda Mercadorias&quot;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; -.&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 02 line 3 col 1 value &quot;***************************************&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; -&quot;************************************&quot;.&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 02 line 4 col 33 value &quot;Menu Principal&quot;.&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 02 line 7 col 10 value &quot;[1] Cadastro Mercadoria&quot;.&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 02 line 8 col 10 value &quot;[2] Cadastro Cliente&quot;.&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 02 line 9 col 10 value &quot;[3] Cadastro Vendedor/Comprador&quot;.&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 02 line 10 col 10 value &quot;[4] Listagem de Mercadoria&quot;.&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 02 line 11 col 10 value &quot;[5] Listagem de Cliente&quot;.&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 02 line 12 col 10 value &quot;[6] Sair sistema&quot;.&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 02 line 15 col 10 &quot;Digite a opção desejada[.]&quot;.&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 02 opcao line 15 col 34 pic 9 using wopcao auto.&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;procedure division.&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;inicio.&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; display menu-principal&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; accept menu-principal&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; evaluate wopcao&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;when 1&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; call &quot;cadmercadoria&quot; using wopcao&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; go to inicio&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;when 2&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; call &quot;aplicacao&quot;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; go to inicio&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;when 6&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; stop run&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;when other&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;go to inicio&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; end-evaluate.&lt;br /&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://modelosdecodigos.blogspot.com/feeds/315039860697382027/comments/default' title='Postar comentários'/><link rel='replies' type='text/html' href='http://modelosdecodigos.blogspot.com/2012/02/programa-de-menu-cobol.html#comment-form' title='0 Comentários'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1209189845592343988/posts/default/315039860697382027'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1209189845592343988/posts/default/315039860697382027'/><link rel='alternate' type='text/html' href='http://modelosdecodigos.blogspot.com/2012/02/programa-de-menu-cobol.html' title='Programa de menu  - cobol'/><author><name>jorgefox</name><uri>http://www.blogger.com/profile/13417100727916050571</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiqTl_b0HdBZYy2ADY06ZbE1p_UKZPITCOe67DJcVgCk3nboF8Utn32svgKGCs1ZSIwAtdVCJUlCr9Emmz9OYOH25gpZDJiZ46NhYnvgJRpTMyIZfBFCB6fJ8qJVzpyRg/s220/WIN_20201029_09_19_06_Pro.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1209189845592343988.post-7629375314231375618</id><published>2012-02-01T08:48:00.003-02:00</published><updated>2012-02-01T09:45:07.840-02:00</updated><title type='text'>Tela de Cadastro de Clientes - Cobol</title><content type='html'>&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;identification division.&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;program-id. aplic.&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;author. jorgefox.&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;environment division.&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;configuration section.&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;input-output section.&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;file-control.&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;select clientes assign to &quot;clientes.dat&quot;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;organization is indexed&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;access mode is dynamic&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;record key is codigo&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;alternate key is nome with duplicates&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;file status is fs-clientes.&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;data division.&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;file section.&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;fd clientes.&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;01 registro-clientes.&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 02 codigo &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;pic 9999.&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 02 nome &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;pic x(50).&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 02 data-nas.&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;03 dia-nas &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; pic 99.&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;03 mes-nas &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; pic 99.&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;03 ano-nas &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; pic 9999.&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 02 telefone &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; pic x(30).&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 02 endereco &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; pic x(50).&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 02 numero &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; pic 9(6).&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 02 complemento &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;pic x(30).&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 02 bairro &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; pic x(30).&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 02 cidade &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; pic x(30).&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 02 cep &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;pic x(8).&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 02 estado &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; pic AA.&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 02 email &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;pic x(50).&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;01 reg-cliente.&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 02 wcodigo &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;pic 9999 values zero.&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 02 wnome &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;pic x(50) values spaces.&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 02 wdata-nas.&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;03 wdia-nas &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; pic 99 values zero.&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;03 wmes-nas &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; pic 99 values zero.&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;03 wano-nas &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; pic 9999 values zero.&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 02 wtelefone &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; pic x(30) value spaces.&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 02 wendereco &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; pic x(50) value spaces.&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 02 wnumero &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; pic 9(6) value zero.&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 02 wcomplemento &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;pic x(30) value spaces.&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 02 wbairro &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; pic x(30) value spaces.&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 02 wcidade &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; pic x(30) value spaces.&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 02 wcep &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;pic x(8) value spaces.&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 02 westado &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; pic AA value spaces.&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 02 wemail &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;pic x(50) value spaces.&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;working-storage section.&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 01 fs-clientes.&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;02 fs-clientes-1 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;pic 9.&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;02 fs-clientes-2 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;pic 9.&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;02 fs-cliente-r redefines fs-clientes-2 pic 99 comp-x.&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 77 opcao &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; pic x value spaces.&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;procedure division.&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;abertura.&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;open i-o clientes.&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;inicio.&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; display erase&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; perform tela&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if opcao=&quot;S&quot; or opcao=&quot;s&quot; then&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;perform grava-dados&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;perform limpa-campos&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;go to inicio&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; else&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;go to inicio&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; end-if&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;.&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;tela.&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;display &quot;Cadastro de cliente&quot; at 0430&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;display &quot;Codigo &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; : &quot; at 0605&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;display &quot;Nome &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; : &quot; at 0705&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;display &quot;Data Nascimento &amp;nbsp; &amp;nbsp;: &amp;nbsp; / &amp;nbsp;/&quot; at 0805&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;display &quot;Endereco &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; : &quot; at 0905&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;display &quot;Telelefone &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; : &quot; at 1005&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;display &quot;Numero &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; : &quot; at 1105&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;display &quot;Complemento &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;: &quot; at 1205&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;display &quot;Bairro &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; : &quot; at 1305&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;display &quot;Cidade &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; : &quot; at 1405&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;display &quot;C.E.P &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;: &quot; at 1505&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;display &quot;Estado &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; : &quot; at 1605&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;display &quot;E-mail &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; : &quot; at 1705&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;accept wcodigo at 0625&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;if wcodigo = 9999 then&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;close clientes&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;exit program&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;end-if&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;accept wnome at 0725&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;accept wdia-nas at 0825&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;accept wmes-nas at 0828&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;accept wano-nas at 0831&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;accept wendereco at 0925&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;accept wtelefone at 1025&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;accept wnumero at 1125&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;accept wcomplemento at 1225&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;accept wbairro at 1325&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;accept wcidade at 1425&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;accept wcep at 1525&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;accept westado at 1625&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;accept wemail at 1725&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;display &quot;Dados corretos [S/N] [.]&quot; at 1905&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;accept opcao at 1927&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;.&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;limpa-campos.&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;move spaces to reg-cliente.&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;grava-dados.&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;move reg-cliente to registro-clientes&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;write registro-clientes.&lt;br /&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://modelosdecodigos.blogspot.com/feeds/7629375314231375618/comments/default' title='Postar comentários'/><link rel='replies' type='text/html' href='http://modelosdecodigos.blogspot.com/2012/02/tela-de-cadastro-de-clientes-cobol.html#comment-form' title='1 Comentários'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1209189845592343988/posts/default/7629375314231375618'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1209189845592343988/posts/default/7629375314231375618'/><link rel='alternate' type='text/html' href='http://modelosdecodigos.blogspot.com/2012/02/tela-de-cadastro-de-clientes-cobol.html' title='Tela de Cadastro de Clientes - Cobol'/><author><name>jorgefox</name><uri>http://www.blogger.com/profile/13417100727916050571</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiqTl_b0HdBZYy2ADY06ZbE1p_UKZPITCOe67DJcVgCk3nboF8Utn32svgKGCs1ZSIwAtdVCJUlCr9Emmz9OYOH25gpZDJiZ46NhYnvgJRpTMyIZfBFCB6fJ8qJVzpyRg/s220/WIN_20201029_09_19_06_Pro.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1209189845592343988.post-7157950787239566289</id><published>2012-01-30T12:34:00.003-02:00</published><updated>2012-01-30T12:34:57.349-02:00</updated><title type='text'>Menu principal em COBOL</title><content type='html'>&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;identification division.&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;program-id. menu.&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;author. jorgefox.&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;data division.&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;working-storage section.&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; *77 opcao &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;pic 9 value zero.&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;77 wopcao &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;pic 9 value zero.&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;screen section.&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;01 menu-principal.&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 02 blank screen.&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 02 line 1 col 1 value &quot;***************************************&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; -&quot;************************************&quot;.&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 02 line 2 col 21 value &quot;Sistema de compra e venda Mercadorias&quot;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; -.&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 02 line 3 col 1 value &quot;***************************************&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; -&quot;************************************&quot;.&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 02 line 4 col 33 value &quot;Menu Principal&quot;.&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 02 line 7 col 10 value &quot;[1] Cadastro Mercadoria&quot;.&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 02 line 8 col 10 value &quot;[2] Cadastro Cliente&quot;.&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 02 line 9 col 10 value &quot;[3] Cadastro Vendedor/Comprador&quot;.&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 02 line 10 col 10 value &quot;[4] Listagem de Mercadoria&quot;.&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 02 line 11 col 10 value &quot;[5] Listagem de Cliente&quot;.&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 02 line 12 col 10 value &quot;[6] Sair sistema&quot;.&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 02 line 15 col 10 &quot;Digite a opção desejada[.]&quot;.&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 02 opcao line 15 col 10 pic 9 using wopcao auto.&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;procedure division.&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;inicio.&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; display menu-principal&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; accept menu-principal&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; evaluate wopcao&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;when 1&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; call &quot;cadmercadoria&quot; using wopcao&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; go to inicio&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;when 2&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; call &quot;cadcliente&quot; using wopcao&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;when 6&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; stop run&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;when other&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;go to inicio&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; end-evaluate.&lt;br /&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://modelosdecodigos.blogspot.com/feeds/7157950787239566289/comments/default' title='Postar comentários'/><link rel='replies' type='text/html' href='http://modelosdecodigos.blogspot.com/2012/01/menu-principal-em-cobol.html#comment-form' title='4 Comentários'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1209189845592343988/posts/default/7157950787239566289'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1209189845592343988/posts/default/7157950787239566289'/><link rel='alternate' type='text/html' href='http://modelosdecodigos.blogspot.com/2012/01/menu-principal-em-cobol.html' title='Menu principal em COBOL'/><author><name>jorgefox</name><uri>http://www.blogger.com/profile/13417100727916050571</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiqTl_b0HdBZYy2ADY06ZbE1p_UKZPITCOe67DJcVgCk3nboF8Utn32svgKGCs1ZSIwAtdVCJUlCr9Emmz9OYOH25gpZDJiZ46NhYnvgJRpTMyIZfBFCB6fJ8qJVzpyRg/s220/WIN_20201029_09_19_06_Pro.jpg'/></author><thr:total>4</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1209189845592343988.post-5189416152328658995</id><published>2012-01-27T17:29:00.003-02:00</published><updated>2012-01-27T17:32:40.329-02:00</updated><title type='text'>Exercício em sala - cobol mostrando vetor.</title><content type='html'>Este exemplo demonstra como &amp;nbsp;usar vetor em cobol.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;identification division.&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;program-id. medias.&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;author. jorgefox&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;data division.&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;working-storage section.&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;01 aluno occurs 10 times.&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 05 codigo &amp;nbsp; &amp;nbsp; &amp;nbsp;pic 9999 values zero.&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 05 nome &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;pic x(50) values spaces.&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 05 notas &amp;nbsp; &amp;nbsp; &amp;nbsp; pic 99v99 value zero occurs 4 times.&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 05 media &amp;nbsp; &amp;nbsp; &amp;nbsp; pic 99v99 value zero.&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;77 i &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;pic 99 values zero.&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;77 j &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;pic 99 values zero.&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;77 lc &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; pic 9999 value zero.&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;77 opcao &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;pic x value space.&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;procedure division.&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;inicio.&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; perform varying i from 1 by 1 until i&amp;gt;3&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; display erase&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; display &quot;Codigo &amp;nbsp; : &quot; at 0510&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; display &quot;nome &amp;nbsp; &amp;nbsp; : &quot; at 0610&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; display &quot;*********Notas*********&quot; at 0710&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; accept codigo(i) at 0520&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; accept nome(i) at 0620&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; display &quot; &quot; at 0809&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; move 0910 to lc&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; perform varying j from 1 by 1 until j&amp;gt;4&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;add 100 to lc&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;display &quot;nota &quot; at lc &amp;nbsp;j&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;add 10 to lc&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;accept notas(i,j) at lc&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;subtract 10 from lc&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;add notas(i,j) to media(i)&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; end-perform&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; divide media(i) by 4 giving media(i)&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; end-perform&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; perform varying i from 1 by 1 until i&amp;gt;3&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; display erase&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; display &quot;Codigo &amp;nbsp; : &quot; at 0510 codigo(i)&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; display &quot;nome &amp;nbsp; &amp;nbsp; : &quot; at 0610 nome(i)&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; display &quot;*********Notas*********&quot; at 0710&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; display &quot; &quot; at 0809&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; move 0910 to lc&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; perform varying j from 1 by 1 until j&amp;gt;4&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;add 100 to lc&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;display &quot;nota &quot; at lc &amp;nbsp;j&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;add 10 to lc&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;display notas(i,j) at lc&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;subtract 10 from lc&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; end-perform&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; add 100 to lc&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; display &quot;Media &amp;nbsp; : &quot; at lc media(i)&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; display &quot;Proximo&quot; at 1610&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; accept opcao at 1621&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; end-perform&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; stop run.&lt;br /&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://modelosdecodigos.blogspot.com/feeds/5189416152328658995/comments/default' title='Postar comentários'/><link rel='replies' type='text/html' href='http://modelosdecodigos.blogspot.com/2012/01/exercicio-em-sala-cobol-mostrando-vetor.html#comment-form' title='1 Comentários'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1209189845592343988/posts/default/5189416152328658995'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1209189845592343988/posts/default/5189416152328658995'/><link rel='alternate' type='text/html' href='http://modelosdecodigos.blogspot.com/2012/01/exercicio-em-sala-cobol-mostrando-vetor.html' title='Exercício em sala - cobol mostrando vetor.'/><author><name>jorgefox</name><uri>http://www.blogger.com/profile/13417100727916050571</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiqTl_b0HdBZYy2ADY06ZbE1p_UKZPITCOe67DJcVgCk3nboF8Utn32svgKGCs1ZSIwAtdVCJUlCr9Emmz9OYOH25gpZDJiZ46NhYnvgJRpTMyIZfBFCB6fJ8qJVzpyRg/s220/WIN_20201029_09_19_06_Pro.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1209189845592343988.post-654783376612306976</id><published>2012-01-27T11:04:00.001-02:00</published><updated>2012-01-27T11:04:09.665-02:00</updated><title type='text'>Ensaio de um crud em cobol</title><content type='html'>&lt;br /&gt;
Pessoal depois de um jejum estou de volta com mais códigos, só que agora, com a linguagem cobol.&lt;br /&gt;
Este é uma tela para cadastramento de clientes, bem como mostrar o uso do nível 66.&lt;br /&gt;
Forte abraço.&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;identification division.&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;program-id. dados.&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;author. jorgefox.&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;data division.&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;working-storage section.&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;01 cliente.&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 02 codigo &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;pic 9999 value zeros.&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 02 nome &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;pic x(50) value spaces.&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 02 endereco.&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;03 rua &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;pic x(30) value spaces.&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;03 qd &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; pic 99X value spaces.&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;03 lt &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; pic 99X values spaces.&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;03 compl &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;pic x(20) value spaces.&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;03 bairro &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; pic x(20) value spaces.&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;03 cidade &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; pic x(30) value spaces.&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;03 estado &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; pic aa value spaces.&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;03 cep &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;pic x(9) value spaces.&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 02 email &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; pic x(50) value spaces.&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 02 telefone &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;pic x(17) value spaces.&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 02 celular &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; pic x(17) value spaces.&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;66 logradouro renames rua thru compl.&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;77 opcao &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;pic x value spaces.&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;procedure division.&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;inicio.&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;display erase&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;display &quot;Codigo &amp;nbsp; : &quot; at 0510&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;display &quot;Nome &amp;nbsp; &amp;nbsp; : &quot; at 0610&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;display &quot;Endereco &quot; at 0710&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;display &quot;Rua &amp;nbsp; &amp;nbsp; &amp;nbsp;: &quot; at 0810&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;display &quot;Qd.&quot; at 0852&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;display &quot;Lt.&quot; at 0859&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;display &quot;Compl &amp;nbsp; &amp;nbsp;: &quot; at 0910&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;display &quot;Bairro &amp;nbsp; : &quot; at 0942&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;display &quot;Cidade &amp;nbsp; : &quot; at 1010&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;display &quot;Estado &amp;nbsp; : &quot; at 1052&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;display &quot;Cep &amp;nbsp; &amp;nbsp; &amp;nbsp;: &quot; at 1110&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;display &quot;Telefone : &quot; at 1210&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;display &quot;Celular &amp;nbsp;: &quot; at 1242&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;display &quot;E-mail &amp;nbsp; : &quot; at 1310&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;display &quot;Dados corretos [S/N] . &quot; at 1510&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;accept codigo at 0521&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;accept nome at 0621&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;accept rua at 0821&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;accept qd at 0855&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;accept lt at 0862&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;accept compl at 0921&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;accept bairro at 0953&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;accept cidade at 1021&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;accept estado at 1063&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;accept cep at 1121&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;accept telefone at 1221&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;accept celular at 1253&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;accept email at 1321&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;accept opcao at 1531&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;if opcao=&quot;S&quot; or opcao=&quot;s&quot; then&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;display erase&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;display &quot;logradouro : &quot; at 1010 logradouro&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;else&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;go to inicio&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;end-if&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;stop run.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;</content><link rel='replies' type='application/atom+xml' href='http://modelosdecodigos.blogspot.com/feeds/654783376612306976/comments/default' title='Postar comentários'/><link rel='replies' type='text/html' href='http://modelosdecodigos.blogspot.com/2012/01/ensaio-de-um-crud-em-cobol.html#comment-form' title='2 Comentários'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1209189845592343988/posts/default/654783376612306976'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1209189845592343988/posts/default/654783376612306976'/><link rel='alternate' type='text/html' href='http://modelosdecodigos.blogspot.com/2012/01/ensaio-de-um-crud-em-cobol.html' title='Ensaio de um crud em cobol'/><author><name>jorgefox</name><uri>http://www.blogger.com/profile/13417100727916050571</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiqTl_b0HdBZYy2ADY06ZbE1p_UKZPITCOe67DJcVgCk3nboF8Utn32svgKGCs1ZSIwAtdVCJUlCr9Emmz9OYOH25gpZDJiZ46NhYnvgJRpTMyIZfBFCB6fJ8qJVzpyRg/s220/WIN_20201029_09_19_06_Pro.jpg'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1209189845592343988.post-2597256160057782581</id><published>2012-01-22T00:10:00.000-02:00</published><updated>2012-01-22T00:10:20.841-02:00</updated><title type='text'>Exercicios sobre Variaveis Compostas Homgeneas Bidimensionais.</title><content type='html'>Pessoal como falei em sala de aula, estou postando aqui a&amp;nbsp;solução&amp;nbsp;dos&amp;nbsp;exercícios.&lt;br /&gt;
Começo com a serie de &lt;b&gt;FIBONACCI&amp;nbsp;&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
algoritmo &quot;Fibonacci&quot;&lt;br /&gt;
// Função :&lt;br /&gt;
// Autor :&lt;br /&gt;
// Data : 20/01/2012&lt;br /&gt;
// Seção de Declarações&lt;br /&gt;
var &amp;nbsp;n:inteiro&lt;br /&gt;
funcao Fibonacci(i:inteiro):inteiro&lt;br /&gt;
inicio&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp;se i=0 entao&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; retorne 0&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp;senao&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;se i=1 entao&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; retorne 1&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;senao&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; retorne Fibonacci(i-2)+Fibonacci(i-1)&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;fimse&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp;fimse&lt;br /&gt;
fimfuncao&lt;br /&gt;
&lt;br /&gt;
inicio&lt;br /&gt;
para n de 0 ate 21 faca&lt;br /&gt;
&amp;nbsp; escreva(Fibonacci(n))&lt;br /&gt;
fimpara&lt;br /&gt;
fimalgoritmo&lt;br /&gt;
&lt;br /&gt;
Este é o calculo do fatorial de um numero.&lt;br /&gt;
O fatorial é usado em cálculos&amp;nbsp;probabilísticos e em series.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
algoritmo &quot;FATORIAL&quot;&lt;br /&gt;
var &amp;nbsp;n:inteiro&lt;br /&gt;
&lt;br /&gt;
funcao Fatorial(i:inteiro):inteiro&lt;br /&gt;
inicio&lt;br /&gt;
se i=0 entao&lt;br /&gt;
&amp;nbsp; &amp;nbsp;retorne 1&lt;br /&gt;
senao&lt;br /&gt;
&amp;nbsp; &amp;nbsp;se i=1 entao&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; retorne 1&lt;br /&gt;
&amp;nbsp; &amp;nbsp;senao&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; retorne i*Fatorial(i-1)&lt;br /&gt;
&amp;nbsp; &amp;nbsp;fimse&lt;br /&gt;
fimse&lt;br /&gt;
fimfuncao&lt;br /&gt;
inicio&lt;br /&gt;
limpatela&lt;br /&gt;
escreva(&quot;Digite um numero menor que 20 para calcular o n!&quot;)&lt;br /&gt;
leia (n)&lt;br /&gt;
escreva(&quot;O Fatorial de &quot;,n,&quot; é igual a &quot;,Fatorial(n))&lt;br /&gt;
fimalgoritmo&lt;br /&gt;
&lt;br /&gt;
Passagem de&amp;nbsp;parâmetro por referência.&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;algoritmo &quot;Passagem de parametros por referencia&quot;&lt;br /&gt;
// Função : Mostrar procedimentos com passagem de parametro&lt;br /&gt;
// Autor : &amp;nbsp;Jorgefox&lt;br /&gt;
// Data : 20/01/2012&lt;br /&gt;
// Seção de Declarações&lt;br /&gt;
&lt;br /&gt;
procedimento Divide(Dividendo,Divisor:real;var dv,rs:real)&lt;br /&gt;
inicio&lt;br /&gt;
dv&amp;lt;-int(Dividendo/Divisor)&lt;br /&gt;
rs&amp;lt;-Dividendo-dv*Divisor&lt;br /&gt;
fimprocedimento&lt;br /&gt;
&lt;br /&gt;
var a,b,x,y,v,w:real&lt;br /&gt;
&lt;br /&gt;
inicio&lt;br /&gt;
a&amp;lt;-6&lt;br /&gt;
b&amp;lt;-3&lt;br /&gt;
Divide(a,b,x,y)&lt;br /&gt;
escreval(&quot; Valor de x=&quot;,x,&quot; Valor de y=&quot;,y)&lt;br /&gt;
Divide(a*b-1,b+1,v,w)&lt;br /&gt;
escreval(&quot; Valor de V=&quot;,v,&quot; Valor de W=&quot;,w)&lt;br /&gt;
fimalgoritmo&lt;br /&gt;
&lt;br /&gt;
Forte abraço a todos.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;</content><link rel='replies' type='application/atom+xml' href='http://modelosdecodigos.blogspot.com/feeds/2597256160057782581/comments/default' title='Postar comentários'/><link rel='replies' type='text/html' href='http://modelosdecodigos.blogspot.com/2012/01/exercicios-sobre-variaveis-compostas.html#comment-form' title='1 Comentários'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1209189845592343988/posts/default/2597256160057782581'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1209189845592343988/posts/default/2597256160057782581'/><link rel='alternate' type='text/html' href='http://modelosdecodigos.blogspot.com/2012/01/exercicios-sobre-variaveis-compostas.html' title='Exercicios sobre Variaveis Compostas Homgeneas Bidimensionais.'/><author><name>jorgefox</name><uri>http://www.blogger.com/profile/13417100727916050571</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiqTl_b0HdBZYy2ADY06ZbE1p_UKZPITCOe67DJcVgCk3nboF8Utn32svgKGCs1ZSIwAtdVCJUlCr9Emmz9OYOH25gpZDJiZ46NhYnvgJRpTMyIZfBFCB6fJ8qJVzpyRg/s220/WIN_20201029_09_19_06_Pro.jpg'/></author><thr:total>1</thr:total></entry></feed>