Cov txheej txheem:

Programming TI-84 Plus (Silver Edition) Advanced: 15 Kauj Ruam
Programming TI-84 Plus (Silver Edition) Advanced: 15 Kauj Ruam

Video: Programming TI-84 Plus (Silver Edition) Advanced: 15 Kauj Ruam

Video: Programming TI-84 Plus (Silver Edition) Advanced: 15 Kauj Ruam
Video: Fun things you can do on a Ti-84 Graphing Calculator (ft. Floof) 2024, Hlis ntuj nqeg
Anonim
Lub cajmeem TI-84 Ntxiv (Nyiaj Txiag) Ua Tau Zoo
Lub cajmeem TI-84 Ntxiv (Nyiaj Txiag) Ua Tau Zoo

Qhov no yog qib siab ntawm cov phiaj xwm TI-84 ntxiv lossis nyiaj ib tsab. Kuv pom zoo kom ua tus pib qhia (https://www.instructables.com/id/Programming-TI-84-Plus-Silver-Edition-for-beginn/) ua ntej pib cov lus qhia no. Nco ntsoov tias koj tau paub nrog txhua cov lus txib siv hauv cov haujlwm koj tau ua hauv kev pib qhia. Puas yog koj tsis yog tus pib, tab sis koj tsuas yog nrhiav qee cov ntaub ntawv ntau ntxiv txog yuav ua li cas thiaj ua cov haujlwm zoo dua, tom qab ntawd koj tsuas yog nyob ntawm qhov chaw raug. Tab sis txawm hais tias, yog tias koj tsis yog tus pib, kuv tseem thov kom koj nyeem cov pib qhia ua ntej pib qhov no, tsuas yog li ntawd koj thiaj paub tias koj xav tau dab tsi. Kuv paub kuv cov phiaj xwm tsis yog qhov zoo tshaj plaws thiab muaj txiaj ntsig zoo, tab sis lawv ua haujlwm tau zoo, saib zoo thiab ua raws nraim qhov koj xav kom lawv ua. Thaum koj pom qee yam uas koj tsis nkag siab, thov tawm tswv yim thiab kuv yuav piav qhia. Yog tias koj muaj lus tawm tswv yim txog kuv cov phiaj xwm lossis paub txoj hauv kev zoo dua los yog kev cog lus me me ntawm kev ua cov haujlwm no, thov tawm tswv yim. Tsis tas li cov ntawv qhia no tau muab faib ua ob peb ntu: 1. cov lus txib ua tau zoo 1. yam xwm txheej - yog tias yog lwm qhov xwm txheej 2. loops - lwm txoj hauv kev ua loops (tsis nrog Lbl) 3. randomizing - ib txoj hauv kev los ua lub laij lej tso rau hauv tus lej zauv. 4. qhov getKey hais kom ua - cov lus txib siab heev uas yuav dhau los ua ke. 2. kev ua haujlwm siab dua 5. ob lub vijtsam - piav qhia yuav siv daim duab thiab lub vijtsam hauv tsev li cas. 6. mais thiab kilometers - qhov kev hloov kho siab tshaj ntawm txoj haujlwm koj tau ua rau cov pib qhia. 7. quadratic formula - ib qho kev hloov kho qib siab ntawm qhov program koj tau ua rau cov pib qhia. 8. binary - ib qho program uas xam cov lej binary ntawm tus lej zauv. 3. cov kev zov me nyuam tuaj yeem lom zem 9. bouncer - qhov kev lom zem uas yog qhov tseeb ib yam ntawm qhov screen saver. 10. chatbot - ib qho program uas ua rau nws muaj peev xwm tham nrog koj lub laij lej. 11. pranks - cov phiaj xwm me me los dag koj cov phooj ywg. 4. cov lus qhia thiab lus dag 12. Hloov npe/rho tawm ib qho program - yuav hloov pauv lub npe ntawm txoj haujlwm lossis rho tawm ib qho li cas. 13. Subroutines - yuav ua li cas thiaj ua tau ib txoj haujlwm ua lwm txoj haujlwm. 14. Archive - lub cim xeeb thib ob. 15. Thaub qab koj lub laij lej - ib qho program hauv koj lub computer, yog li koj yuav tsis plam koj cov program. Nco tseg: cov lus qhia no tau ua tiav. Kuv yuav tsis tsim txoj haujlwm ib qib zuj zus ib yam li kuv tau ua hauv qhov pib qhia. Kuv yuav qhia koj txoj haujlwm, piav qhia nws ua dab tsi thiab piav qhia vim li cas koj thiaj xav tau ntxiv cov lus txib tshwj xeeb. Yog koj muaj lus nug, cia li qhuas.

Kauj ruam 1: Cov xwm txheej

Cov xwm txheej
Cov xwm txheej

The If condition Koj tuaj yeem tsim qhov program uas suav tau, tab sis koj yuav tsum txwv nws li cas thaum nws mus txog 100. Nrog rau qhov xwm txheej. Ib qhov kev suav suav tuaj yeem saib qee yam zoo li no:: 0 → A: Lbl A: A+1 → A: Disp A: Mus A Tam sim no koj ntxiv ob kab uas ua rau nws nres ntawm 100, yog li koj yuav tau txais qhov no:: 0 → A: Lbl A: A+1 → A: Disp A: Yog A = 100: Nres: Mus Rau A (Tus = tuaj yeem pom los ntawm nias 2nd, lej) Thaum siv Qhov xwm txheej, nws yuav tshuaj xyuas yog tias mob (A = 100) yog lawm. Yog tias yog, yog tias yuav txuas nrog kab hauv qab nws thiab tom qab ntawd nrog cov kab hauv qab qhov ntawd. Yog tias qhov xwm txheej tsis raug, nws yuav hla kab tom ntej thiab mus nrog kab thib ob. Yog li qhov haujlwm no pib nrog 0. Tom qab ntawd suav txog 1. Nws qhia 1 thiab kos yog tias A yog 100. Vim tias 1 tsis zoo ib yam li 100, nws yuav hla kab tom ntej thiab mus rau Goto A. Yog li nws yuav mus rov qab mus rau Lbl A thiab suav rau. Tab sis thaum A sib npaug rau 100, nws yuav txuas nrog kab tom ntej, uas hais tias Nres, yog li txoj haujlwm yuav tsum nres. Yog Yog Yog Lwm Yam mob Tab sis tej zaum koj xav ua qhov haujlwm ua ntau dua ib qho yog tias nws mus txog 100. Piv txwv li ua rau nws tso saib '100 tau mus txog.' Tau kawg koj tuaj yeem ua qhov zoo li no:: 0 → A: Lbl A: A+1 → A: Disp A: Yog A = 100: ClrHome: Yog A = 100: Disp "100 YUAV TSUM TAU": Yog A = 100: Ncua: Yog A = 100: Nres: Mus A tab sis txoj hauv kev no koj li haujlwm yuav loj dua li nws tuaj yeem ua tau. Koj kuj tuaj yeem ua nws zoo li no:: 0 → A: Lbl A: A+1 → A: Disp A: Yog A = 100: Tom qab ntawd: ClrHome: Disp "100 YUAV TSUM TAU: Pause: Stop: Lwm Yam: Mus Rau Qhov No Qhov program kuaj xyuas yog A = 100. Yog tias nws yog, nws yuav cia li mus. A = 100, nws yuav xub ua kom pom lub vijtsam hauv tsev, tom qab ntawd tso tawm cov ntawv, ncua kom txog thaum koj nias nkag mus thiab tom qab ntawd muaj lwm qhov hais kom ua, yog li cov lus txib rau daim ntawv no xaus thiab qhov haujlwm yuav tsum nres, yog li koj qhov haujlwm yuav zoo ib yam li qhov no: 0 → A: Lbl A: A+1 → A: Disp A: Yog A = 100: Tom qab ntawd: ClrHome: Disp "100 YUAV TSUM tau mus txog: ncua: Lwm: Mus rau Ib txoj hauv kev ntawm kev sau tseg uas feem ntau yog ib Yog Yog Lwm Qhov xwm txheej zoo li no:: Yog A =…: Tom qab ntawd:…..: Lwm Yam Tus: tuaj yeem pom los ntawm nias ALPHA, 'taw tes'. Koj tuaj yeem siv qhov: ua piv txwv ntawm kev ntxiv kab ntxiv nyob txhua qhov chaw hauv txoj haujlwm. Koj tuaj yeem sau tag nrho cov phiaj xwm ntawm ib kab, tab sis qhov ntawd tsis yooj yim, vim tias nrog ib qho yuam kev nias kom meej thiab koj cov haujlwm tau raug tshem tawm tag nrho, tsuas yog lub npe, yog li kuv tsis pom zoo qhov ntawd. Muaj ntau yam Tab sis tej zaum koj xav tau suav thiab ua kom nws thov suav txhua lub sijhawm tom qab 100 tau ntxiv. Tom qab ntawd koj tuaj yeem siv 'thiab' thiab 'lossis' cov lus txib, uas tuaj yeem pom los ntawm nias 2nd, lej, yog. Koj qhov haujlwm yuav tsum zoo ib yam li no:: 0 → A: Lbl A: A+1 → A: Disp A: Yog A = 100 lossis A = 200 lossis A = 300 lossis A = 400 lossis A = 500: Ntawv qhia zaub mov ("GO ON? "," YOG ", A," NO ", B: Goto A: Lbl B Qhov kev zov me nyuam no yuav tshuaj xyuas yog tias A = 100 lossis yog A = 200 lossis yog A = 300 thiab ntxiv rau. Yog ib qho yog, nws yuav tso saib cov ntawv qhia zaub mov thiab muab kev xaiv rau koj kom suav nws lossis tsis yog. Yog tsis yog, nws yuav tsum nres, txwv tsis pub nws yuav suav mus txog thaum qhov xwm txheej muaj tseeb dua. thiab B = 2 Hauv qhov ua rau qhov program yuav tshuaj xyuas A yog sib npaug 30. Yog li, nws yuav tshuaj xyuas yog tias B sib npaug rau 2. Yog tias ob qho no muaj tseeb, nws yuav txuas nrog kab ncaj qha hauv qab nws. ntawm cov xwm txheej no tsis muaj tseeb, nws yuav hla kab tom ntej, ib txwm ua thaum qhov xwm txheej tsis raug. thiab B = 2 Kuv xav tias koj tuaj yeem txiav txim siab koj tus kheej tias qhov no yuav ua li cas. Qhov lus txib tshiab: Yog Yog Li Cas

Kauj ruam 2: Loops

Loops
Loops

Koj tuaj yeem tsim lub voj nrog Lbl hais kom ua thiab Goto hais kom ua zoo li no:: 0-> A: Lbl A: A+1-> A: Yog A <20: Mus Rau A Tab sis qhov no tuaj yeem ua tau yooj yim dua los ntawm kev siv lub sijhawm hais kom ua. Qhov kev zov me nyuam yuav zoo li no: 0-> A: Thaum A <20: A+1-> A: Xaus Raws li koj pom, qhov no luv dua. Qhov kawg hais kom ua yog qhov kawg ntawm lub voj. Txoj haujlwm no yuav tshuaj xyuas yog tias A tsawg dua 20. Tsuav qhov xwm txheej no muaj tseeb, nws yuav txuas nrog cov kab hauv qab no, kom txog thaum nws pom qhov kawg hais kom ua. Tom qab ntawd nws yuav rov qab mus rau Lub Sijhawm hais kom ua thiab tshawb xyuas yog tias qhov xwm txheej tseem muaj tseeb. Yog tias qhov xwm txheej dhau los tsis raug nws yuav hla txhua kab hauv qab no, kom txog thaum nws pom qhov kawg hais kom ua thiab mus nrog cov kab tom qab Xaus. Yog tias koj xav ua lub voj tsis muaj qhov xwm txheej, koj tuaj yeem siv qhov no:: 0-> A: Thaum 1: A+1-> A: Xaus 1 sawv ntawm no rau qhov xwm txheej uas ib txwm muaj tseeb. Qhov no tuaj yeem ua haujlwm tau yog tias yuav tsum muaj ntau txoj hauv kev txiav tawm lub voj, piv txwv:: 0-> A: 0-> B: Thaum 1: A+1-> A: B+2-> B: Yog A = 5: Mus rau C: Yog B = 8: Mus D: Xaus Ib yam uas kuv rov hais dua yog muab lub voj rau:: Lbl A: Thaum 1: s tuff: Xaus Yog tias koj tam sim no xav ua qhov program rov qab mus rau lub voj tom qab nws tawm ntawm lub voj, tsuas yog siv Goto A. Cov lus txib tshiab: Thaum Xaus

Kauj ruam 3: Randomizing

Qee zaum koj xav kom txoj haujlwm ua qee yam tsis raug, xws li qhia koj tus lej tsis raug, lossis tso cov ntawv ntawm qhov chaw tsis raug. Txhawm rau ua qhov no, koj tuaj yeem siv qhov kev sib tw randInt (hais kom ua. Koj yuav tsum siv nws zoo li no:: randInt (a, b) Nws yuav xaiv tus lej tsis sib xws ntawm a thiab b (kuj tseem yuav yog lossis b). Yog li koj xav tau ib txoj haujlwm uas tso koj lub npe nyob ntawm qhov chaw tsis raug ntawm lub vijtsam thaum koj nias nkag, koj qhov haujlwm yuav tsum zoo ib yam li no:: Clrhome: Lbl A: getKey-> K: Yog K = 0: Mus Rau A: Yog K = 105: Cov zis (randInt (1, 8), randInt (1, 16), "Npe: Mus Rau Qhov Tseeb Koj tseem tuaj yeem muab tsab ntawv tus lej tsis raug, zoo li no: RandInt (a, b)-> RNew" lus txib: randInt (

Kauj ruam 4: GetKey Command

GetKey hais kom ua
GetKey hais kom ua

Qhov hais kom ua GetKey yog cov lus txib ua kom zoo dua qub tau siv los ua qhov haujlwm thov kom muaj tus yuam sij. Nws tuaj yeem yog ib qho tseem ceeb tshwj tsis yog ntawm On key. Muaj ib yam uas koj xav paub txog cov lus txib no. Nws tsis yog cov lus txib xws li Kev Nkag Siab lossis Kev Nkag Mus, dab phem tos koj kom nkag mus rau tus nqi. Yog tias koj tsis nkag rau tus nqi, nws yuav txuas nrog qhov program nrog tus nqi 0. Ua kom nws 'tos' rau koj cov lus teb koj yuav tsum tsim lub voj. Nov yog qhov piv txwv ntawm lub voj zoo li no:: Lbl 1: getKey: Yog Ans = 0: Mus 1 Raws li koj pom, koj tuaj yeem nco qab tus yuam sij uas tau muab tso nrog Ans. Tsuas muaj ib qho teeb meem nrog qhov no. Kuv mam rov los txog qhov ntawd hauv ib pliag. Ua ntej koj xav paub tias qhov lus txib no ua haujlwm li cas. Zoo, txhua tus yuam sij muaj nws tus lej. Koj tuaj yeem pom tus lej twg yog tus lej ntawm daim duab. Yog tias koj nias tus yuam sij, Ans yuav tau txais nws tus nqi. Tab sis tam sim no qhov teeb meem nrog cov cim no. Yog tias koj yuav siv qhov getKey hais kom hloov qhov txiaj ntsig ntawm qhov hloov pauv, txoj hauv kev no tuaj yeem muab qee qhov teeb meem. Cia hais tias koj muaj txoj haujlwm no:: 0 → A: Lbl 1: getKey: Yog Ans = 0: Mus 1: Yog Ans = 25: A+1 → A: Yog Ans = 34: A-1 → A: Disp A: Mus 1 Qhov program no yuav tsum qhia koj tus nqi A. Yog koj nias nce, ib qho yuav tsum tau ntxiv rau A thiab yog tias koj nias qis, ib qho yuav tsum tau muab rho tawm ntawm A. Tom qab ntawd nws yuav tsum qhia koj tus nqi ntawm A. Hmoov tsis zoo qhov program no yuav tsis ua hauj lwm zoo li ntawd. Qhov teeb meem yog nyob rau hauv txoj kev Ans ua haujlwm. Nws yuav siv tus nqi ntawm qhov kev suav ua tiav zaum kawg. Yog tias koj nias, Ans yuav yog 25, yog li yuav ntxiv ib qho ntxiv. Tab sis nws yuav ua dab tsi ntxiv yog saib yog Ans yog 34. Ans yuav yog 34 thaum A yog 34, vim A+1 yog qhov kev suav zaum kawg nws tau ua tiav, yog li hauv txoj haujlwm no A tsis tuaj yeem loj dua ntawd 33. Kom paub tseeb tias txoj haujlwm ua txoj haujlwm zoo, tsuas yog muab getKey tus nqi ntxiv, K piv txwv. Tam sim no koj qhov haujlwm yuav tsum zoo li no:: 0 → A: Lbl 1: getKey → K: Yog K = 0: Mus 1: Yog K = 25: A+1 → A: Yog K = 34: A-1 → A: Disp A: Mus txog 1 Tam sim no koj xav tias yog lawm, kuv tuaj yeem paub txhua qhov txiaj ntsig ntawm txhua tus yuam sij li cas? Koj tsis tas yuav. Koj tuaj yeem ua qhov program uas ua rau koj:) Qhov program tuaj yeem zoo li qhov no:: Lbl 1: getKey: Disp Ans: Mus 1 Nws yog qhov haujlwm me me tab sis siv tau zoo heev. Qhov tsuas yog nws ua yog rov ua kom pom 0 kom txog thaum koj nias tus yuam sij. Thaum koj ua, nws yuav tso tawm tus nqi uas yog tus yuam sij thiab tom qab ntawd rov ua kom pom 0. Koj tuaj yeem ua qhov program kom tsis tso tawm 0 txhua lub sijhawm, tab sis yog tias koj ua, qhov program tsuas yog loj dua thiab nws yuav tsis nco koj rau qhov tseeb tias yog koj tsis nkag tus lej, nws yuav cia li mus nrog tus nqi 0. Tseem muaj lwm txoj hauv kev dag kom nco qab tus nqi ntawm txhua tus yuam sij. Thawj suav los ntawm kab sab saud ntawm tus yuam sij mus rau kab ntawm tus yuam sij koj xav tau. Cia peb hais tias koj xav paub tus nqi ntawm prgm. Nws yog kab yog kab 4. Tam sim no suav los ntawm sab laug mus rau sab xis. prgm yuav yog tus yuam sij thib 3. prgm yog kab 4, qhov tseem ceeb 3 yog li nws tus nqi yog 43. Cov lus txib tshiab: getKey

Kauj Ruam 5: Ob Lub Vijtsam

Hauv kho vajtse, lub laij lej tsuas muaj ib qho screen, tab sis hauv software, nws muaj ob. Koj tuaj yeem siv ob qho los ua qhov haujlwm ua haujlwm nrog, tab sis koj tsuas tuaj yeem siv ib qho tib lub sijhawm. Cov ntxaij vab tshaus yog lub vijtsam hauv tsev thiab lub teeb duab. Lub vijtsam no yog siv los ntawm cov lus txib xws li Disp, Input, Output (, Prompt thiab ClrHome., zoo li cov lej sib npaug. Cov vijtsam no tsis yog qhov tseeb, vim nws tsuas yog 16 los ntawm 8 txoj haujlwm (16 dav thiab 8 siab).,-, / lossis *. Qee tus cim ua ob peb txoj haujlwm, zoo li cos (. Qhov no yuav siv 4 txoj haujlwm ua ke. Graph-screen Cov duab kab duab yog lub vijtsam uas lub laij lej kos nws cov duab. Qhov screen no yog siv los ntawm cov lus txib uas tuaj yeem pom los ntawm nias DRAW (2ND, PRGM). Cov vijtsam no muaj tseeb ntau dua, vim tias nws yog 94 los ntawm 62 txoj haujlwm, lossis qhov tseeb pixel. Koj tus kheej nrog cov lus txib no. Lawv yog tes heev, tab sis tsis nyuaj rau nkag siab. Kuv yuav ua sting lwm qhov qhia paub yuav ua li cas kos ntawm lub laij lej yav tom ntej, piav qhia feem ntau cov lus txib muab hauv DRAW ntawv qhia zaub mov.

Kauj Ruam 6: mais thiab Kilometers

Tej zaum koj tsis nyiam txoj haujlwm mais thiab kilometers los ntawm qib pib. Qhov no tuaj yeem yog vim koj yuav tsum kaw qhov program thiab rov pib dua kom nkag mus rau lwm qhov txiaj ntsig. Yuav ua li cas yog tias kuv hais rau koj, koj tsis tas yuav. Hauv cov kauj ruam no kuv yuav qhia koj txoj hauv kev los ua kom txoj haujlwm zoo dua thiab ua haujlwm tau zoo dua. Nov yog qhov program:: 0-> A: 0-> M: 0-> N: Lbl 3: ClrHome: Yog A = 0: Tom qab ntawd: Output (1, 1, "MILES:: Output (1, 7, M): Output (2, 1, "KM:: Output (2, 7, N: Goto 1: Else: Output (2, 1," MILES:: Output (2, 7, M: Output (1, 1, "KM):: Cov zis (1, 7, N: Lbl 1: getKey-> K: Yog K = 25 thiab A = 0 lossis K = 34 thiab A = 0: Tom qab ntawd: ClrHome: Cov zis (2, 1, "MILES:: Tawm Tawm (2, 7, M: Output (1, 1, "KM:: Output (1, 7, N: 1-> A: Mus 1: Lwm Yam: Yog K = 25 thiab A = 1 lossis K = 34 thiab A = 1: Ces: ClrHome:: Output (1, 1, "MILES:: Output (1, 7, M: Output (2, 1," KM:: Output (2, 7, N: 0-> A: Mus txog 1): Lwm: Yog K = 105: Mus rau 2: Yog K = 22: Tom qab ntawd: ClrHome: Lwm Yam: Mus Rau 1: Lbl 2: Yog A = 0: Tom qab ntawd: Tawm Tawm (2, 1, "KM:: Tawm" MILES: ", M: M*1.609344-> N: Output (2, 1, "KM:: Output (2, 7, N: Goto 3: Lwm Yam: Output (2, 1," MILES:: Input "KM:", N: N/1.609344: Output (2, 1, "MILES:: Output (2, 7, M: Goto 3 Nws ua dab tsi? Qhov kev zov me nyuam yuav xub tso saib qhov no: MILES: 0 KM: 0 Yog tias koj nias lossis nqis lawv yuav Thaum koj nias Enter, nws yuav nug tus nqi ntawm tus uas nyob ntawm t op ua. Ntaus tus nqi thiab nias Enter. Nws yuav xam lwm tus nqi thiab tso saib. Thaum koj tam sim no nias nce lossis nqis, MILES thiab KM yuav hloov txoj haujlwm dua, yog li qhov muaj txiaj ntsig, kom txog rau thaum koj nias Enter dua. Tom qab ntawd qhov txiaj ntsig yuav hloov mus rau 0 thiab qhov kev zov me nyuam yuav nug txog lwm tus nqi ntawm qhov uas nyob saum toj. Thaum koj nias MODE, txoj haujlwm yuav nres. Thaum koj ua qhov program uas siv cov lej sib txawv, Kuv pom zoo kom hloov pauv txhua qhov kev hloov pauv uas koj siv rau 0 thaum pib ntawm txoj haujlwm. Qhov 'thiab' thiab 'lossis' hais kom ua tuaj yeem pom los ntawm nias 2nd, lej (xeem) thiab nias sab laug.

Kauj Ruam 7: Cov lej sib npaug

Nws kuj tseem tuaj yeem yog koj tsis nyiam qhov kev qhia ua plaub fab zaum kawg, vim tias koj tsis tuaj yeem pom dab tsi koj nkag rau A, B thiab C tom qab tau txais qhov tseem ceeb rau X, lossis tej zaum vim tias yog koj tsuas xav hloov tus nqi ntawm A, koj yuav tsum rov pib qhov haujlwm thiab nkag mus rau qhov qub rau B thiab C tag nrho dua. Nrog txoj haujlwm no txhua qhov teeb meem raug daws. Qhov kev zov me nyuam loj dua li qhov kawg, tab sis nws yeej zoo dua thiab ua haujlwm tau zoo dua.: Lbl 5: 0-> A: 0-> B: 0-> C: 0-> D: 0-> X: 0-> Y: 0-> Z: Lbl 3: ClrHome: Yog Z = 0: Tom qab ntawd: Output (1, 1, "A =: Output (1, 3, A: Output (2, 1," B =: Output (2, 3, B: Output (3, 1, "C =: Output (3), 3, C: Output (4, 1, "DISCR =: Output (4, 7, D: Output (5, 1," X =: Output (5, 3, X: Output (6, 1, "LOSSIS: Output (7, 1, "X =: Output (7, 3, Y: Mus rau 1: Lwm Yam: Yog Z = 1: Tom qab ntawd: Output (3, 1," A =: Output (3, 3, A: Output (1, 1, "B =: Output (1, 3, B: Output (2, 1," C =: Output (2, 3, C: Output (4, 1, "DISCR =: Output (4, 7, D: Output (5, 1, "X =: Output (5, 3, X: Output (6, 1," LOSSIS: Output (7, 1, "X =: Output (7, 3, Y: Mus txog 1: Lwm: Cov zis (2, 1, "A =: Output (2, 3, A: Output (3, 1," B =: Output (3, 3, B: Output (1, 1, "C =: Output (1, 3, C: Output (4, 1, "DISCR =: Output (4, 7, D: Output (5, 1," X =: Output (5, 3, X: Output (6, 1, "OR): Output (7, 1, "X =: Output (7, 3, Y: Lbl 1: getKey-> K: Yog K = 0: Mus rau 1 cim 1: Z+(K = 25)-(K = 34)- > Z cim 2: Yog Z = 3: 0-> Z cim 3: Yog Z = -1: 2-> Z cim 4: Yog K = 105: Mus rau 2: Yog K = 22: Tom qab ntawd kos 5: ClrHome: Lwm: Mus 3: Lbl 2: Yog Z = 0: Mus A: Yog Z = 1: Mus Rau B: Yog Z = 2: Mus rau C: Lbl A: ClrHome: Cov zis (2, 1, "B =: Output (2, 3, B: Output (3, 1," C =: Output (3, 3, C: Output (4, 1, "DISCR =: Output (4, 7, D: Output (5, 1," X =: Output (5, 3, X: Output (6, 1, "LOSSIS: Output (7, 1,") X =: Output (7, 3, Y: Input "A =", A: If A =/0 and B =/0 and C = 0: Then mark 6: B²-4AC-> D: Yog D <0: Mus E: (-B-√ (D))/(2A)-> X: (-B+√ (D))/(2A)-> Y: Mus rau 3: Lwm Yam: Mus rau 3 cim 7: Lbl B: ClrHome: Output (2, 1, "C =: Output (2, 3, C: Output (3, 1," A =: Output (3, 3, A: Output (4, 1, "DISCR =: Output (4, 7, D: Output (5, 1, "X =: Output (5, 3, X: Output (6, 1," LOSSIS: Output (7, 1, "X =: Output (7, 3, Y: Cov tswv yim "B =", B: Yog A =/0 thiab B =/0 thiab C = 0: Tom qab ntawd: B²-4AC-> D: Yog D <0: Mus rau E: (-B-√ (D))/ (2A)-> X: (-B+√ (D))/(2A)-> Y: Goto 3: Lwm Yam: Mus 3: Lbl C: ClrHome: Tawm (2, 1, "A =: Tawm Tawm (2, 3, A: Output (3, 1, "B =: Output (3, 3, B: Output (4, 1," DISCR =: Output (4, 7, D: Output (5, 1, "X =: Cov zis (5, 3, X: Cov zis (6, 1, "LOS YOG: Cov zis (7, 1," X =: Cov zis (7, 3, Y: Cov tswv yim "C =", C: Yog A =/0 thiab B =/0 thiab C = 0: Tom qab ntawd: B²-4AC-> D: Yog D <0: Mus rau E: (-B-√ (D))/(2A)-> X: (-B+√ (D))/(2A)-> Y: Goto 3: Lwm Yam: Mus 3: Lbl E: ClrHome: Tawm (4, 5, "Discr <0: Pause: Mus txog 5 Cim: 1. Tso kab no ncaj qha rau hauv qab cov lus txib getKey ua rau muaj kev cuam tshuam sai dua ntawm qhov haujlwm, vim nws tam sim thov tus yuam sij tshiab, tsis txhob txheeb xyuas txhua yam khoom hauv qab no ua ntej, uas yuav zoo siv tsis tau. 2. (K = 25) thiab (K = 34) yog cov xwm txheej. Cov xwm txheej no muaj tus nqi 1 yog qhov tseeb thiab tus nqi 0 yog tias tsis yog. Nov yog txoj hauv kev luv ntawm kev sau ntawv. 3. Z yuav tsis yog 3, yog li nws yuav suav tau thiab nce mus txog 3, nws tam sim ntawd mus rau 0. 4. Z yuav tsis yog qhov tsis zoo, yog li nws yuav suav thiab nce mus txog tus nqi qis dua 0, nws tam sim ntawd mus rau 2.5. Yog tias tus lej 22 raug nias (QAUV/QUIT) txoj haujlwm yuav tshem tawm lub vijtsam (ClrHome) thiab tom qab ntawd tso tseg, vim tias nws mus txog lwm yam yam tsis tau xub xub hais mus rau Goto. 6. =/ yuav tsum yog tus 'tsis yog' kos npe, pom los ntawm nias 2ND, MATH thiab tom qab ntawv xaiv thib ob. Kuv tuaj yeem, hmoov tsis, tsis ntaus nws. 7. Kuv tsis paub qhov laj thawj yog vim li cas Else thiab Goto 3 cov lus txib yuav tsum tau muab tso rau ntawd, tab sis yog tias lawv tsis muab tso rau ntawd, txoj haujlwm yuav txiav tawm. Nws ua dab tsi? Qhov kev qhia no nthuav tawm lub vijtsam no: A = 0 B = 0 C = 0 DISCR = 0 X = 0 LOS YOG X = 0 Yog tias koj yuav nias nce lossis nqis, A, B thiab C yuav hloov txoj haujlwm. Nias nce yuav ua rau sab saud mus rau hauv qab thiab ib nrab mus rau saum (firs B, tom qab ntawd C, tom qab ntawd A). Nias qis yuav ua rau lub hauv qab mus rau sab saum toj thiab sab saud mus rau nruab nrab (firs C, tom qab ntawd A, tom qab ntawd B). Txoj kev no koj tuaj yeem tig peb tsab ntawv no. Thaum koj nias nkag mus nws yuav nug koj txog tus nqi ntawm ib sab saud. Ntaus tus nqi thiab nias sau. Tam sim no koj tuaj yeem tig peb tsab ntawv ntxiv. Thaum tag nrho peb tsab ntawv tau txais tus nqi, uas tsis yog 0, txoj haujlwm yuav nkag mus rau qhov muaj txiaj ntsig ntawm kev ntxub ntxaug thiab ob txoj hauv kev rau X. Tam sim no koj tseem tuaj yeem hloov pauv thiab hloov qhov txiaj ntsig ntawm A, B thiab C kom nws suav qhov kev ntxub ntxaug thiab ob qho X rau lwm tus nqi ntawm A, B lossis C. Thaum koj nias MODE/QUIT txoj haujlwm yuav txiav tawm. Yog tias koj nkag mus rau qhov tseem ceeb rau A, B thiab C uas yuav ua rau kev ntxub ntxaug tsis zoo, txoj haujlwm yuav muab qhov yuam kev, vim nws tsis tuaj yeem siv cov hauv paus plaub fab los ntawm tus lej tsis zoo. Kuv muab qhov tshwj xeeb ntxiv rau hauv qhov program, uas yuav ua rau txoj haujlwm tsis muab qhov yuam kev, tab sis ua rau nws pom qhov tseeb tias kev ntxub ntxaug yog me dua 0. Tom qab qhov no koj yuav tsum tau nias nkag mus thiab txhua qhov txiaj ntsig yuav rov pib dua rau 0

Kauj ruam 8: Binary

Nov yog qhov program uas tuaj yeem hloov tus lej ib txwm mus rau tus lej binary. Txheeb nws:: Lbl A: ClrHome: Tawm tswv yim "Naj Npawb", A: Yog A <0: Mus rau A: 12-> X: 0-> Z: Thaum 1: X-1-> X: A-2^X -> B: Yog B <0: Xaus: Z+10^X-> Z: Yog B = 0: Mus Z: B-> A: Xaus: Lbl Z: Disp "BINARY NUMBER IS", Z: Pause: ClrHome: Ntawv qhia zaub mov ("Lwm tus lej?", "YOG", A, "TSIS YOG", B: Lbl B Nws ua dab tsi? Qhov program no yog qhov haujlwm me me zoo nkauj, tab sis nws ua haujlwm zoo kawg nkaus. Txhua yam nws ua yog nug koj tus lej, thiab, thaum nws nkag mus, nws yuav suav nws cov menyuam ntxaib binary. Nws yooj yim zoo nkauj. Yog tias koj xav tau, koj tuaj yeem paub tias nws ua haujlwm zoo li cas nrog qee qhov zoo saib. Muaj tsuas yog ib yam uas kuv xav tau taw qhia: koj yuav tsum tsis txhob sau tus lej ntau dua li 1024, vim tias tom qab ntawv qhov program yuav siv qhov kev tshawb fawb pom zoo rau tus lej binary, uas yuav ua rau txoj haujlwm tsis raug.

Kauj ruam 9: Bouncer

Nov yog qhov program kuv tsis tuaj nrog kuv tus kheej, tab sis pom hauv lub vev xaib. Nws yog hom kev tshuaj ntsuam uas hu ua bouncer. Ua tib zoo saib:: ClrDraw: AxesOff: randInt (0, 62-> A: randInt (0, 94-> B: 1-> C: 1-> D: Thaum 1: A+C-> A: B+D -> B: Pxl-Hloov (A, B: Yog A = 0: 1-> C: Yog A = 62: -1-> C: Yog B = 0: 1-> D: Yog B = 94: -1 -> D: Xaus Dab Tsi Nws Ua Dab Tsi? Qhov program no siv lub vijtsam duab. Nws kos kab kab pheeb ces kaum hla lub vijtsam, pib ntawm qhov chaw tsis raug ntawm lub vijtsam. Thaum nws los txog ntawm ntug qhov screen, nws yuav thaws tawm thiab ntawm lwm txoj hauv kev. Txoj hauv kev no nws yuav xim lub vijtsam thiab tom qab ntawd tshem nws tus kheej dua.

Kauj ruam 10: Chatbot

Nov yog lub ntsiab teeb tsa rau chatbot. Ua tau yooj yim tiag tiag.: ClrHome: Disp "WELCOME TO THE", "CHATBOT FOR TI mark 1: While 1: Input" ", Str1 mark 2: … mark 3: EndMarks 1. Nov tsuas yog qee cov ntawv txais tos. Nkag mus rau qhov no yam koj nyiam. rho tawm kab no. Saib nws rau koj tus kheej 2. Str 1 yog qhov sib txawv. Nws tau piav qhia hauv kuv cov lus qhia pib. Yeej, nws khaws cov ntawv. 3. Nkag mus rau ntawm no txhua qhov kev cuam tshuam uas koj xav kom lub laij lej ua. Piv txwv li sau qhov no: Yog Str1 = "HELLO: Disp" HY Nws ua dab tsi? Qhov haujlwm no yeej tseem tos koj nkag mus rau cov ntawv. Yog tias koj ua, nws yuav tshawb xyuas nws 'phau ntawv teev npe'. Yog tias koj tau 'kawm' nws cov ntawv, nws yuav ua raws nraim Koj tau kawm paub yuav ua dab tsi. Cia peb saib qhov piv txwv. Yog tias koj nkag mus rau HELLO, lub laij lej yuav teb nrog HY. Koj yuav tsum tsis txhob hnov qab cov cim hais tawm, vim tias qhov no tsis ua haujlwm. Koj tuaj yeem kawm nws ntau yam raws li koj xav tau thiab tham nrog nws thaum koj dhuav. Yog tias lub laij lej tsis paub cov ntawv koj nkag mus, nws yuav tsuas nug txog lwm cov ntawv thiab tsis quav ntsej cov lus koj hais. Nov yog qee qhov piv txwv ntawm yam koj tuaj yeem kawm nws:: Yog Str1 = "Nres: Nres: Yog Str1 =" HELLO ": Tom qab ntawd: randInt (0, 3)-> A: Yog A = 0: Disp" HY: Yog A = 1: Disp "GREETINGS: Yog A = 2: Disp" GOODDAY: Yog A = 3: Disp "HELLO: Xaus: Lwm: Yog Str1 =" SIJ HAWM TUAJ LI CAS?: getTime: Yog Str1 = "Qhib ABC: prgmABC

Kauj ruam 11: Pranks

Tau kawg koj tseem tuaj yeem cuam tshuam nrog koj tus phooj ywg lub laij lej. Nov yog ob txoj haujlwm lom zem. Lawv yooj yim los ua ntawm cov phooj ywg lub laij lej. Nov yog thawj qhov:: ClrHome: Disp: "Koj Tus Kheej", "YUAV TSAUS SIAB", "", "ENTER CODE:: Lbl A: Input" ", X: Yog X = 23: Mus Rau B: Mus Rau A: Lbl B: Cov tswv yim "", X: Yog X = 11: Goto C: Mus rau A: Lbl C: Cov tswv yim "", X: Yog X = 1995: Nres: Goto AW Nws ua dab tsi? Qhov program no yuav qhia koj lub laij lej Tom ntej no nws yuav nug koj tus lej. Tus lej hauv qhov no yog 23-11-1995. Raws li koj pom nws yog hnub tim. Koj yuav tsum xub nkag mus 23. Yog koj tsis ua, nws yuav rov nug koj tus lej, kom txog thaum koj nkag mus rau 23. Tom qab koj nkag mus rau 23, nws yuav nug koj rau lwm tus lej. Yog koj nkag mus 11, nws yuav mus ntxiv thiab nug koj txog lwm tus lej (1995), tab sis yog koj tsis ua, nws yuav rov qab mus rau qhov pib thiab nug koj dua 23. Yog tias koj nkag mus rau peb tus lej hauv kab kom raug, txoj haujlwm yuav tsum nres thiab koj lub laij lej yuav tsis raug thaiv. Qhov kev lom zem ntawm qhov program no yog koj tsis tuaj yeem pom yog nug koj thawj tus lej, tus thib ob lossis tus lej peb, yog li lwm tus yuav tsis txawm paub tias koj yuav tsum nkag mus rau 3 sib txawv n umbers (tshwj tsis yog koj qhia lawv). Koj tuaj yeem nkag rau txhua tus lej. Yog tias koj yuav ua qhov haujlwm no ntawm lwm tus neeg lub laij lej, sim nws lub hnub yug. Nws yog lawv tus lej thiab lawv yuav paub tus lej, tab sis lawv yuav tsis paub tias yog tus lej. Tsuas muaj ib yam uas ua rau me ntsis poob siab txog qhov haujlwm no. Koj tuaj yeem txiav tawm txoj haujlwm yooj yim los ntawm nias On. Qhov kev zov me nyuam yuav ncua thiab muab qhov kev xaiv txiav tawm. Nias tawm thiab lub tshuab xam zauv raug thaiv tsis tau nkag mus rau tus lej. Los ntawm txoj kev, qhov no ua haujlwm nrog txhua qhov program. Nov yog qhov program thib ob:: ClrHome: Thaum 1: Tawm tswv yim "", A: randInt (A-10, A+10)-> A: Disp A: End Nws ua dab tsi? Qhov kev pabcuam no txawm tias luv dua thiab yog li yooj yim dua ua kom nrawm rau ntawm cov phooj ywg lub laij lej yam tsis muaj nws pom. Yog tias koj ua qhov haujlwm no, koj tus phooj ywg yuav tsis pom qhov sib txawv nrog lub laij lej ua nws txoj haujlwm ib txwm muaj. Koj tus phooj ywg yuav teb cov lus nug, piv txwv li siv 23-4. Cov lus teb raug yog yog 19, tab sis lub laij lej yuav tso saib cov lus teb tsis raug ntawm 19-10 = 9 thiab 19+10 = 29. Muaj qhov ua tau ntawm 4, 76% cov lus teb uas lub laij lej muab yuav yog cov lus teb raug, yog li nws yuav tej zaum tsis raug. Nco ntsoov tsis txhob rub qhov ua dag no ua ntej qhov kev xeem ua lej, vim qhov ntawd tuaj yeem ua rau koj cov phooj ywg poob qis, uas tsis ncaj ncees.

Kauj Ruam 12: Hloov npe/rho tawm Txoj Haujlwm

Raws li koj yuav paub, koj tsis tuaj yeem hloov npe ib qho program. Txawm hais tias koj tuaj yeem tsim txoj haujlwm tshiab thiab luam cov ntsiab lus ntawm qhov program koj xav hloov npe mus rau txoj haujlwm tshiab. Cia peb hais koj koj li ABC program, tab sis koj lub npe nws yog ABCD. Tam sim no koj xav kom nws hu ua ABC. Koj yuav tau ua txoj haujlwm tshiab hu ua ABC. Tom qab ntawd nias RCL (2ND, STO). Nias PRGM, sab laug thiab xaiv ABCD. Nias nkag thiab rov nkag dua. Cov ntsiab lus ntawm ABCD yuav theej rau ABC. Tam sim no koj muaj ob txoj haujlwm uas ob leeg ua tib yam nkaus. Tej zaum koj xav rho ABCD. Txhawm rau ua li ntawd, nyem MEM (2ND, +), nqis, nkag, nkag. Tam sim no koj tab tom pom cov npe ntawm txhua yam khaws cia hauv koj lub laij lej. Xaiv ABCD, qhov program koj xav rho tawm, thiab nias rho tawm. Tam sim no koj qhov program raug tshem tawm:)

Kauj Ruam 13: Subroutines

Thaum sau qhov program, koj tuaj yeem hu rau lwm cov haujlwm raws li subroutines. Txhawm rau ua li ntawd, kho qhov program, nias PRGM, sab laug thiab xaiv qhov haujlwm uas koj xav hu. Thaum koj nias nkag mus koj yuav pom kab tom ntej:: prgmNAME Thaum txoj haujlwm koj tab tom kho pom kab no, nws yuav ua haujlwm program NAME thiab thaum nws ua tiav nrog NAME, nws yuav mus nrog thawj qhov haujlwm, nyob qhov twg nws tawm ntawm.

Kauj ruam 14: Archive

Cov ntaub ntawv
Cov ntaub ntawv

Raws li koj yuav paub, koj lub laij lej muaj ob lub cim xeeb: RAM thiab Archive. Nws yog RAM cim xeeb nws yog lub cim xeeb tseem ceeb thiab ua haujlwm nco. Thaum koj khaws ib qho program, duab, npe lossis lwm yam sib txawv nws yuav raug khaws cia ntawm RAM nco. Hmoov tsis zoo thaum koj ua ntau txoj haujlwm, koj yuav pom RAM lub cim xeeb me me. Koj tuaj yeem khaws cov program lossis duab los ntawm MEM, Mem Mgmt/Del…, Txhua… Xaiv qhov program/duab koj xav khaws thiab nias nkag mus. Qhov kev zov me nyuam yuav muab khaws cia rau hauv Archive memory, hloov pauv ntawm RAM nco. Qhov no yuav ua rau lub laij lej nrawm dua. Thaum ib qhov program tau khaws cia hauv Archive nco, koj tsis tuaj yeem khiav nws, lossis kho nws. Cov duab tsis tuaj yeem rov qab, lossis khaws cia. Txhawm rau tshem tawm lawv, tsuas yog mus rau hauv cov npe, xaiv qhov program uas koj xav kom unarchive thiab nias nkag mus. Koj tseem tuaj yeem mus rau CATALOG (2ND, 0) thiab xaiv cov lus txib Archive lossis Unarchive. Cov lus txib no tsis ua haujlwm nrog cov haujlwm, tab sis lawv ua haujlwm nrog duab. Xaiv cov lus txib ntawd, tom qab ntawd nias VARS, duab thiab xaiv daim duab koj xav (un) khaws cia. Nias nkag mus xaiv nws thiab nias nkag dua mus rau (un) khaws nws. Thaum cov program lossis duab raug khaws cia, lub hnub qub me me yuav tshwm nyob rau ntawm lub npe ntawm qhov program lossis duab.

Kauj Ruam 15: Thaub Koj Cov Lej Xauv

Thaub Koj Cov Lej Xauv
Thaub Koj Cov Lej Xauv

Tau kawg yeej ib txwm yog cov neeg siab phem uas rov pib dua koj lub laij lej yog li koj yuav xoob txhua qhov haujlwm uas koj tau ua. Zoo, tsis muaj kev txhawj xeeb. Muaj ib txoj hauv kev los thaub qab los ntawm koj TI thiab muab rov qab txhua qhov haujlwm hauv tib hnub uas tus txiv neej siab phem tshem lawv. Ib txoj haujlwm pub dawb uas yooj yim siv yog TI txuas. Koj tuaj yeem rub tawm qhov program no ntawm no. Ua ntej xaiv ad sab xis ntawm lub vijtsam 'TI txuas rau Mac' yog tias koj siv Mac, lossis 'TI txuas rau Windows' yog tias koj siv PC. Tom qab ntawv xaiv koj hom lus uas xav tau thiab nias 'Txuas ntxiv ua qhua'. Tom qab ntawd pib rub tawm thiab teeb tsa qhov program. Thaum nws tau teeb tsa, qhib qhov program. Lub vijtsam me me yuav tshwm tuaj nrog 7 qhov kev xaiv sib txawv: TI DeviceExplorer, TI ScreenCapture, Thaub qab, Rov Qab, TI, Tus Kws Kho Ntaub Ntawv, TI DeviceInfo thiab Tshawb Kuv Cov Ntaub Ntawv TI. Tawm tag nrho cov kev xaiv no, tsuas muaj ob qho uas koj tuaj yeem siv tsis tas yuav teeb tsa qee qhov software ntxiv. Ob qho no yog Thaub Qab thiab Rov Qab. Ua ntej txuas koj TI rau koj lub khoos phis tawj nrog lub xov tooj usb uas koj tau txais nrog lub laij lej. Tom qab ntawd xaiv thaub qab (lossis nias b) txhawm rau thaub qab koj li TI. TI txuas yuav pib nrhiav tam sim TI txuas nrog lub khoos phis tawj. Xaiv lub tshuab xam zauv raug thiab xaiv qhov twg koj xav khaws cov thaub qab, yuav ua li cas rau npe thiab yam koj xav kom thaub qab: cov ntawv, cov ntawv khaws cia lossis tus yaj, lossis ib qho ua ke. Nias OK thiab lub khoos phis tawj yuav pib thaub qab koj li TI. Txhawm rau rov qab thaub qab rau TI txuas TI rau koj lub khoos phis tawj thiab xaiv Restore (lossis nias r). Ib zaug ntxiv nws yuav pib tshawb nrhiav txuas nrog TI. Xaiv TI thiab xaiv yog tias koj xav rov qab tau cov apps, cov ntawv khaws cia, ram lossis ib qho ua ke ntawm cov no. Tom qab ntawv xaiv qhov thaub qab uas koj xav tau los ntawm koj lub laij lej thiab nias OK. Tos ob peb feeb (nyob ntawm seb muaj ntau npaum li cas cov program thiab apps thiab cov khoom nws xav tau theej) thiab koj ua tiav.

Pom zoo: