Decisiones en Secuencia y Ciclos

October 4, 2022 | Author: Anonymous | Category: N/A
Share Embed Donate


Short Description

Download Decisiones en Secuencia y Ciclos...

Description

 

GCLN\NJOC\ CO \CLSCOLNK

Cstc cs cb tnpj gc cstrulturk quc sc utnbnzk lukogj sc gcmco rckbnzkr vkrnks prcfuotks co gjogc oj cs napjrtkotc (ojrakbacotc) cb \noj gc lkgk gclnsnüo. \u csqucak fcocrkb cs cb snfuncotc9 \n Ljognlnüo; Nostrullnjocss k ciclutkr co lksj gc quc bk ljognlnüo; sck Tcrgkgcrk Nostrullnjoc \n ljognlnüo= Nostrullnjocss k ciclutkr co lksj gc quc bk ljognlnüo= sck Tcrgkgcrk Nostrullnjoc \n ljognlnüo< Nostrullnjocss k ciclutkr co lksj gc quc bk ljognlnüo< sck Tcrgkgcrk Nostrullnjoc \n ljognlnüo7 Nostrullnjocss k ciclutkr co lksj gc quc bk ljognlnüo7 sck Tcrgkgcrk Nostrullnjoc Cicapbj

;. Ek Eklcr lcr uo kbfjrnt kbfjrntaj aj co psc pscugj ugjlüg lügnf nfj j quc bc bck k uo oùac oùacrj rj cotc cotcrj rj c nap naprna rnak k sn cb oùacrj cs pjsntnvj, ocfktnvj j lcrj. Kbfjrntaj GclnsnjocsZcoZ\clucolnk GclnsnjocsZcoZ\clucolnk

Nonlnj Cotcrj9 oua Cslrnmnr ‒Gnfntc uo oùacrj cotcrj‑ Bccr oua \n oua 2 0 Cslrnmnr ‒Cb oùacrj gnfntkgj cs ocfktnvj‑ \n oua ? 0 Cslrnmk ‒Cb oùacrj gnfntkgj cs pjsntnvj‑ \n oua 1 0 Cslrnmk ‒Cb oùacrj gnfntkgj cs lcrj‑ Dno Gclnsnjocs kongkgks j co lkslkgk

Îstks sc prcscotko co kqucbbjs lksjs co bjs lukbcs uok cstrulturk ljapbctk gc gclnsnüo sc colucotrk gcotrj gc jtrk. \u csqucak fcocrkb cs cb snfuncotc9 \n LjognlnjoZCxtcrok cotjolcs

 

\n LjognlnüoZNotcrok cotjolcs Nostrullnjocs k ciclutkr co lksj gc quc Bk ljognlnüo notcrok sck vcrgkgcrk \noj Nostrullnjocs k ciclutkr co lksj gc quc Bk ljognlnüo notcrok sck dkbsk DnoZ\nZNotcroj \noj Nostrullnjocs k ciclutkr co lksj gc quc Bk ljognlnüo cxtcrok sck dkbsk DnoZ\nZCxtcroj J tkamnîo sc pucgc coljotrkr gc bk snfuncotc djrak9 \n LjognlnjoZCxtcrok cotjolcs Nostrullnjocs k ciclutkr co lksj gc quc bk ljognlnüo cxtcrok sck vcrgkgcrk \noj \n LjognlnüoZNotcrok cotjolcs Nost Nostru rull llnj njoc ocss k ci cicl clut utkr kr co lksj lksj gc quc quc bk ljog ljognl nlnü nüo o notc notcro rok k sck vcrgkgcrk \noj Nostrullnjocss k ciclutkr co lksj gc quc bk ljognlnüo notcrok sck dkbsk Nostrullnjoc DnoZ\nZNotcroj DnoZ\nZCxtcroj Cicapbjs

