# Teste

Páginas: 6 (1320 palavras) Publicado: 14 de abril de 2013
10/04/13

Orientação Impressão

Orientações da aula 10/04/2013
Lista de Exercícios

de algoritmos condicionais.

_____________________________________________________________ Soluções dos exercícios 10 a 14. _____________________________________________________________ Exercício 10 (opção 1): agrto"enm" loim smoe vr a vlr,ao2vlr,ao4vlr,ao6cn:itio ao1vlr,ao3vlr,ao5vlr,ot ner pr:ra ec eliii nco Ecea (Dgt 6vlrs " srvl "iie aoe: ) Li (ao1vlr,ao3vlr,ao5vlr) ea vlr,ao2vlr,ao4vlr,ao6 cn < 0 ot S (ao1>0 e(ao12< 0 eto e vlr ) vlr% > ) na cn < cn +1 ot - ot Fme is S (ao2>0 e(ao22< 0 eto e vlr ) vlr% > ) na cn < cn +1 ot - ot Fme is S (ao3>0 e(ao32< 0 eto e vlr ) vlr% > ) na cn < cn +1 ot - ot Fme is S (ao4>0 e(ao42< 0 eto e vlr ) vlr% > ) na cn < cn +1 ot - ot Fme is S (ao5>0 e(ao52< 0eto e vlr ) vlr% > ) na cn < cn +1 ot - ot Fme is S (ao6>0 e(ao62< 0 eto e vlr ) vlr% > ) na cn < cn +1 ot - ot Fme is pr < (ot6 *10 ec - cn/) 0 Ecea(ec"%dsnmrssopstvsíprs) srvlpr, o úeo ã oiio mae" fmloim iagrto _____________________________________________________________ Exercício 10 (opção 2): agrto"enm" loim smoe vr a vlrcn:itio ao,ot ner pr:ra ec el iii nco cn < 0 ot Ecea (Dgt u vlr " srvl"iie m ao: ) Li (ao) ea vlr S (ao >0 e(ao% < 0 eto e vlr ) vlr2 > ) na cn < cn +1 ot - ot Fme is Ecea (Dgt u vlr " srvl "iie m ao: ) Li (ao) ea vlr S (ao >0 e(ao% < 0 eto e vlr ) vlr2 > ) na cn < cn +1 ot - ot Fme is Ecea (Dgt u vlr " srvl "iie m ao: ) Li (ao) ea vlr S (ao >0 e(ao% < 0 eto e vlr ) vlr2 > ) na cn < cn +1 ot - ot Fme is Ecea (Dgt u vlr " srvl "iie m ao: ) Li (ao) ea vlr S (ao >0 e(ao%< 0 eto e vlr ) vlr2 > ) na
https://ucsvirtual.ucs.br/globalAva/2/20132INF0200AA/cronograma/6/orientacao/imprimir/ 1/4

10/04/13

Orientação Impressão

cn < cn +1 ot - ot Fme is Ecea (Dgt u vlr " srvl "iie m ao: ) Li (ao) ea vlr S (ao >0 e(ao% < 0 eto e vlr ) vlr2 > ) na cn < cn +1 ot - ot Fme is Ecea (Dgt u vlr " srvl "iie m ao: ) Li (ao) ea vlr S (ao >0 e(ao% < 0 eto e vlr ) vlr2 > ) nacn < cn +1 ot - ot Fme is pr < (ot6 *10 ec - cn/) 0 Ecea(ec"%dsnmrssopstvsíprs) srvlpr, o úeo ã oiio mae" fmloim iagrto _____________________________________________________________ Exercício 11: agrto"aiaã hrro loim vldço oái" vr a h,mn sg itio r i, e: ner iii nco Ecea (Dgt u hrro nsaodm H:MS " srvl "iie m oái, et re, HM:S ) Li (rmnsg ea h,i,e) S (r> 0 e(r=3 eto e h = ) h 0 e(i < 5)eto e mn = )mn = 9 na S (e > 0 e(e < 5)eto e sg = ) sg = 9 na Ecea (Hrroe fraovld:"h,"" mn""sg srvl "oái m omt áio ,r :, i,:,e) sno ea Ecea (Sgnofr d itrao) srvl "eud oa o nevl" Fme is sno ea Ecea (Mnt fr d itrao) srvl "iuo oa o nevl" Fme is sno ea Ecea (Hr fr d itrao) srvl "oa oa o nevl" Fme is fmloim iagrto _____________________________________________________________ Exercício 12: agrto"qaa 2 Ga" loim Eucoo ru vr a abcitio ,,:ner dlari1ri2 ra et,az,az: el iii nco Ecea (Dgt o 3ceiine d uaeuçod 2 ga:" srvl "iie s ofcets e m qaã o o ru ) Li (,,) ea abc S ( =0 eto e a ) na Ecea (CeiineaéiulaZR,noéuaeuçod 2 ga" srvl "ofcet ga EO ã m qaã o o ru) sno ea S ( >0 eto e a ) na dla< (^)-(**) et - b2 4ac Fme is S (et 0 eto e dla ) na ri1< (b(et^12)/2a az - -+dla(/))(*) ri2< (b(et^12)/2a az - --dla(/))(*) Ecea(Da ríe ecnrds " ri1 ri2 srvl "us azs notaa: , az, az) Fme is Fme is
https://ucsvirtual.ucs.br/globalAva/2/20132INF0200AA/cronograma/6/orientacao/imprimir/ 2/4

10/04/13

Orientação Impressão

fmloim iagrto _____________________________________________________________ Exercício 13: agrto"acei" loim lnhra vr a cd qd:itio o, te ner peo vlrao ra rc, aopg: el iii nco Ecea (Dgt cdg dpouoeqatdd:) srvl "iie óio o rdt uniae" Li (o,qd) ea cd te S (o =10 eto e cd 0) na vlrao< qd *25 aopg - te . Ecea(te"Ccor qet,cmcsouiái d R 25.VlrTTLR "vlrao srvlqd, ahro une o ut ntro e \$ ,0 ao OA \$ ,aopg) Fme is S (o =11 eto e cd 0) na vlrao< qd *43 aopg - te . Ecea(te"Buosmls cmcsouiái d R 43.VlrTTLR "vlrao srvlqd, ar ipe, o ut ntro e \$ ,0 ao OA \$ ,aopg) Fme is S (o =12 eto e cd 0) na vlrao< qd *45 aopg...

Por favor, assinar para o acesso.