tag:blogger.com,1999:blog-49863149089037584202024-02-20T16:51:24.520-08:002n E informàticaNazaret de las HerasNazaret de las Herashttp://www.blogger.com/profile/05652467288813043511noreply@blogger.comBlogger132125tag:blogger.com,1999:blog-4986314908903758420.post-22802464624155628832012-04-24T13:55:00.000-07:002012-05-22T14:29:29.829-07:00Analisis de funcions 2Hui ja ha sigut el ultim dia de Derive. Hem tingut la reunió i el proxim dia començarem a organitzar-nos pr preparar la acomiadada. Hem fet fins on hem arribat del treball. He fet els punts de cort i les asintotes. A la simetria a trucat la cmpana. Hem compartit el treball amb Ricardo, a llocs de xarxa.Nazaret de las Herashttp://www.blogger.com/profile/05652467288813043511noreply@blogger.com0tag:blogger.com,1999:blog-4986314908903758420.post-49815443294272451262012-04-23T13:03:00.000-07:002012-05-22T13:52:53.597-07:00Analisis de funcionshttp://issuu.com/auxiliadoratic/docs/funciones/1<br />
Aquesta URL et porta directament a la direcció web de l'enunciat de l'exercici proposat com a ultim de el programa Derive. Hem fet els primers apartats del full fins a les asintotes, on se m'ha acabat la classe. He tingut un problema amb la gràfica i he tornat a començar. Hem fet la ecuació racional. Demà farem més.Nazaret de las Herashttp://www.blogger.com/profile/05652467288813043511noreply@blogger.com0tag:blogger.com,1999:blog-4986314908903758420.post-39119996027161888212012-04-19T12:58:00.000-07:002012-05-22T13:03:33.229-07:00Matrius i determinantsHui hem treballat ja amb determinant i matrius. Hem fet el punt 7 de les opcions de Ricardo: <i>Vectores y matrices</i>.<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj5jQTrREUOfIkvtmxTLmJr-saxddsmvsQuss57TNWLz1onH4VKyZFyIpsUcbR8bjuoHa22_KUTwUXEZgehN3WFp9MnHTcJ9Ap4Ps6d66USXh9kcsruP74G6B7V0CABYQcvAqMoYljYeIrd/s1600/Dibujo.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj5jQTrREUOfIkvtmxTLmJr-saxddsmvsQuss57TNWLz1onH4VKyZFyIpsUcbR8bjuoHa22_KUTwUXEZgehN3WFp9MnHTcJ9Ap4Ps6d66USXh9kcsruP74G6B7V0CABYQcvAqMoYljYeIrd/s1600/Dibujo.JPG" /></a></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhH7Gc_Z4CleNcTsFL1CKq0s75u4RFQ-AhBu22mo5oypEI3UIMe7uLg6pF2iTwvsRl2kBnqNqC16Q-5tihQ1rTVVnsgyshqT5hrP6oiWkDUEpv8ateX24qKs4x-TBwClFArSh5tfHwGR3Z4/s1600/Dibujo2+(1).JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhH7Gc_Z4CleNcTsFL1CKq0s75u4RFQ-AhBu22mo5oypEI3UIMe7uLg6pF2iTwvsRl2kBnqNqC16Q-5tihQ1rTVVnsgyshqT5hrP6oiWkDUEpv8ateX24qKs4x-TBwClFArSh5tfHwGR3Z4/s1600/Dibujo2+(1).JPG" /></a></div>
<div class="separator" style="clear: both; text-align: left;">
Ens ajuda molt que aquestos temes de les matematiques els acavem de donar fa pocs dies, i, aleshores, el tenim prou fresquet i ens assabentem de com fer els exercicis. El mes fàstic de les matrius i els determinants es inroduir els números.</div>
<div class="separator" style="clear: both; text-align: left;">
La setmana que ve començarem amb un treball més elaborat per a comprobar l'enteniment del programa.</div>
<br />Nazaret de las Herashttp://www.blogger.com/profile/05652467288813043511noreply@blogger.com0tag:blogger.com,1999:blog-4986314908903758420.post-85208620870762424312012-04-18T02:43:00.000-07:002012-05-22T12:58:34.887-07:00Ecuacions, limits...<div class="separator" style="clear: both; text-align: left;">
Hui hem continuat amb exercicis del Derive, dels explicats al blog d'informàtica. Ricardo anava demanant i nosaltres els feiem.</div>
<div class="separator" style="clear: both; text-align: left;">
Hem treballat ja representació de funcions en 2D i ecuacions. Després hem representat en 3D i hem fet limits i començat a derivar i integrar.</div>
<div class="separator" style="clear: both; text-align: left;">
Estic fent-ho tot en el mateix full per comprobar les acivitats ja fetes, poder entregar-ho tot junt i fer referencia a ecuacions introduides anteriorment.</div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgqABI05Mx-kVsFji1VQdzy9tXuulh5AYecmDcY2lOUwXp7-vRf5Gp0cNPUYPiMYAaGERMoC1JEAbkWvUzzpvKmS72Xr99iw54CQDWEUK28Ji4tHOvoZcHcPaX__5jI5L0kpdPYoN93AYc8/s1600/Dibujo.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="299" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgqABI05Mx-kVsFji1VQdzy9tXuulh5AYecmDcY2lOUwXp7-vRf5Gp0cNPUYPiMYAaGERMoC1JEAbkWvUzzpvKmS72Xr99iw54CQDWEUK28Ji4tHOvoZcHcPaX__5jI5L0kpdPYoN93AYc8/s400/Dibujo.JPG" width="400" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh40LI-MNKBpnKzPnbqcquPTMJ6aqJZQBlRGuWpjUc3y28BqvU5Uf4cd9Mk43OxTdk0JzHOJg5YpozjCNmHGxz-DqaaMFnY5xhVnemNNVqFkl5jSKmBiUDt7EiFKuu8ivaCUEWC5H864V26/s1600/Dibujo2.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="300" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh40LI-MNKBpnKzPnbqcquPTMJ6aqJZQBlRGuWpjUc3y28BqvU5Uf4cd9Mk43OxTdk0JzHOJg5YpozjCNmHGxz-DqaaMFnY5xhVnemNNVqFkl5jSKmBiUDt7EiFKuu8ivaCUEWC5H864V26/s400/Dibujo2.JPG" width="400" /></a></div>Nazaret de las Herashttp://www.blogger.com/profile/05652467288813043511noreply@blogger.com0tag:blogger.com,1999:blog-4986314908903758420.post-6437316641853500512012-04-17T02:33:00.001-07:002012-05-22T11:07:27.068-07:00Derive 6<div class="separator" style="clear: both; text-align: left;">
Hem arribat de les vacances de Pasqua però, amb un problema a l'assigantura d'informàtica. Es suposa que a aquesta data ja és temps per fer els videos i preparatius per a la Acomiadada de Batxillerat. El problema es que la direcció del col·legi no ens ha dit encara res. Aleshores, Ricardo ha tingut la genial idea de aprofitar el temps amb un interessant programa que ens pot fer bona funció als futurs estudis. Fins que siga la reunió que marcara el començament del treball de graduació, nosaltres aprendrem a emprar-lo.</div>
<div class="separator" style="clear: both; text-align: left;">
El derive 6 es un programa de càlcul. Te moltisimes opcions per a poder fer tot tipus d'operacions matemàtiques. Hui hem començat amb cosses prou bàsiques. De tota manera, Ricardo ens ha deixat uns apunts al blog i un munt d'exercicisenllestats, d'on ens anira dient quins fem. </div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgRljU1Y_AhYdAWXOWMgqh5DadzJK98Vx4vMMTJ5pVNJBK0hezvlY3nk2SHToC1zQpyqx7EssuXiQ59J5kOJgwm4yDPp1YG0ZPRRhhYdgTn5HrRRSn2HeNblT0f9dCRjBB2iadxDB-WA81z/s1600/Dibujo.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="300" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgRljU1Y_AhYdAWXOWMgqh5DadzJK98Vx4vMMTJ5pVNJBK0hezvlY3nk2SHToC1zQpyqx7EssuXiQ59J5kOJgwm4yDPp1YG0ZPRRhhYdgTn5HrRRSn2HeNblT0f9dCRjBB2iadxDB-WA81z/s400/Dibujo.JPG" width="400" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgAcP6Tsfd2J3pCnm3Vn8XrXOJ70FZ3LGuJRMnuW0gnR-B8pjrQknfL9X19rz1SQBZHXnV-3mmwXWNgLtm7VKD8KZ_3gZjo1GkBufayTKdFaRxj4bEFCtwLqv9fiQjw-o1tmqkFKT5K2cq4/s1600/Dibujo2.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="299" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgAcP6Tsfd2J3pCnm3Vn8XrXOJ70FZ3LGuJRMnuW0gnR-B8pjrQknfL9X19rz1SQBZHXnV-3mmwXWNgLtm7VKD8KZ_3gZjo1GkBufayTKdFaRxj4bEFCtwLqv9fiQjw-o1tmqkFKT5K2cq4/s400/Dibujo2.JPG" width="400" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
Hem aproximat, calculat, factoritzat i expandit diferents funcions. Demà més.</div>Nazaret de las Herashttp://www.blogger.com/profile/05652467288813043511noreply@blogger.com0tag:blogger.com,1999:blog-4986314908903758420.post-77230078199616946602012-04-03T07:55:00.000-07:002012-05-21T07:56:06.849-07:00Fi de programació<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj7oKwY97gwqepKAZ-0JazZ2XzzvYx764UnZtWaxcSA-T0WiYIC2Y2HaM8K_x3pD46_0oeQ30mWB3doU1CS6S95UYFsfM2d9Ibefg9pUJkEPVDHaxj_M6Ej5rhAMst-ub60Z3nGLolUrg9q/s1600/treball.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="238" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj7oKwY97gwqepKAZ-0JazZ2XzzvYx764UnZtWaxcSA-T0WiYIC2Y2HaM8K_x3pD46_0oeQ30mWB3doU1CS6S95UYFsfM2d9Ibefg9pUJkEPVDHaxj_M6Ej5rhAMst-ub60Z3nGLolUrg9q/s400/treball.JPG" width="400" /></a></div>
Ja està acabat i compartit.Nazaret de las Herashttp://www.blogger.com/profile/05652467288813043511noreply@blogger.com0tag:blogger.com,1999:blog-4986314908903758420.post-37496342734323029582012-04-02T07:50:00.000-07:002012-05-21T07:54:00.273-07:00Hui hem fet un recull de tots els programes de programació que ems fet fins ara. Amb captures de pantalla els he ordenat tots en imatges a un document de text de GoogleDocs. M'he a adonat que havien programes que no funcionaven correctament o que no estaven acabats. M'ha costat una mica reeditar eixos programes peruqè la meua forma de fer-los ha canviat prou des dels primers dies. Ara sòc més breu i directa. Demà supose acabar de fer aquesta recolecció i compartir-la amb Ricardo.<br />
També comentar que Ricardo va compartir l'altre dia les solucions de l'exmane, i les he comparades també amb el meu exmen, fixant-me en allò comú i allò diferent entre els dos.Nazaret de las Herashttp://www.blogger.com/profile/05652467288813043511noreply@blogger.com0tag:blogger.com,1999:blog-4986314908903758420.post-31563899051278017962012-03-29T01:29:00.001-07:002012-05-21T07:50:01.740-07:00LliureHui he tingut la classe lluire, perquè ja he acabat l'examen. Estic intentant ajudar els meus companys i comparar el meu programa amb altres que estan fets amb xicotetes diferències.Nazaret de las Herashttp://www.blogger.com/profile/05652467288813043511noreply@blogger.com0tag:blogger.com,1999:blog-4986314908903758420.post-61929036365665413492012-03-28T01:29:00.000-07:002012-05-21T07:47:47.662-07:00Versió 3 FactorialHui ja he finalitzat els programes de l'examen. He sigut la primera de la classe en fer-los els dos. Estic molt contenta perquè m'he adonat que he aprés molt de programació en aquest temps. Encara que es podien mirar els apunts i preguntar, només he preguntat dubtes amb les variables, cosa uqe no hem donat a classe. He aconseguit fer en una hora l'exercici de factorials. Anava a un bon camí, pero el rpograma se ficaba a un bucle infinit i es bloquetjava. He aconseguit donar-me compte de com fer-ho per que quedara bé. Ara tins un dia o dos de descans mentre la resta de la classe acaba els exercicis. Demà ajudare a Sara que esta una mica perduda amb el programa de factorials.Nazaret de las Herashttp://www.blogger.com/profile/05652467288813043511noreply@blogger.com0tag:blogger.com,1999:blog-4986314908903758420.post-72780040591450534432012-03-27T01:24:00.002-07:002012-05-21T07:44:31.396-07:00Versió 2 de SumaPositivosRicardo ja s'ha donat compte que el examen ha eixit horrible, i ens ha donat una nova oportunitat. Amb l'examen a la mà, hem d'anar actualitzant-lo dia a dia amb el FreePascal i resolent els errors. Hui, primer hem passar a Pascal el que haviem fet a paper, sense canviar res. Eixa era la versió 1. M'ha donat molta rabia veure errors que he comes, com punts comes i lletres... Però a l'hora de versionar-ho, l'he fet prou be. Avans que acabara la classe ja havia deixat fet el primer treball, que n oestaba res malament al paper, sols amb errors d'escriptura i als bucles. Demá faré la versió 3 i m'encarregarè del programa de factorials. Aquest si em dòna més por, la veritat.Nazaret de las Herashttp://www.blogger.com/profile/05652467288813043511noreply@blogger.com0tag:blogger.com,1999:blog-4986314908903758420.post-13925946693691198842012-03-26T01:24:00.000-07:002012-05-22T14:30:21.383-07:00Examen<br />
<div style="text-align: left;">
<span style="background-color: white; color: #4e4e4e; font-family: Arial, Helvetica, sans-serif; font-size: 15px; line-height: 20px;">Hui no hem pujat a l'aula d'informàtica. Era dia per a fer l'examen. L'examen era a paper, haviem de fer els algoritmes de dos programas explicats a l'enunciat i fer tambéel programa com l'escriuriem a Pascal. La veritat es que m'ha eixit prou malament, perque m'he envolicat a l'algoritme i al programa he cotmet molts errors.</span></div>
<span style="font-family: Arial, Helvetica, sans-serif;"><br /></span><br />
<span style="background-color: white; color: #4e4e4e; font-family: Arial, Helvetica, sans-serif; font-size: 15px; line-height: 20px; text-align: left;">Els programes havien d'obrirse amb la presentació i tindre repetició infinita.</span><br />
<span style="font-family: Arial, Helvetica, sans-serif;"><span style="background-color: white; color: #4e4e4e; font-size: 15px; line-height: 20px; text-align: left;">El primer programa tractaba de sumar números, que havien de ser sencers i possitius. He provat de fer-ho mitjansant funcions de condició, però no sabia ben be com possar que es realitzara la suma quan s'introduira el 0.</span><span style="background-color: white; color: #4e4e4e; font-size: 15px; line-height: 20px;"> </span></span><br />
<span style="font-family: Arial, Helvetica, sans-serif;"><br /></span><br />
<div class="separator" style="background-color: white; clear: both; color: #4e4e4e; font-size: 15px; line-height: 20px; text-align: center;">
<a href="http://2.bp.blogspot.com/-vpqToBcm3XA/T3IWmK4CipI/AAAAAAAAAtc/zqmkY9e35Rs/s1600/2.JPG" imageanchor="1" style="color: #6db0ce; margin-left: 1em; margin-right: 1em; text-decoration: none;"><span style="font-family: Arial, Helvetica, sans-serif;"><img border="0" height="135" src="http://2.bp.blogspot.com/-vpqToBcm3XA/T3IWmK4CipI/AAAAAAAAAtc/zqmkY9e35Rs/s320/2.JPG" style="border: none; position: relative;" width="320" /></span></a></div>
<div class="separator" style="background-color: white; clear: both; color: #4e4e4e; font-size: 15px; line-height: 20px; text-align: left;">
<span style="font-family: Arial, Helvetica, sans-serif;">El segon programa, que consistia en el calcul del factorial d'un número sencer, fou un autèntic caos. No tenia idea de com fero, i ni tan sols he acabat el algoritme. A aquest no he ficet la introducció que estaba ja possada al primer, però si es repetia infinitament.</span></div>
<div class="separator" style="background-color: white; clear: both; color: #4e4e4e; font-size: 15px; line-height: 20px; text-align: center;">
<a href="http://4.bp.blogspot.com/-SLjk6R_ZlwY/T3IXJ__0aJI/AAAAAAAAAtk/KwarIxF0j3E/s1600/3.JPG" imageanchor="1" style="color: #6db0ce; margin-left: 1em; margin-right: 1em; text-decoration: none;"><span style="font-family: Arial, Helvetica, sans-serif;"><img border="0" height="112" src="http://4.bp.blogspot.com/-SLjk6R_ZlwY/T3IXJ__0aJI/AAAAAAAAAtk/KwarIxF0j3E/s320/3.JPG" style="border: none; position: relative;" width="320" /></span></a></div>
<span style="font-family: Arial, Helvetica, sans-serif;"><br style="background-color: white; color: #4e4e4e; font-size: 15px; line-height: 20px;" /></span><br />
<div style="text-align: left;">
<span style="color: #4e4e4e;"><span style="font-family: Arial, Helvetica, sans-serif; line-height: 20px;">En resum, el examen no ha eixit bé. Havia esudiat com i quan possar les diferents opcions, però m'ha fallat principalment el plantetjament dels programes.</span></span></div>Nazaret de las Herashttp://www.blogger.com/profile/05652467288813043511noreply@blogger.com0tag:blogger.com,1999:blog-4986314908903758420.post-86705220337480358712012-03-22T09:39:00.000-07:002012-05-21T07:19:55.709-07:00Randomize amb repeticióJa tornem de les vacances de falles, i tornem amb un programa vell pero remasteritzat. El programa de endevinar un numero, amb repetició infinita i dient quantes oportunitats tens. El randomize que escollia un numero al atzar i havies d'endevinar-lo actualitzat amb repetició infinita en un bucle. No ha sigut dificil fer-ho, pero com que estem encara una miqueta de vacances, l'hem acabat hui. És a dir, ens ha llevat dos dies. A vore que fem demà.<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjh9nWbvmWq3ZHQYa1ZwGEAqh1KsRXPzW9za1ln2Mzw8JyVPd2qkULaMictreZ-ZTp2a8CxFMk5sz_XpyGEvG4TVBbm7-kr7s4BLmynXNN8vH-Okey-IrB2wyrwn57HVqZrN9DjuHlFC9nD/s1600/Endevinar_2.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="400" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjh9nWbvmWq3ZHQYa1ZwGEAqh1KsRXPzW9za1ln2Mzw8JyVPd2qkULaMictreZ-ZTp2a8CxFMk5sz_XpyGEvG4TVBbm7-kr7s4BLmynXNN8vH-Okey-IrB2wyrwn57HVqZrN9DjuHlFC9nD/s400/Endevinar_2.JPG" width="381" /></a></div>
<br />Nazaret de las Herashttp://www.blogger.com/profile/05652467288813043511noreply@blogger.com0tag:blogger.com,1999:blog-4986314908903758420.post-9538506959578342532012-03-13T03:39:00.000-07:002012-05-21T07:16:50.386-07:00VectorsAhir vam començar un nou programa. Aci la dificultat ja es prou major. Es tracta d'un programa amb vectors. Em que més m'esta costant es entendre com s'ha de fer i per que. S'empren vectors numerats amb diferents elements cadascun (x, y, z, t...).<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh0dIg9-ZC6oR-HGbcKc9EntpulWCCPNC_9bXJhE9tB-M4vv-gPH721Qv-A0zoXfHyy-cHqzzY-d1JHdMfRSfov4aL9z1dWVgTMYZErs0pnBPoRPv_bcQABofco2G52yg8jpg7O1UKh6S2z/s1600/Captura.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="156" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh0dIg9-ZC6oR-HGbcKc9EntpulWCCPNC_9bXJhE9tB-M4vv-gPH721Qv-A0zoXfHyy-cHqzzY-d1JHdMfRSfov4aL9z1dWVgTMYZErs0pnBPoRPv_bcQABofco2G52yg8jpg7O1UKh6S2z/s400/Captura.JPG" width="400" /></a></div>
<br />
Ahir fèrem l'algoritme amb ajuda da Ricardo, i hui comencem a programar-lo. Em sembla prou dificil fer-ho, pero, a poc a poc, aconsegueix solucionar els errors.<br />
El programa comença amb una condició en la qual es distingueix entre les dos opcions, completament intependents. Tot el programa també te la opció de repetició infinita.<br />
La primera opció consisteix en el càlcul de la suma (s:=v[1]+v[2]+v[3]+v[4]+v[5]) i la mitjana (m:=s/5) d'un vector de cinc components, també amb la funció for.<br />
Per a la segona opció, he emprat la expressió for per a introduir els elements, i passar al següent vector. El programa calcula la suma (vT[i]:=v1[i]+v2[i]), el producte escalar (pe:=v1[1]*v2[1]+v1[2]*v2[2]+v1[3]*v2[3]) i els mòduls dels dos vectors (mv:=sqr(sqrt(v[i])).<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg4GH_585VUTMEHJ0Swdoyf1nOXBzEodnWcXWUPoMH2e6PlHrXfoWPfwKnkxQBGcEKEjOMRugS9LQ5h6prr_zoJHg8l0BX5mvZV_ETnOSxFBWjl9gB3Wqi7PTnkV9BNjeWER5Cb2TeiwCVi/s1600/vectores_3.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="238" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg4GH_585VUTMEHJ0Swdoyf1nOXBzEodnWcXWUPoMH2e6PlHrXfoWPfwKnkxQBGcEKEjOMRugS9LQ5h6prr_zoJHg8l0BX5mvZV_ETnOSxFBWjl9gB3Wqi7PTnkV9BNjeWER5Cb2TeiwCVi/s400/vectores_3.JPG" width="400" /></a></div>
<div class="separator" style="clear: both; text-align: left;">
He posat una condició per que quan no s'escollisca ni la opció a ni la b, isca un missatge que diu: "Perdona, no te entendido de nuevo, ¿puedes repetirlo?", i torne a la selecció de la opció.</div>Nazaret de las Herashttp://www.blogger.com/profile/05652467288813043511noreply@blogger.com0tag:blogger.com,1999:blog-4986314908903758420.post-24816007878321031612012-03-07T09:34:00.000-08:002012-05-21T03:38:48.562-07:00Programes amb buclesHui hem emprat la classe en passar tots els algoritmes de les tables a Pascal. Haviem començat ja i sols hem acavat de passar-los i comprovat que funcionaven tots despres de netejar els errors. No m'ha emprat molt de temps mirant els algoritmes i els exemples de la explicació teòrica i hge tingut també per ajudar als meus companys. Els errors més importants son els punts (.) i els punts i comes (;), que no se mai on posar-los i els coloque arbitrariament més o mens fins que em funciona.<br />
Demà continuarem amb açò i farem també amb cualsevol d'aquestos tres programes el de repetició infinita.<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEikmjjT5oT-TvVCJgLq5Ru9nzrLpBo7lz3lAVRa-HoRAOWqm002dY22QNnXeO-uBzSaN0Z7JNTWB_GpxHozGMzBSpEvowZmb6yzFR12Xl_1c3SclOCg85b30eZBSe4Sr95H4590dvp3oW6e/s1600/Tablarepeat.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="231" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEikmjjT5oT-TvVCJgLq5Ru9nzrLpBo7lz3lAVRa-HoRAOWqm002dY22QNnXeO-uBzSaN0Z7JNTWB_GpxHozGMzBSpEvowZmb6yzFR12Xl_1c3SclOCg85b30eZBSe4Sr95H4590dvp3oW6e/s400/Tablarepeat.JPG" width="400" /></a></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhZ6Ag9ZvF59XoRJ-KdUMSJf4cKbLP932TyY11i-WPRiI0z2xRJvad-q8v6dSBYrTCtsUdoShWIvixZ99gg3nXxNaNJPphxhJeo4YEQTVU25NGOV_JHgq0W8MLThMZoRbEWimEppue2Brem/s1600/Tablawhile.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="225" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhZ6Ag9ZvF59XoRJ-KdUMSJf4cKbLP932TyY11i-WPRiI0z2xRJvad-q8v6dSBYrTCtsUdoShWIvixZ99gg3nXxNaNJPphxhJeo4YEQTVU25NGOV_JHgq0W8MLThMZoRbEWimEppue2Brem/s400/Tablawhile.JPG" width="400" /></a></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi7H3wzSCO3fGzoCGZCCUi9V8Z5dDK5hPZb3hj_hb5wtk4eRyJT3DptzfCjiuVLRrSCdqtz21jygkgMuJa2ttVOHNUGsw8bk-N2ciN4lX-MbMvAMVwYDQXcjfaM8kCTW50BhY3YCfusBGgf/s1600/tabla2.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="221" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi7H3wzSCO3fGzoCGZCCUi9V8Z5dDK5hPZb3hj_hb5wtk4eRyJT3DptzfCjiuVLRrSCdqtz21jygkgMuJa2ttVOHNUGsw8bk-N2ciN4lX-MbMvAMVwYDQXcjfaM8kCTW50BhY3YCfusBGgf/s400/tabla2.JPG" width="400" /></a><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgzmFm5hikW_fLYMR9YIarcfdRawOS6fBHf6zl_EYZ1tti2MB1zDkyzt5LfFzfVxefZGE_j0dteAmLf-AKkhiDygMC_slpAQZenLzRubS1AlJ3lpgatoes1ByZJOxlgmPMgmuIcrcgm9fFD/s1600/Tablafor.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="187" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgzmFm5hikW_fLYMR9YIarcfdRawOS6fBHf6zl_EYZ1tti2MB1zDkyzt5LfFzfVxefZGE_j0dteAmLf-AKkhiDygMC_slpAQZenLzRubS1AlJ3lpgatoes1ByZJOxlgmPMgmuIcrcgm9fFD/s400/Tablafor.JPG" width="400" /></a></div>
<br />Nazaret de las Herashttp://www.blogger.com/profile/05652467288813043511noreply@blogger.com0tag:blogger.com,1999:blog-4986314908903758420.post-2640548326049152792012-03-06T23:32:00.003-08:002012-05-21T03:15:37.624-07:00Bucles<div class="separator" style="clear: both; text-align: center;">
</div>
<div style="text-align: -webkit-auto;">
<span style="font-family: Arial; font-size: 15px; vertical-align: baseline; white-space: pre-wrap;">I ara, amb açò, dir que ahir començàrem a fer diferents programes amb el mateix resultat pero utilitzant els diferents bucles.</span></div>
<blockquote class="tr_bq" style="text-align: -webkit-auto;">
<span style="font-family: Arial; font-size: 15px; white-space: pre-wrap;">L'emprarem per a fer les taules de multiplicar. Fèrem una amb repeat, altra amb for i una altra amb while, i observarem el diferent funcionament i com s'escriu cadascuna d'una forma diferent.</span></blockquote>
<div style="text-align: -webkit-auto;">
<span style="font-size: 15px; vertical-align: baseline;"><span style="font-family: Arial;"><span style="white-space: pre-wrap;">
</span></span></span></div>
<div class="separator" style="background-color: white; clear: both; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; line-height: 19px;">
<span style="font-size: 15px; vertical-align: baseline;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi9CrxBuSLFSnnRVZAULX-0BFmfi1p8JnjzpihdbOc2WlukJqEw7oCp7SIciCyNWFaG0NVVJdpDiYz4FBzwVA1vPD0s3bsiQJyv41V17Ayvx0jwNO16ACtwXD55VILF05QGfrolPMuT8bCm/s1600/Dibujo.JPG" imageanchor="1" style="color: #6699cc; margin-left: 1em; margin-right: 1em; text-decoration: none;"><img border="0" height="300" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi9CrxBuSLFSnnRVZAULX-0BFmfi1p8JnjzpihdbOc2WlukJqEw7oCp7SIciCyNWFaG0NVVJdpDiYz4FBzwVA1vPD0s3bsiQJyv41V17Ayvx0jwNO16ACtwXD55VILF05QGfrolPMuT8bCm/s400/Dibujo.JPG" style="border: none; position: relative;" width="400" /></a></span></div>
<div style="text-align: -webkit-auto;">
<span style="font-size: 15px; vertical-align: baseline;"><a href="http://salesianasinformatica.blogspot.com/2012/03/algoritmos-2-bucles.html" style="background-color: white; color: #6699cc; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; line-height: 19px; text-decoration: none;">http://salesianasinformatica.blogspot.com/2012/03/algoritmos-2-bucles.html</a></span></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
</div>
<div class="separator" style="clear: both; text-align: center;">
</div>
<div class="separator" style="clear: both; text-align: center;">
</div>Nazaret de las Herashttp://www.blogger.com/profile/05652467288813043511noreply@blogger.com0tag:blogger.com,1999:blog-4986314908903758420.post-89381246487360295142012-03-06T14:43:00.000-08:002012-05-21T03:14:40.289-07:00Bucles<span id="internal-source-marker_0.1782516627572477"></span><br />
<h1 dir="ltr">
<span style="font-family: Arial; font-weight: normal; vertical-align: baseline; white-space: pre-wrap;"><span style="font-size: small;">Aquestes sòn les indicacions teoriques per a fer els tres diferents bucles que es poder programar:</span></span></h1>
<div>
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiCfHa0wyUpYQWFRYVxDptMTpN7FRMTuz4PZcoU8zaExwkrGa-UV0-sLa5RWbWU38Mtpj56Acuae7dgJTr00VJjLkVRK0L9oEKFMwLavDny4GwCECxbtUI8zsD0uvzcBLlPsm7RoYzzLrcs/s1600/while.JPG" imageanchor="1" style="clear: right; float: right; margin-bottom: 1em; margin-left: 1em;"><img border="0" height="314" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiCfHa0wyUpYQWFRYVxDptMTpN7FRMTuz4PZcoU8zaExwkrGa-UV0-sLa5RWbWU38Mtpj56Acuae7dgJTr00VJjLkVRK0L9oEKFMwLavDny4GwCECxbtUI8zsD0uvzcBLlPsm7RoYzzLrcs/s320/while.JPG" width="320" /></a><span style="font-family: Arial; font-weight: normal; vertical-align: baseline; white-space: pre-wrap;"><span style="font-size: small;"><br />
</span></span></div>
<h1 dir="ltr" style="font-weight: bold;">
<span style="font-family: Arial; font-size: 24px; vertical-align: baseline; white-space: pre-wrap;">While</span></h1>
<br />
<br />
<span style="font-family: Arial; font-size: 15px; font-weight: normal; vertical-align: baseline; white-space: pre-wrap;"></span><span style="font-family: Arial; font-size: 15px; font-weight: bold; vertical-align: baseline; white-space: pre-wrap;">While Condicion do</span><br />
<span style="font-family: Arial; font-size: 15px; font-weight: bold; vertical-align: baseline; white-space: pre-wrap;">Sentencia</span><br />
<b><span style="font-family: Arial; font-size: 15px; vertical-align: baseline; white-space: pre-wrap;"></span></b><br />
<span style="color: blue; font-family: Arial; font-size: 15px; font-weight: bold; vertical-align: baseline; white-space: pre-wrap;">a:=1;</span><br />
<span style="font-family: Arial; font-size: 15px; font-weight: normal; vertical-align: baseline; white-space: pre-wrap;">while </span><span style="color: #1c4587; font-family: Arial; font-size: 15px; font-weight: bold; vertical-align: baseline; white-space: pre-wrap;">a<=10</span><span style="font-family: Arial; font-size: 15px; font-weight: normal; vertical-align: baseline; white-space: pre-wrap;"> do</span><br />
<span style="font-family: Arial; font-size: 15px; font-weight: normal; vertical-align: baseline; white-space: pre-wrap;">begin</span><br />
<span style="font-family: Arial; font-size: 15px; font-weight: normal; vertical-align: baseline; white-space: pre-wrap;"> <span class="Apple-tab-span" style="white-space: pre;"> </span>writeln (a);</span><br />
<span style="font-family: Arial; font-size: 15px; font-weight: normal; vertical-align: baseline; white-space: pre-wrap;"> <span class="Apple-tab-span" style="white-space: pre;"> </span></span><span style="color: #ff9900; font-family: Arial; font-size: 15px; font-weight: bold; vertical-align: baseline; white-space: pre-wrap;">a:=a+1;</span><br />
<span style="font-family: Arial; font-size: 15px; font-weight: normal; vertical-align: baseline; white-space: pre-wrap;">end;</span><br />
<span style="font-family: Arial; font-size: 15px; font-weight: normal; vertical-align: baseline; white-space: pre-wrap;"></span><br />
<br />
<b id="internal-source-marker_0.1782516627572477" style="font-weight: bold;"></b><br />
<h1 dir="ltr" style="display: inline !important;">
<b id="internal-source-marker_0.1782516627572477" style="font-weight: bold;"><span style="font-family: Arial; font-size: 24px; vertical-align: baseline; white-space: pre-wrap;">Repeat</span></b></h1>
<span style="font-family: Arial; font-size: 15px; font-weight: bold; vertical-align: baseline; white-space: pre-wrap;">Repeat Sentencia</span><br />
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiUNlnNWVL_Qeoydwdx_E2Zu3Ic7d91tS8hDCyw49halYK4QDO40smlFiOV14y2gZTQXlymkO2m3O5XlRmVYw4JP7-E-BpEnDwXq64hyKETbzladdlBktFN8Y7PZLilFNui4LbhGrClLuu1/s1600/repeat.JPG" imageanchor="1" style="clear: right; float: right; margin-bottom: 1em; margin-left: 1em;"><img border="0" height="320" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiUNlnNWVL_Qeoydwdx_E2Zu3Ic7d91tS8hDCyw49halYK4QDO40smlFiOV14y2gZTQXlymkO2m3O5XlRmVYw4JP7-E-BpEnDwXq64hyKETbzladdlBktFN8Y7PZLilFNui4LbhGrClLuu1/s320/repeat.JPG" width="308" /></a><span style="font-family: Arial; font-size: 15px; font-weight: bold; vertical-align: baseline; white-space: pre-wrap;">until Condicion</span><br />
<b><span style="font-family: Arial; font-size: 15px; vertical-align: baseline; white-space: pre-wrap;"></span></b><span style="font-family: Arial; font-size: 15px; font-weight: normal; vertical-align: baseline; white-space: pre-wrap;"></span><br />
<span style="font-family: Arial; font-size: 15px; font-weight: normal; vertical-align: baseline; white-space: pre-wrap;">a:=1;</span><br />
<span style="font-family: Arial; font-size: 15px; font-weight: normal; vertical-align: baseline; white-space: pre-wrap;">repeat</span><br />
<span style="font-family: Arial; font-size: 15px; font-weight: normal; vertical-align: baseline; white-space: pre-wrap;"> <span class="Apple-tab-span" style="white-space: pre;"> </span>writeln(a);</span><br />
<span style="font-family: Arial; font-size: 15px; font-weight: normal; vertical-align: baseline; white-space: pre-wrap;"> <span class="Apple-tab-span" style="white-space: pre;"> </span>a:=a+1;</span><br />
<span style="font-family: Arial; font-size: 15px; font-weight: normal; vertical-align: baseline; white-space: pre-wrap;">until a>10;</span><br />
<span style="font-family: Arial;"><span style="font-size: 15px; white-space: pre-wrap;"><br />
</span></span><br />
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjv7I5nbVwrMAvE0pv2xuj2aWz18eKsmC2ylYMzzz_BrlyefLue7en_aovjuAyig4D9cgsiQCQ8E188huFbR2C-CCVrSZyOjK0g9vkd5A9XMSP53AUIW-rYqiECWuhcy-b2o9gDp_AMZImJ/s1600/for.JPG" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" height="320" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjv7I5nbVwrMAvE0pv2xuj2aWz18eKsmC2ylYMzzz_BrlyefLue7en_aovjuAyig4D9cgsiQCQ8E188huFbR2C-CCVrSZyOjK0g9vkd5A9XMSP53AUIW-rYqiECWuhcy-b2o9gDp_AMZImJ/s320/for.JPG" width="160" /></a><span style="font-family: Arial;"><span style="font-size: 15px; white-space: pre-wrap;"><br />
</span></span><br />
<h1 dir="ltr" style="font-weight: bold;">
<span style="font-family: Arial; font-size: 24px; vertical-align: baseline; white-space: pre-wrap;">For</span></h1>
<span style="font-family: Arial; font-size: 15px; font-weight: bold; vertical-align: baseline; white-space: pre-wrap;">For i:= Valor Inicial to Valor Final do</span><br />
<span style="font-family: Arial; font-size: 15px; font-weight: bold; vertical-align: baseline; white-space: pre-wrap;">Sentencia</span><br />
<span style="font-family: Arial; font-size: 15px; font-weight: normal; vertical-align: baseline; white-space: pre-wrap;"></span><span style="font-family: Arial; font-size: 15px; font-weight: normal; vertical-align: baseline; white-space: pre-wrap;"></span><span style="font-family: Arial; font-size: 15px; font-weight: normal; vertical-align: baseline; white-space: pre-wrap;"></span><br />
<span style="font-family: Arial; font-size: 15px; font-weight: normal; vertical-align: baseline; white-space: pre-wrap;">For </span><span style="color: blue; font-family: Arial; font-size: 15px; font-weight: bold; vertical-align: baseline; white-space: pre-wrap;">a:=1</span><span style="font-family: Arial; font-size: 15px; font-weight: normal; vertical-align: baseline; white-space: pre-wrap;"> </span><span style="color: #ff9900; font-family: Arial; font-size: 15px; font-weight: bold; vertical-align: baseline; white-space: pre-wrap;">to </span><span style="color: #1c4587; font-family: Arial; font-size: 15px; font-weight: bold; vertical-align: baseline; white-space: pre-wrap;">10</span><span style="font-family: Arial; font-size: 15px; font-weight: normal; vertical-align: baseline; white-space: pre-wrap;"> do</span><br />
<span style="font-family: Arial; font-size: 15px; font-weight: normal; vertical-align: baseline; white-space: pre-wrap;">Begin</span><br />
<span style="font-family: Arial; font-size: 15px; font-weight: normal; vertical-align: baseline; white-space: pre-wrap;"> <span class="Apple-tab-span" style="white-space: pre;"> </span>Writeln(a);</span><br />
<span style="font-family: Arial; font-size: 15px; font-weight: normal; vertical-align: baseline; white-space: pre-wrap;">End;</span><span style="font-family: Tahoma; font-size: 21px; font-weight: normal; vertical-align: baseline; white-space: pre-wrap;"></span><br />
<span style="font-family: Arial; font-size: 15px; font-weight: normal; vertical-align: baseline; white-space: pre-wrap;"></span><br />
<span style="font-family: Arial; font-size: 15px; font-weight: normal; vertical-align: baseline; white-space: pre-wrap;">Aunque el algoritmo real del for y del while son casi identicos a la hora de la implementacion del programa, la </span><span style="color: blue; font-family: Arial; font-size: 15px; font-weight: bold; vertical-align: baseline; white-space: pre-wrap;">asignacion inicial</span><span style="font-family: Arial; font-size: 15px; font-weight: normal; vertical-align: baseline; white-space: pre-wrap;">, la </span><span style="color: #1c4587; font-family: Arial; font-size: 15px; font-weight: bold; vertical-align: baseline; white-space: pre-wrap;">condicion </span><span style="font-family: Arial; font-size: 15px; font-weight: normal; vertical-align: baseline; white-space: pre-wrap;">(sólo es en el while pues en el for es unicamente un “conteo”) y la </span><span style="color: #ff9900; font-family: Arial; font-size: 15px; font-weight: bold; vertical-align: baseline; white-space: pre-wrap;">asignacion incremental </span><span style="font-family: Arial; font-size: 15px; font-weight: normal; vertical-align: baseline; white-space: pre-wrap;">(en el for va ya incluida en la instruccion en si) se hacen de forma diferente </span><br />
<br />
<br />
<span style="font-family: Arial; font-size: 24px; font-weight: bold; white-space: pre-wrap;">Bucle para hacer que un programa se repita hasta que nosotros queramos:</span><br />
<span style="font-family: Arial; font-size: 15px; font-weight: normal; vertical-align: baseline; white-space: pre-wrap;"><br />
</span><br />
<span style="font-family: Arial; font-size: 15px; font-weight: normal; vertical-align: baseline; white-space: pre-wrap;">Program zzz;</span><br />
<span style="font-family: Arial; font-size: 15px; font-weight: normal; vertical-align: baseline; white-space: pre-wrap;">uses crt;</span><br />
<span style="font-family: Arial; font-size: 15px; font-weight: normal; vertical-align: baseline; white-space: pre-wrap;">var a:char;</span><br />
<span style="font-family: Arial; font-size: 15px; font-weight: normal; vertical-align: baseline; white-space: pre-wrap;">Begin</span><br />
<span style="font-family: Arial; font-size: 15px; font-weight: normal; vertical-align: baseline; white-space: pre-wrap;"> Repeat</span><span style="font-family: Arial; font-size: 15px; font-weight: normal; vertical-align: baseline; white-space: pre-wrap;"> </span><br />
<span style="font-family: Arial; font-size: 15px; font-weight: normal; vertical-align: baseline; white-space: pre-wrap;"> write (‘Deseas volver a ejecutar el programa S/N? ‘); </span><br />
<span style="font-family: Arial; font-size: 15px; font-weight: normal; vertical-align: baseline; white-space: pre-wrap;"> a:=readkey;</span><br />
<span style="font-family: Arial; font-size: 15px; font-weight: normal; vertical-align: baseline; white-space: pre-wrap;"> until a in [‘n’,’N’];</span><br />
<span style="font-family: Arial; font-size: 15px; font-weight: normal; vertical-align: baseline; white-space: pre-wrap;">End.</span>Nazaret de las Herashttp://www.blogger.com/profile/05652467288813043511noreply@blogger.com0tag:blogger.com,1999:blog-4986314908903758420.post-503303845727710832012-03-01T09:31:00.000-08:002012-05-21T03:04:18.658-07:00Randomize<div style="text-align: left;">
<span style="color: #4e4e4e;"><span style="line-height: 20px;"><span style="font-family: Arial, Helvetica, sans-serif;"><br />Ahir vam acavar el programa de óptica. Vaig fer-ho amb l'algoritme que havia pujat Ricardo, contemplant les diferents opcions uqe ell havia possat. Vaig trobar tots els errors. Em donava també error a les designacions de les variables, però Ricardo les va arreglar. (integer, real, short, large...).</span></span></span></div>
<div style="text-align: left;">
<span style="color: #4e4e4e;"><span style="line-height: 20px;"><span style="font-family: Arial, Helvetica, sans-serif;">Hui hem aprés una nova funció: el <i>randomize</i>. Aquesta opció tria nombres a l'atzar dins d'un interval: Per exeple, n1:=random(9)+1 ( del 1 al 10), ó n2:=random(10) (del 0 al 11). El número del parénteris es uan unidad menso que el número más alto de lintervalo. Fuera del paréntesis se suma en número más bajo del intervalo (si no se suma nada es desde cero, y si se queire empezar por el uno, debe sumarse 1).</span></span></span></div>
<div style="text-align: left;">
<span style="color: #4e4e4e; font-family: Arial, Helvetica, sans-serif;"><span style="line-height: 20px;">El programa que hem de fer consisteix en endevinar un numero que el programa tria arbitrariament. Per a fer-hom, tenim un nombre màxim d'intents.<span style="font-size: 15px;"> No ho he acabat perquè m'han eixit molts errors i no entenia prou bé com solucionar-los. Demà intentare acabar.</span></span></span></div>Nazaret de las Herashttp://www.blogger.com/profile/05652467288813043511noreply@blogger.com0tag:blogger.com,1999:blog-4986314908903758420.post-27399051596774734752012-02-28T02:41:00.001-08:002012-05-21T03:03:35.031-07:00Óptica<div class="separator" style="clear: both; text-align: center;">
</div>
<div class="separator" style="clear: both; text-align: center;">
</div>
<div class="separator" style="clear: both; text-align: center;">
</div>
<div class="separator" style="clear: both; text-align: center;">
</div>
<div class="" style="clear: both; text-align: left;">
</div>
<div class="separator" style="clear: both; text-align: center;">
</div>
Hui, com sempre, comença la classe instalant el freepascal. Hem intentat introduir el algoritme que vam fer l'altre dia. ha donat un munt d'errors uqe poquet a poquet he pogut anar solucionant.<br />
<div class="separator" style="clear: both; text-align: center;">
</div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiKOLPLRyB29464EOJ8-z7NA2P4lEOicDJ_VUc_TvI1GgFBidE1L-fq0ENaDXb6fskiJ5bFC8izvfbKXd563ApkKZZy4Kz1Iq69IVUece-KFfsEG5z0RrmsVsrjDtTiSw1gH53OgqKQmcAl/s1600/Dibujo.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="240" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiKOLPLRyB29464EOJ8-z7NA2P4lEOicDJ_VUc_TvI1GgFBidE1L-fq0ENaDXb6fskiJ5bFC8izvfbKXd563ApkKZZy4Kz1Iq69IVUece-KFfsEG5z0RrmsVsrjDtTiSw1gH53OgqKQmcAl/s320/Dibujo.JPG" width="320" /></a></div>
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiVF6LKeavwoTZQVTOZpkAbG-_tkEResWhADH8K4NIQtmOsFTaieuRklqlaWmEMTGFBPTmp5dDYelJmfC3cT2API6otQ9Wj6gFL6Pw9RWk7-qyozvA90zkrKhIaxqftf-aRF0tAu3qQ2i-K/s1600/gfh.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="240" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiVF6LKeavwoTZQVTOZpkAbG-_tkEResWhADH8K4NIQtmOsFTaieuRklqlaWmEMTGFBPTmp5dDYelJmfC3cT2API6otQ9Wj6gFL6Pw9RWk7-qyozvA90zkrKhIaxqftf-aRF0tAu3qQ2i-K/s320/gfh.JPG" width="320" /></a><br />
<div class="" style="clear: both; text-align: left;">
El problema ve després... quan Ricardo ens ha dit uqe habia pujar el algoritme correcte al blog, i comprobant-ho, m'he adonat que no havia contemplar la opció de que quan so=f, no existeix imatge... aleshores podriem dir uqe falta aço a l'algoritme, i una condició al programa.</div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhY3OLBdcjY8j4fEI0UtPKIWH29Sqq_qTKzrJKy_dP4GY5OUgl_xG4DmCZRXGEuLlY4yybWHJ28gro4-f5ZD-KE8Etgj1NlxSyEad4OIhVNVkGY3A7lzpDczqKNVgjAxWfeWT9LdCGISo5c/s1600/18.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="230" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhY3OLBdcjY8j4fEI0UtPKIWH29Sqq_qTKzrJKy_dP4GY5OUgl_xG4DmCZRXGEuLlY4yybWHJ28gro4-f5ZD-KE8Etgj1NlxSyEad4OIhVNVkGY3A7lzpDczqKNVgjAxWfeWT9LdCGISo5c/s320/18.JPG" width="320" /></a></div>
<div class="" style="clear: both; text-align: left;">
<br /></div>
<div class="" style="clear: both; text-align: left;">
<br /></div>Nazaret de las Herashttp://www.blogger.com/profile/05652467288813043511noreply@blogger.com0tag:blogger.com,1999:blog-4986314908903758420.post-31422972166056833922012-02-27T04:50:00.001-08:002012-05-21T07:36:47.231-07:00Comencem amb problemes de fisicaHui hem començat per acabar els codecs de l'ultim programa. La salutació amb colors de text.<br />
Després Ricardo ens ha propossat un algoritme<span style="color: red;"></span> bastant més complicat. L'hem fet per grupets. Sara i jo l'hem intentat. Ens ha quedat una mica enrevesat però jo crec que funcionarà. És molt dificil perque hi ha que tindre en compte moltes cosses:<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhXURWlgzOSvYqlI-v8xOFgnSS5cTttcEyIthkByT9dEj9rY9JPyWEhhOC7tkLFbUpzI3u09FMrYlfPE8Dp-riCTQuRFfHu_CSI_jNcuDa5kpL62UyXeWZvjk-_oP-1eDnJqSzkBJYNkuNr/s1600/17.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="157" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhXURWlgzOSvYqlI-v8xOFgnSS5cTttcEyIthkByT9dEj9rY9JPyWEhhOC7tkLFbUpzI3u09FMrYlfPE8Dp-riCTQuRFfHu_CSI_jNcuDa5kpL62UyXeWZvjk-_oP-1eDnJqSzkBJYNkuNr/s400/17.JPG" width="400" /></a></div>Nazaret de las Herashttp://www.blogger.com/profile/05652467288813043511noreply@blogger.com0tag:blogger.com,1999:blog-4986314908903758420.post-69455473050047990782012-02-23T05:22:00.004-08:002012-03-25T05:02:11.073-07:00Investigant i aprenentHui je hem pujat a la classe a provar de fer els programes i compilar-los. El problema dels ordinadors del col·legi és que no es pot instalar res. Quan instales un programa, al apagar l'ordinador s'esborra. Aleshores, haurem de instalar tots eld dies el free pascal, que esta descarregat i preparat per instalar a els llocs de xarxa.<br />
<div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhjhsa0maN63jZkb8OgxM2e4LSf1yTpWQ0qcSfOz5hdZ1wyciyYhtbClhHs_q3WB7zo4NrDXvTF6ETwvNeUnSC4M-E-FYYlUOOZQo1OYCaP-zT8jRsFLmCU99uFHtiXw3Btvz__gGl5lU_C/s1600/14.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="165" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhjhsa0maN63jZkb8OgxM2e4LSf1yTpWQ0qcSfOz5hdZ1wyciyYhtbClhHs_q3WB7zo4NrDXvTF6ETwvNeUnSC4M-E-FYYlUOOZQo1OYCaP-zT8jRsFLmCU99uFHtiXw3Btvz__gGl5lU_C/s320/14.JPG" width="320" /></a></div>Hem començat passant al compilador els programes que teniem escrits a la llibreta, i després compilant ha donat una seria d'errors (es comprova pulsant ctrl+F9):<br />
<div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhUL3TettGOcvh3EaRjZ2aPndi3RU264WQ_rzNJAfVEW6uagv2MieQ8IZV11xJLoQbN6Zd0jOy2tTqHLn0wuDiPtf_LSShQAMC4BRjd3PVwRjAoP_gU1B9fxiii91o9LxZuIRB5kTf2MN_R/s1600/15.JPG" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" height="164" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhUL3TettGOcvh3EaRjZ2aPndi3RU264WQ_rzNJAfVEW6uagv2MieQ8IZV11xJLoQbN6Zd0jOy2tTqHLn0wuDiPtf_LSShQAMC4BRjd3PVwRjAoP_gU1B9fxiii91o9LxZuIRB5kTf2MN_R/s320/15.JPG" width="320" /></a></div>Després de donar-li prou voltes he aconseguit adonar-me que els errors eren la paraula 'ansistring', que havia estrit amb 'y', i els punts i comes, amb els quals no m'aclare. El compilador et dona la linea i posició d'on esta l'error. El problema està en que no se com es fa, i per tant no se detectar-ho ni corregir-ho. Amb la pràctica espere millorar. Ja vorem que fem el pròxim dia.<br />
Per sort a la fi ho he tingut bé i m'ha eixit el desitjar missatge de <i>press any key</i>.<br />
<div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg2Cjet3xVMH7p8d44hK9rUzqTE8Pk5tJzpgM56nWBfqLF3vjMQEKjpQVC0NSKsJDO2FKJfc0n_lVgccNT5b8D-3jTz0Zd4xD0QwkDsc1yv9X2vDJjI1_9jPfLFRWaArYjNOcvpFLRocxnj/s1600/1516.JPG" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" height="164" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg2Cjet3xVMH7p8d44hK9rUzqTE8Pk5tJzpgM56nWBfqLF3vjMQEKjpQVC0NSKsJDO2FKJfc0n_lVgccNT5b8D-3jTz0Zd4xD0QwkDsc1yv9X2vDJjI1_9jPfLFRWaArYjNOcvpFLRocxnj/s320/1516.JPG" width="320" /></a></div><div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhNC6Cg3adqwfJsmaoW6xGfepgr0LzsNnWNefTQF-ObsqN-psSv3bjWiKTfm6pXz66_vOnzhhnN_YWmcPQHx84p6NiEODeIE1NMKP4q6syJ695KJw-3oX3tJowHs5hge4STHiNPVXkIlPkC/s1600/1516.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><br />
</a></div>Nazaret de las Herashttp://www.blogger.com/profile/05652467288813043511noreply@blogger.com0tag:blogger.com,1999:blog-4986314908903758420.post-31683100047331985772012-02-22T04:32:00.030-08:002012-03-24T05:21:42.518-07:00Amb més agilitatHui hem fet dos programes més complexos!<br />
Primer hem fet un de càlculs amb una constant. Tracta de calcular el perímetre i l'àrea d'un cercle, Anem a vore'l:<br />
<br />
<div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEibUi1CAOWFT5KPFTUwGLZCzU37Hxe-PUVDlIdu5bYkUJAawFCg59QhpQ2hOh4x8zDTPgKrXiGjNBpQU54InZ6NPlQWyY6roCr_yfftsuKyFoi2kDJQvh5PRbh7YdN6gMyufGVTjIWQZ-jW/s1600/11.JPG" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" height="320" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEibUi1CAOWFT5KPFTUwGLZCzU37Hxe-PUVDlIdu5bYkUJAawFCg59QhpQ2hOh4x8zDTPgKrXiGjNBpQU54InZ6NPlQWyY6roCr_yfftsuKyFoi2kDJQvh5PRbh7YdN6gMyufGVTjIWQZ-jW/s320/11.JPG" width="267" /></a></div><br />
Program circulo;<br />
Uses crt;<br />
Var<br />
p, a, r: real;<br />
Const<br />
pi=3,1415926;<br />
<br />
Begin<br />
clrscr;<br />
write('Introduce radio: ');<br />
readln(r);<br />
P:=2*pi*r;<br />
A:=pi*r*r<br />
write('El perímetro del círculo de radio ',r,' es ',P:0:2,' y su área, ',A);<br />
readkey;<br />
End.<br />
<br />
Utilitze la expressió P:0:2, per que isca el resultat amb dues cifres decimals. <br />
<br />
<br />
<br />
Després hem fet un de text simple, però utilitzant una condició i la taula de colors de la opció <i>textcolor</i>.<br />
<br />
<br />
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh8hCcVripdFH95F1Y9uJtgClFijG3t_Ey8JKZnYAhCByh7VBEH0vKUzOGSr4C912FEPp3GQo6GWaTa7WjKjc087acorC8F_vk4CYmJ0Y1JT9kDQG-IUhrb8At94mq5SVpnFQ9-y1_mBtnT/s1600/12.JPG" imageanchor="1" style="clear: right; float: right; margin-bottom: 1em; margin-left: 1em;"><img border="0" height="188" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh8hCcVripdFH95F1Y9uJtgClFijG3t_Ey8JKZnYAhCByh7VBEH0vKUzOGSr4C912FEPp3GQo6GWaTa7WjKjc087acorC8F_vk4CYmJ0Y1JT9kDQG-IUhrb8At94mq5SVpnFQ9-y1_mBtnT/s320/12.JPG" width="320" /></a>Program condicion;<br />
Uses crt;<br />
Var<br />
c:char;<br />
nom:ansystring;<br />
<br />
Begin<br />
clrscr;<br />
writeln('Hola');<br />
readkey;<br />
writeln('¿Cómo te llamas? ');<br />
readln(nom);<br />
writeln('Bienvenido a nuestro programa');<br />
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEheEfOPFK-ozs6sfCXzRdzlt7ziOL0o5K-zCC0jgF3YG1IMWfCEtQyN2iyAAD67BgnpgYaDnTsEWCtK7UoJc1IfPq3WcXxQk__JadK1RqwGfkx6kBeEBIbytJQ-QZN2yPscwbPJYI8e23nO/s1600/13.JPG" imageanchor="1" style="clear: right; float: right; margin-bottom: 1em; margin-left: 1em;"><img border="0" height="164" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEheEfOPFK-ozs6sfCXzRdzlt7ziOL0o5K-zCC0jgF3YG1IMWfCEtQyN2iyAAD67BgnpgYaDnTsEWCtK7UoJc1IfPq3WcXxQk__JadK1RqwGfkx6kBeEBIbytJQ-QZN2yPscwbPJYI8e23nO/s320/13.JPG" width="320" /></a> readkey;<br />
write('¿Desea continuar? (s/n): ');<br />
readln(c);<br />
if c=s<br />
then<br />
begin<br />
textcolor(10);<br />
writeln('De acuerdo, empecemos'); <br />
end <br />
else<br />
begin<br />
textcolor(12);<br />
writeln('Tú te lo pierdes');<br />
end;<br />
readkey;<br />
End.Nazaret de las Herashttp://www.blogger.com/profile/05652467288813043511noreply@blogger.com0tag:blogger.com,1999:blog-4986314908903758420.post-38620232988626735292012-02-21T03:19:00.001-08:002012-03-24T04:07:10.164-07:00Comencem amb algoritmes<div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg7xJDKPyJ_2fUQm-BeeM_AQ3Hbi77PUF2HkKRBgaBTs7fjmdFLZQI3mnmYM7lPsptW079ADIX7cMszb8nhqx081vmC2IebgRUIp1DkTny-zj__S9IRCsuRBQCFtKqGwNFADLmmcqsabkZ0/s1600/6.JPG" imageanchor="1" style="clear: right; float: right; margin-bottom: 1em; margin-left: 1em;"><img border="0" height="227" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg7xJDKPyJ_2fUQm-BeeM_AQ3Hbi77PUF2HkKRBgaBTs7fjmdFLZQI3mnmYM7lPsptW079ADIX7cMszb8nhqx081vmC2IebgRUIp1DkTny-zj__S9IRCsuRBQCFtKqGwNFADLmmcqsabkZ0/s320/6.JPG" width="320" /></a></div>Hui hem començat per la explicació dels algoritmes. <br />
Ricardo ens ha demanat fer l'algoritme del programa més bàsic: posar 'hola' a la pantalla. Ha sigut un repte difícil, i després Ricardo ens l'ha mostrat a l'ordinador. Amb el programa Dia ens feia els algoritmes que anava demanant. Jo me l'he descarregat a casa per practicar i poder mostrar els exercicis que he fet a llapis i paper. També feiem a la llibreta el text del programa. Havia de seguir la següent estructura:<br />
<div class="" style="clear: both; text-align: left;">Program X;</div><div class="" style="clear: both; text-align: left;">Uses crt; (*biblioteca de dades del programador*)</div><div class="" style="clear: both; text-align: left;">Var variables r: integer; a,b: real</div><div class="" style="clear: both; text-align: left;"> constantes pi:3,1415...</div><div class="" style="clear: both; text-align: left;">Begin clrscr; (*limpiar pantalla*)</div><div class="" style="clear: both; text-align: left;"> readkey; (*mantener pantalla*)</div>End.<br />
<br />
<br />
<div class="separator" style="clear: both; text-align: center;"></div><div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjyOuiPTBh7eJ6JN4d1BZDtEP4IMXVL61DTIDHXXBBk1bxU1EbvvfXOxB5TBnRDTCyxlovMJxv-qxL1BuPsAn4z8JuqlGUWtAebBYQA2QjPjxOsFTSIywZoFhm2dU1eEStVXXfK4hkSad4_/s1600/2.JPG" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" height="320" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjyOuiPTBh7eJ6JN4d1BZDtEP4IMXVL61DTIDHXXBBk1bxU1EbvvfXOxB5TBnRDTCyxlovMJxv-qxL1BuPsAn4z8JuqlGUWtAebBYQA2QjPjxOsFTSIywZoFhm2dU1eEStVXXfK4hkSad4_/s320/2.JPG" width="201" /></a><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhaLBlsWS4b6KvB4DQf_udIl5JmgdefviZeGULZ9yzZ5ACy4lOAMoFmyw63LHnOUzwYh9ki63vW1Oq0_CGCm1w5bYqy3DHNPL8QuPulxdtgFpOt2bAhmg7U5d44NT9xK6B5KvRxA0dfL2Pk/s1600/3.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="320" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhaLBlsWS4b6KvB4DQf_udIl5JmgdefviZeGULZ9yzZ5ACy4lOAMoFmyw63LHnOUzwYh9ki63vW1Oq0_CGCm1w5bYqy3DHNPL8QuPulxdtgFpOt2bAhmg7U5d44NT9xK6B5KvRxA0dfL2Pk/s320/3.JPG" width="152" /></a></div><br />
<div class="" style="clear: both; text-align: left;"><b>així l'he fet jo </b> <b>així es feia</b><br />
</div><div class="" style="clear: both; text-align: left;">Se m'he oblidat posar els comandaments <i>clrscr</i> inicial y <i>readkey</i> final, pel que no es voria l'<i>hola</i> que apareixeria un moment a la pantalla, ni quedaria neta aquesta.</div><div class="" style="clear: both; text-align: left;">D'aquest programa hem escrit el següent text per programar:</div><div class="" style="clear: both; text-align: left;"><br />
</div><div class="" style="clear: both; text-align: left;">Program Hola;</div><div class="" style="clear: both; text-align: left;">Uses crt;</div><div class="" style="clear: both; text-align: left;"><br />
</div><div class="" style="clear: both; text-align: left;">Begin clrscr;</div><div class="" style="clear: both; text-align: left;"> write('Hola'); </div><div class="" style="clear: both; text-align: left;"> readkey; </div><div class="" style="clear: both; text-align: left;">End.</div><div class="" style="clear: both; text-align: left;"><br />
</div><div class="" style="clear: both; text-align: left;">Després d'aço hem fet el càlcul de l'àrea d'un rectangle:</div><div class="" style="clear: both; text-align: left;"></div><div class="" style="clear: both; text-align: left;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiVoD2bx0KAIjum_fim2gXuyIOgQZqQudduoaAIjudmQPFEEMar0wWDYoVhBtmwcnL_yolAxAJeFI7X9hioxkHVBtChN7t-s-NBEdvjyK9OoCw1zkcwjevhk5DFYtaPlsFiUydNUnN4mTSu/s1600/4.JPG" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" height="320" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiVoD2bx0KAIjum_fim2gXuyIOgQZqQudduoaAIjudmQPFEEMar0wWDYoVhBtmwcnL_yolAxAJeFI7X9hioxkHVBtChN7t-s-NBEdvjyK9OoCw1zkcwjevhk5DFYtaPlsFiUydNUnN4mTSu/s320/4.JPG" width="241" /></a>Program Rectangulo;<br />
Uses crt;<br />
Var b, h, S: integer;<br />
<br />
Begin clrscr;<br />
write('Introduce base: ');<br />
readln(b);<br />
write('Introduce altura: ');<br />
readln(h);<br />
S:=b*h;<br />
writeln('El área del rectángulo de base ',b,' y altura ',h,' es ',s);<br />
readkey;</div>End.<br />
<br />
<br />
<br />
<br />
Per finalitzar hem fet un programa per sumar dos numeros enters.<br />
<div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhuOf90n5cJ7HzUhqRth12TezNTUfPQX55u67aV4eyqa55OAH0njMmfX8YI58qSCgw9UMTdtkG87-oAia2Bi9SkcETkbGvB2aqUrCZAuZzfsXDrljHOvS_8Kjh8-2CyenzRLqgd2U109qmo/s1600/5.JPG" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" height="320" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhuOf90n5cJ7HzUhqRth12TezNTUfPQX55u67aV4eyqa55OAH0njMmfX8YI58qSCgw9UMTdtkG87-oAia2Bi9SkcETkbGvB2aqUrCZAuZzfsXDrljHOvS_8Kjh8-2CyenzRLqgd2U109qmo/s320/5.JPG" width="234" /></a></div>Program Suma;<br />
Uses crt;<br />
Var a, b, c: integer;<br />
<br />
Begin clrscr;<br />
write('Introduce a: ');<br />
readln(a);<br />
write('Introduce b: ');<br />
readln(b);<br />
c:=a+b;<br />
writeln('La suma de ',a,' y ',b,' es ',c);<br />
readkey;<br />
End.Nazaret de las Herashttp://www.blogger.com/profile/05652467288813043511noreply@blogger.com0tag:blogger.com,1999:blog-4986314908903758420.post-46287695481117150282012-02-20T05:08:00.006-08:002012-03-24T04:25:21.767-07:00ProgramacióHui hem anat a la classe de baix per començar el temari de programació. Ricardo ens ha dit que a partir d'ara, fins que acabem aquest bloc, anirem normalment a fer classe teorica. Alguns dies també anirem als ordinadors per fer pràctiques.<br />
La classe de hui ha sigut una introducció a què es la programació. Més endavant vorem el programa que anem a utilitzar (<i>Free Pascal</i>) i aprendrem a utilitzar-lo.<br />
També hem aprés què son els algoritmes, esquemes dels programes a realitzar.<br />
<div class="separator" style="clear: both; text-align: center;"></div><div class="separator" style="clear: both; text-align: center;"></div><div class="separator" style="clear: both; text-align: center;"></div><div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg86RHO0Y0tLLILLTNXsRk8gSzrE3iaUzNA_lRNtYas4w3zJoXOPNbUwKhtXjLqTB5m26joKpsZ11X19J8NFRzLQkPQAhmYSpPGjVPEUKnMJ5hS85ya-ts2INGO-QGkW8jLmETRG79A2u2b/s1600/1.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="320" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg86RHO0Y0tLLILLTNXsRk8gSzrE3iaUzNA_lRNtYas4w3zJoXOPNbUwKhtXjLqTB5m26joKpsZ11X19J8NFRzLQkPQAhmYSpPGjVPEUKnMJ5hS85ya-ts2INGO-QGkW8jLmETRG79A2u2b/s320/1.JPG" width="261" /></a></div><div class="separator" style="clear: both; text-align: left;">Hi ha tres tipus de programació al pas del temps:</div><div class="separator" style="clear: both; text-align: left;">1. Códeg binari</div><div class="separator" style="clear: both; text-align: left;">2. Llenguatje de baix nivell</div><div class="" style="clear: both; text-align: left;"> -Ensamblador</div><div class="" style="clear: both; text-align: left;">3. Llenguatje de alt nivel</div><div class="" style="clear: both; text-align: left;">Respecte als algoritmes, es formen a partir de diferents dibuixos:</div><div class="separator" style="clear: both; text-align: center;"></div><div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhlt58YZRuwZEM0k-eLilsRxyn2ZF5xX7CmuGd6PE6w2WZDqI81qr1eEoAp2WsH84WgLog6ThKENbmk7ucaRIPORxfs18jpJRLdGGXT9k08c3J82JibxdKHYfuYW6RN8D2vyBGWefln-dgP/s1600/7.JPG" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" height="121" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhlt58YZRuwZEM0k-eLilsRxyn2ZF5xX7CmuGd6PE6w2WZDqI81qr1eEoAp2WsH84WgLog6ThKENbmk7ucaRIPORxfs18jpJRLdGGXT9k08c3J82JibxdKHYfuYW6RN8D2vyBGWefln-dgP/s200/7.JPG" width="200" /></a><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgtrAswi-wcn7FWKEI0LhHIa35p7i6ZlI7a74v7q9pEMQ16922e3UH5XGVblqPeN4MtAZiOv3FicTPdNEOrIp1XLBjX6LhuWERsFm4kn8uPjcqj_2CrHqe0UifwYwEqCXtONTga5RoaghI9/s1600/8.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="113" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgtrAswi-wcn7FWKEI0LhHIa35p7i6ZlI7a74v7q9pEMQ16922e3UH5XGVblqPeN4MtAZiOv3FicTPdNEOrIp1XLBjX6LhuWERsFm4kn8uPjcqj_2CrHqe0UifwYwEqCXtONTga5RoaghI9/s200/8.JPG" width="200" /></a></div><div class="separator" style="clear: both; text-align: left;"> <b> Pantalla</b> <b>Teclat </b></div><div class="separator" style="clear: both; text-align: left;"><br />
</div><div class="separator" style="clear: both; text-align: center;"></div><div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi658SqgdONKaK6f6eUw0W7LGNL_sarbjI6pmSXypfxJyEWWoms_tkPQQBc3-hLxIemKPz4W-x0PSbajR5SsBzfuRRXkA_PHceVrfv4ES7RzF4Vb_Yfd7MsKThvhFMrbXEZMxvhDxUO8jti/s1600/10.JPG" imageanchor="1" style="clear: right; float: right; margin-bottom: 1em; margin-left: 1em;"><img border="0" height="139" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi658SqgdONKaK6f6eUw0W7LGNL_sarbjI6pmSXypfxJyEWWoms_tkPQQBc3-hLxIemKPz4W-x0PSbajR5SsBzfuRRXkA_PHceVrfv4ES7RzF4Vb_Yfd7MsKThvhFMrbXEZMxvhDxUO8jti/s200/10.JPG" width="200" /></a></div><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgl43KeKD7yb0ms0HOTcvw6wYK4xKDr2zUap3osOM0coPl3t1NoYpFYRx7fDw5NUHuMEvBUC7pvA4rmS1UtxZbLp4ai2HlcXSoAnOH6HwWP5XpKvt_Lpo-E9NbLiDaSbryge_GduadxMjIk/s1600/9.JPG" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" height="120" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgl43KeKD7yb0ms0HOTcvw6wYK4xKDr2zUap3osOM0coPl3t1NoYpFYRx7fDw5NUHuMEvBUC7pvA4rmS1UtxZbLp4ai2HlcXSoAnOH6HwWP5XpKvt_Lpo-E9NbLiDaSbryge_GduadxMjIk/s200/9.JPG" width="200" /></a><br />
<br />
<div class="separator" style="clear: both; text-align: left;"><b> Procés Condició</b></div><div class="separator" style="clear: both; text-align: left;"><br />
</div><div class="separator" style="clear: both; text-align: left;">També hi ha secuencies avanzades, com sòn els bucles, que vorem posteriorment: For, While i Repeat.</div>Nazaret de las Herashttp://www.blogger.com/profile/05652467288813043511noreply@blogger.com0tag:blogger.com,1999:blog-4986314908903758420.post-9310723361231111692012-02-16T11:45:00.000-08:002012-02-16T11:45:29.530-08:00OptimitzacióHui ha sigut el dia d'optimiztar el treball. Em tingut una xicoteta baralla al grup també. Comence pel principi:<br />
Hui s'entregava a la fi l'informe CIIPA. El teniem ja acavat, però sense animar. Quan ens hem donat compte de que no trobavem forma d'animar-lo, hem acudit a Ricardo. Ell a buscat també les opcions, perquè sengons l'internet es pot, pero l'unic que hem aconseguit es ficar una opció per que ixen els textos, titols o imatges amb clicks. Açò ho em fet clickant amb el botó dret del rató i seleccionant la acció de 'Revela de forma incremental'. Hem utilitzat aquesta funció a la diapositiva de les conclussions, per que no quedara tan pesada i aborrida, i també a la ultima diapositiva (Treball realitzat per...)<br />
<div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhJFPgqmp1qfm8PDmDKHnm1djkkio67rSgcI-_zwBSGub10jw5I-4X9K7kdyS96c2AqpAYjP0QGCyToXFkVOe1WouG-7qW4Q9MDrlohWx9epB6S7aivVofDYoE1krj06slDocCuzH1d4JjM/s1600/16-1.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="237" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhJFPgqmp1qfm8PDmDKHnm1djkkio67rSgcI-_zwBSGub10jw5I-4X9K7kdyS96c2AqpAYjP0QGCyToXFkVOe1WouG-7qW4Q9MDrlohWx9epB6S7aivVofDYoE1krj06slDocCuzH1d4JjM/s400/16-1.JPG" width="400" /></a></div><br />
A banda d'açò. hui em corregit moltes faltes ortogràfiques que hem trovat als textos escrits. Sara anava buscant a un traductor on-line ( <a href="http://servicios.elpais.com/traductor/">http://servicios.elpais.com/traductor/</a> ) les paraules que no ens sonaven prou bé. Mentres tant, Luis feia per la seua banda un full de text amb les conclussions altra vegada, però una mica ampliades (amb una redacció una mica fluixa, cal dir-ho). Sara i jo primer hem intentat corregir algunes frases, i, després d'una batalleta, Luis s'ha enfadat i ha esborrat el document. La veritat es que ja haviem parlat entre nosaltres i amb Ricardo i la colclussió havia sigut que no calia fer-la, però bo, algunes ampliacions les hem acceptades perquè eres importants, com, per exemple, la de la conclussió 2.<br />
A la fi, l'hem compartit amb Ricardo ( informaticamariaauxiliadora@yahoo.es ). A última hora, ens ha dit que compartirem també els gràfics i les enquestes. Hem compartit els gràfics, sense comprovar el format ni l'ordre, però les enquestes no han volgut que les compartirem Sara i Luis, perquè, la veritat, estava molt destartalat.<br />
Demà començarem un nou 'bloc', programació. Ja vorem de que va la cosa, perquè no tinc ni idea.Nazaret de las Herashttp://www.blogger.com/profile/05652467288813043511noreply@blogger.com0tag:blogger.com,1999:blog-4986314908903758420.post-48177798595493810602012-02-09T09:29:00.000-08:002012-02-13T09:51:04.048-08:00VisualitzacióHui ha sigut un dia de recapitulació i revisió del fet pels altres companys de classe. Primer hem anat a classe normal, però l'he preguntat a Ricardo si anavem a vore els Relats Digitals de tots el de la classe, i s'ha enrecordat que havia guardada la classe per anar hui a fer-ho. Hem apagat els ordinadors i hem baixat a la classe del nou projector, on hem vist els treballs (alguns guardats, però altres on line, del Youtube, perque no anava be la imatge). M'ha cridat molt la atenció el de Ruben. Es un treball una mica trist perquè parla de les desgracies del mon, pero dinamic i amb un bon ritme. La musica dona molt ambient i la fi es una bomba! El suicidi és genial a la història, e inesperable. El problema es que Ruben ja ens va desvelar eixe fi a Sara i a mi l'altre dia.<br />
Jo havia vist el de sara i el de Veri ja. El de Veri, encara que comence una mica aborrit, m'ha agradat també. Era tot un secret desvelat. El de Sara, és clar, en la seua linea. Una historia i bonissim resultat. Dels altres, comentare que m'ha agradat molt la idea de Alberto, i el de Luis, pense que si haguera escoltat be el que deia m'hauria agradat més. Dels altres, Titanic i el de Patricia, que no es sap molt bé, perque no s'escoltava be. Crec que el meu es d'un nivell mitja dels presentats.<br />
Tot dit ja, m'acomiade.Nazaret de las Herashttp://www.blogger.com/profile/05652467288813043511noreply@blogger.com0