;. Ekfk uo kbfjrntaj co pscug pscugjlügnfj jlügnfj qu quc c bck uo oùacrj c nognquc sn cs gc uo uok, k, gjs trcs j luktrj j aës gáfntjs. Prjfrkak GclnsnüoZKongkgk GclnsnüoZKongkgk

Nonlnj Cotcrj9 Ouacrj Naprnanr ‒Gnfntc uo oùacrj cotcrj‑ Bccr Ouacrj \n Ouacrj 2 0 cotjolcs Ouacrj 1 Ouacrj * (-;) DnoZ\n \n Ouacrj ?1 ; y Ouacrj 21 > cotjolcs Naprnanr ‒Cb oùacrj tncoc uo gáfntj‑

 

\noj \n Ouacrj ?1 ;0 y Ouacrj 21 >> cotjolcs Naprnanr ‒Cb oùacrj tncoc gjs gáfntjs‑ \noj \n Ouacrj ?1 ;00 y oùacrj 21 >>> cotjolcs Naprnanr ‒Cb oùacrj tncoc trcs gáfntjs‑ \noj \n Ouacrj ?1;000 y Ouacrj 21 >>>> cotjolcs Naprnanr ‒Cb oùacrj tncoc luktrj gáfntjs‑ \noj Naprnanr ‒Cb oùacrj tncoc aës gc luktrj gáfntjs‑ DnoZ\n DnoZ\n DnoZ\n DnoZsn Dno =. Gcsk Gcskrrjbb rrjbbc c uo kbfjrn kbfjrntaj taj co pscu pscugjlü gjlügnfj gnfj quc bc bck k uo oùacrj co cotcrj tcrj gc gjs gáf gáfntjs ntjs c nognquc lukb gáfntj cs akyjr quc cb jtrj. Prjfrkak GáfntjZakyjr 

Nonlnj Cotcrj9 oua, gnfntj;, gnfntj= Naprnanr ‒Notrjguzlk uo oùacrj cotcrj gc gjs gáfntjs‑ Bccr oua, \n oua ?1 ;0 j oua 21 >> cotjolcs gnf; 1 oua/;0 gnf= 1 oua AJG ;0 \n gnf; ? gnf= cotjolcs Naprnanr gnf;, ‒cs akyjr quc‑, gnf= \noj Naprnanr gnf=, ‒cs akyjr quc‑, gnf; DnoZ\n \noj Naprnanr ‒Cb oùacrj notrjgulngj oj tncoc gjs (=) gáfntjs‑ DnoZ\n Dno

 

LNLBJ\

So lnlbj cs uok cstrulturk quc pcrantc rcpctnr j ntcrkr uo ljoiuotj gc kllnjocs bk lkotngkg gc vclcs quc gctcranoc uok ljognlnüo. Cb lnlbj sncaprc gcmc tcocr uo nonlnj y uo dnokb. \jbj pkrk dklnbntkr bk cslrnturk gc kbfuojs kbfjrntajs y ljo cb ëonaj gc quc gcsgc cb mkblüo gc bk büfnlk gc prjfrkaklnüo sc pucgko tcocr aks ecrrkancotks quc dklnbntco bk cstrulturklnüo gc bjs lnlbjs, bk akyjrák gc bjs bcofukics gc prjfrkaklnüo tncoco trcs djraks gc prcscotklnüo gc bjs lnlbjs, cbbks sjo9 

Lnlbj Ancotrks



Lnlbj Pkrk



Lnlbj Eklcr (Ekstk y Ancotrks)

Lnlbj Ancotrks (Venbc)

Cstc cs cb lnlbj quc ecajs utnbnzkgj gcsgc quc ljacozkajs k ekmbkr gc kbfjrntajs. Cs cb csqucak fcocrkb gc trkmkij pkrk tjgjs bjs lnlbjs, cstj quncrc gclnr quc sn ustcg cotncogc lbkrkacotc bk büfnlk gc duolnjokancotj gc cstc lnlbj sc bc vk k dklnbntkr  cotcogcr oj sjbj bjs jtrjs lnlbjs quc kquá sc cxpbnlko snoj lukbquncr jtrj lnlbj quc colucotrc co kbfùo jtrj bnmrj gc Büfnlk gc Prjfrkaklnüo. Cs ùtnb quc scpk quc cstc lnlbj tkamnîo cs bbkakgj co kbfuojs bnmrjs cb Lnlbj Ancotrks [uc pcrj su dnbjsjdák cs bk ansak gcb Lnlbj Ancotrks quc vkajs k cxpbnlkr kquá y quc ecajs vcongj utnbnzkogj. \u cstrulturk fcocrkb cs bk snfuncotc Ancotrks Ljognlnüo eklcr  Lucrpj gcb Lnlbj DnoZAncotrks \u djrak gc ciclulnüo cs auy scolnbbk9 Ancotrks sc luapbk quc bk ljognlnüo sck Tcrgkgcrk cotjolcs sc ciclutkrë cb Lucrpj gcb Lnlbj Gc akocrk quc tkamnîo pjgrákajs gclnr quc cb Lucrpj gcb Lnlbj sc rcpctnrë tkotks vclcs ljaj bj pcrantk bk ljognlnüo j ancotrks gnlek ljognlnüo sck Tcrgkgcrk. Co ljognlnjocs ojrakbcs bk lkotngkg gc vclcs quc sc rcpntk cb lucrpj gcb lnlbj scrë sncaprc uok lkotngkg dnontk y gcmcrë cxnstnr, gcotrj gcb ansaj lucrpj gcb lnlbj, uok j aës nostrullnjocs nostrullnjocs quc ojs pcrantko kprjx kprjxnakrojs nakrojs k bk ljognln ljognlnüo üo sck quc prjpcog prjpcogko ko pjrquc co kbfùo ajacotj bk ljognlnüo sck Dkbsk

 

Cicapbj

;. Cslrn Cslrnmnr mnr tj tjgjs gjs bbjs js où oùacrj acrjss nap napkrcs krcs cotrc ; y =0 =0.. Prjfrkak Napkrcs

Nonlnj Cotcrj9 oua oua 1 ; Ancotrks oua 21 =0 rcpctnr  Cslrnmnr oua oua 1 oua += DnoZAncotrks Dno =. Gcsk Gcskrrjbb rrjbbc c uo kbfjr kbfjrntaj ntaj qu quc c lucotc lluëotj uëotjss gáfntj gáfntjss tncoc uo où oùacrj acrj co cotcrj. tcrj. Prjfrkak LucotkZgáfntjs

Nonlnj Cotcrj9 Ouacrj, LucotkZGnfntjs /* Gclbkrk vkrnkmbcs Cslrnmnr ‒Gnfntc uo oùacrj cotcrj‑ /* \jbnlntk uo gktj cotcrj Bccr Ouacrj /* Bcc uo cotcrj y bj kbaklcok co bk vkrnkmbc Ouacrj LucotkZGnfntjs LucotkZGn fntjs 1 0 /* Nonlnkbnzk cb ljotkgjr co lcrjs lcrjs Ancotrks Ouacrj 2 ? 0 rcpctnr /* Ancotrks Ouacrj Ouacrj sck gndcrcotc gndcrcotc gc 0  Ouacrj 1 Ouacrj / ;0 /* Gnvngk cotrc ;0  LucotkZGnfntjs 1 LucotkZGnfntjs + ; /* y lucotc DnoZAncotrks Cslrnmnr ‒Wncoc‑, LucotkZGnfntjs, LucotkZGnfntjs, ‒gáfntjs‑/*Cslrnmk bk lkotngkg gc gáfntjs Dno

 



Pkrk O1 ; ekstk =3, Pksj = (pkrk nolrcaco nolrcacotkr tkr O gc = co =)



Pkrk O1 ;0 ekstk 0, Pksj -; (pkrk gclrcacotkr O gc ; co ;)

Lnlbj Eklcr 

Cb lnlbj Eklcr tncoc gjs vkrnkotcs9 Eklcr “ Ancotrks y Eklcr “ Ekstk. 

Lnlbj Eklcr-Ancotrks9 Eklcr-Ancotrks9 \c rcpntc Ancotrks bk ljognlnüo dnokb sck vcrgkgcrk , cs

gclnr, tcranok lukogj bk ljognlnüo cs dkbsk. 

Lnlbj Eklcr-Ekstk9 \c rcpntc ancotrks bk ljognlnüo dnokb sck dkbsk, cs gclnr,

tcranok Ekstk quc bk ljognlnüo cs vcrgkgcrk.

Lnlbj Eklcr “ Ancotrks (Gj “ Venbc)

\u gndcrcolnk mësnlk ljo cb lnlbj Ancotrks cs quc bk prucmk gc ljognlnüo cs eclek kb dnokbnzkr cb lnlbj, cs gclnr bks nostrullnjocs sc ciclutko lukogj acojs uok vcz pjrquc prnacrj ciclutk bks nostrullnjocs y kb dnokb cvkbùk bk ljognlnüo8 Wkamnîo sc bc ljojlc pjr cstk rkzüo ljaj lnlbj gc ljognlnüo gc skbngk . \u djraktj fcocrkb cs9 Eklcr   Kllnjocs k ciclutkr  ciclutkr  Ancotrks (Ljognlnüo) Cicapbj

Cslrnmnr bjs oùacrjs pkrcs ljaprcogngjs ljaprcogngjs cotrc cb = y cb ;000. Prjfrkak PkrcsZAnb

Nonlnj Cotcrj9 oùacrj oùacrj 1 = Eklcr  Cslrnmnr oùacrj oùacrj 1 oùacrj + = Ancotrks oùacrj 21 ;000 Dno

 

Lnlbj Eklcr “ Ekstk (Gj “ Sotnb)

Co cb lnlbj Eklcr “ Ekstk, sc ciclutko bks nostrullnjocs ekstk quc bk cxprcsnüo gc ljotrjb sck lncrtk. \u djraktj fcocrkb cs9 Eklcr   Kllnjocs k ciclutkr  ciclutkr  Ekstk (Ljognlnüo) Cicapbj

Tckajs cb kbfjrntaj quc enlnajs co bk scllnüo kotcrnjr, pcrj kejrk utnbnzkogj cb lnlbj Eklcr “ Ekstk. Cslrnmnr bjs oùacrjs pkrcs ljaprcogngjs ljaprcogngjs cotrc cb = y cb ;000. Prjfrkak PkrcsZAnb

Nonlnj Cotcrj9 oùacrj oùacrj 1 = Eklcr  Cslrnmnr oùacrj oùacrj 1 ouacrj + = Ekstk oùacrj ? ;000 Dno

Lnlbjs Kongkgjs

So lnlbj kongkgj oj cs aës quc tcocr uoj j aës lnlbjs gcotrj gc uo lnlbj. Auleks vclcs co prjfrkaklnüo oclcsntkajs aës gc uo lnlbj pkrk luapbnr ljo uok ljognlnüo. . Co cb snfuncotc cicapbj qucrcajs lrckr cb snfuncotc pkr gc gktjs9

x ; ; ; = = = < <

y ; = < ; = < ; =

 

< <

Prnacrj kokbnzk bk büfnlk gc cstjs oùacrjs. Jmscrvk quc pkrk lkgk gáfntj x, cb gáfntj y lkamnk su vkbjr trcs vclcs. \übj lukogj cb gáfntj y ek bbcfkgj k
View more...

Comments

Copyright ©2017 KUPDF Inc.
SUPPORT KUPDF