°g¡D¥e 2009-9-9 20:28
Pascal °ÝÃD(«æ~ÃÑ©Odªº§Öd±Ï§Ú~~~)
§Ú·Q¦³¤H¥i¥H¦P§Ú¸Ñ¤U©Od³¥¨ä¹ê¥s§Ú°µ«§?¥iø¥i¥H¦P§Ú¸Ñ®I¨BÆJ?¦]¬°§Ú«Y啱啱¾Çªº,±¹ï¦Ñ®vªº°ÝÃD§Ú¤@ÀYÃú¤ô¡C
1.Write a Pascal program that will read in two integers and then output their sum, difference and product.
2.Write a Pascal program that will convert a number of seconds to the equivalent number of minutes and seconds. Use the MOD and DIV operators.
3.A Celsius (Centigrade) temperature C can be converted to an equivalent Fahrenheit temperature F according to the following formula: F = (9/5) C + 32.
4.Find the value of each of the following expression or explain why it is not a valid expression:
a)2 div 3 + 3 / 3
b)9 / 2 div 5
c)7 mod 5 mod 3
d)12 / 2 * 3
e)(12 + 3 div 2) / (8 ¡V 5 + 1)
f)sqr(sqr(-16))
5.Write Pascal expressions to compute the following:
a)5A ¡V 6BC + 9
b)The square root of a2 + 2b
c)|A / (mn + q)|
6.What is the difference between the following identifier?
a)NUMBER number NumBer _number
b)temp1 Temp_1 Temp1 temp.1
7.Write Pascal statements for the following tasks:
a)Ask the user to enter his height in centimeters (cm) and display it in meter (m) round in 2 decimal places.
b)Display the sum of the ordinal for character in the string ¡§HaHa¡¨.
¥ò¦³«§¥smod¦Pdiv?
¦³«§website啱§Ú©Od·s¤âÚ»©O?
«§³n¥ó啱¥Î¨Ó¼gPascal©O?
§Úªüsir´N±Ð§Ú¥Îqp....«§¨Ó¬[?ÂI¥Î©O?
¤@¦¸Óµª«{«Y¦nÃø....¦]¬°§Ú¯u«Yøª¾ÂI¼g.....¤SÚ»ø©ú...§Æ±æ§A¦a¥i¥Hµª§Ú...thx!!!!
°g¡D¥e 2009-9-9 20:31
¦^À³ ¤pÂͤ@°¦ ²Ä 2 ½g¤å³¹
½s¼gµ{¦¡ªº¤@ºØ»y¨¥....
¤pÂͤ@°¦ 2009-9-9 20:32
¦^À³ °g¡D¥e ²Ä 3 ½g¤å³¹
®@
¤p°g¥[ªo§r¡I¡I
¤pÂͧ¹¥þ¤£À´¹q¸£
°g¡D¥e 2009-9-9 20:34
¦^À³ ¤pÂͤ@°¦ ²Ä 4 ½g¤å³¹
²{¦b§Ú¤w¸g¤@ÀYÃú¤ô°Õ...
µ¥¤H±Ï§Ú...
leungmon 2009-9-9 20:36
¦^À³ ¤pÂͤ@°¦ ²Ä 2 ½g¤å³¹
¤Ú´µ¥d(Blaise,ªk°êõ¾Ç®a¤Î¼Æ¾Ç®a
¤Ú´µ¥d
¤Ú´µ¥d¬Oªk°êµÛ¦Wªº¬ì¾Ç®a¡C¥L¦b«Ü¤pªº®ÉÔ¥À¿Ë´N¥h¥@¤F¡C¥L¤÷¿Ë¦bµ|°È§½¤u§@¡A¬OӼƾǤu§@ªÌ¡A±`©M¤@¨ÇÀ´¼Æ¾Çªº¤H¥æ©¹¡A¦ý¥L»{¬°¼Æ¾Ç¹ï¤p«Ä¤l¬O¦³®`¥B·|¶Ë¸£µ¬¡C¦]¦¹¦b¤Ú´µ¥d®ÉÔ¤÷¿Ë±q¤£±Ð¥L¼Æ¾Ç¡A¥u¬O±Ð¥L¤@¨Ç»y¤å©M¾ú¥v¡A¦Ó¥B¤Ú´µ¥dªº¨Å餣¤Ó±j§§¡A¤÷¿Ë§ó¤£´±Åý¥L±µÄ²¼Æ¾Ç¡C
¦b¥L¤Q¤G·³®É¡A°¸µM¨£¨ì¤÷¿ËŪ´X¦óªº®Ñ¡C¥L¦n©_¦a°Ý´X¦ó¾Ç¬O¬Æ»ò¡H¤÷¿Ë¬°¤F¤£·QÅý¥Lª¾¹D¤Ó¦h¡A¥u¬O¤j¬ù»¡¹Ï§Î©M¶êªº©Ê½è¡C¥i¬O¤Ú´µ¥d«o·P¨ì¿³½ì¡A§Q¥Î¤÷¿ËÁ¿zªº°ò¥»´X¦óª¾ÃÑ¡A¦Û¤v¿W¥ß¹ï´X¦ó¾Ç¬ã¨s¡C·í¥L§â¥Lªºµo²{¡G¡u¥ô¦ó¤T¨¤§Îªº¤TÓ¤º¨¤©M¬O¤@¦Ê¤K¤Q«×¡v§i¶D¤÷¿Ë®É¡A¥LÅå³ß¥æ¶°¡A¨Ã·h¥X¤F¼Ú´X¨½±oªº¡m´X¦ó쥻¡nµ¹¤Ú´µ¥d¬Ý¡C¤Ú´µ¥d¤~¶}©l±µÄ²¨ì¼Æ¾Ç®ÑÂÇ¡C
¥L¦b¤Q¤T·³®É´Nµo²{¤F¡u¤Ú´µ¥d¤T¨¤§Î¡v¡A¤Q¤»·³®Éµo²{¤F®g¼v´X¦ó¾Çªº¤@Ó°ò¥»©w²z¡G¶êÀ@¦±¿úùتº¤º±µ¤»Ãä§Î¹ïÃ䪺¥æÂI¬O¦@½u¡C¦b¥L¤Q¤C·³®É§Q¥Î³o©w²z¼g¥X¤F¦³¥|¦Ê¦hӼƾǩw²z¡AÃö©ó¶êÀ@¦±½uªº½×¤å¡C¸ÑªR´X¦óªº³Ð¥ß¤H²Ã¥d¨àŪ¨ì³o½×¤å«á¤£¬Û«H¬O¤@Ó¤Ö¦~©Ò¼gªº¡C¼Æ¾ÇÂk¯Çªk¬O¥L³Ì¦µo²{ªº¡C¥LÁÙ°Ñ»P³]p¥@¬É²Ä¤@¥xªºpºâ¾÷¡A·í®Éªº³]p²z©ÀÁÙÀ³¥Î¦b²{¦bªºpºâ¾÷¡C
¦b1654¦~11¤ëªº¤@¤Ñ¡A¥Lµo¥Í¤F·N¥~®tÂI¦º¥h¡A¥Lı±o¤jÃø¤£¦º¥²¦³¯«©ú§ÈÅ@¡A©ó¬O¤Ú´µ¥d©ñ¤F©Ò¦³¬ì¾Ç¬ã¨s¥h¬ã¨s¯«¾Ç¡C±ß¦~®É¡A¥L§ó¹³¤@ÓW¦æ¹¬¡Aµ²ªG¤£¨ì¤T¤Q¤E·³«K¥h¥@¤F¡C
¤Ú´µ¥d«D±`±µªñµo²{·L¿n¤À¡C³Ð¥ß¤H¤§¤@ªº¼Æ¾Ç®aµÜ¥¬¥§¯÷¼g¹D¡G·í¥LŪ¨ì¤Ú´µªºµÛ§@®É¡A¥L¬ðµM®©¨ì¤F¤@¨Ç¹D²z¡A«á¨Ó¤~³Ð¥ß¤F·L¿n¤À¡C
¤Ú´µ¥d¦bªk°ê¤å¾Ç¤W¦a¦ì¤]«Ü°ª¡A±z¦pªG¹ï¥Lªº¥Í¥©M¤å¾Ç¤u§@¦³¿³½ì¡A¥i°Ñ¦Ò§d¹F¤¸©ÒµÛªº¡mªk°ê¤å¾Ç¥v¡n¡C
-------------------------------
¤Ú´µ¥d
Pascal, Blaise
(1623~1662)
¤Ú´µ¥d¬Oªk°êµÛ¦Wªº¬ì¾Ç®a¡A¤ôÀ£¾÷ì²z´N¬O¥Lµo²{ªº¡C¥LªºµÛ¦WªºToricelli¹êÅç¡AÃÒ©ú¤FªÅ®ð¬O¦³À£¤O¡AÅF°Êªk°ê¤@®É¡C¨º®É¥L¤~¤G¤Q¤T·³¡A¦bª«²z¤W¥L³þ¥ß¤F¬yÅéÀR¤O¾Çªº°ò¦²z½×¡C¦b¼Æ¾Ç¤W¥Lªº°^Äm¤]¬O¤£¤Ö¡C
¤Ú´µ¥d«Ü¤pªº®É«J¥À¿Ë´N¥h¥@¤F¡C¤÷¿Ë¬O¤@ӼƾǷR¦nªÌ¡A±`©M¤@¨ÇÀ´¼Æ¾Çªº¤H¥æ©¹¡A¥i¬O¥L«o»{¬°¼Æ¾Ç¹ï¤p«Ä¤l¬O¦³®`¥B·|¶Ë¸£µ¬¡A¦]¦¹«Ä¤lÀ³¸Ó¦b¤Q¤¡B¤»·³®É¤~¾Ç²ß¼Æ¾Ç¡A©Ò¥H¦b³o¤§«e¥L´N¥u¾Ç¤F¤@¨Ç©Ô¤B¤å©Î§Æþ¤å¡C¤Ú´µ¥d¦b¤Q¤G·³ªº®É«J¡D°¸µM¬Ý¨ì¤÷¿Ë¦bŪ´X¦ó®Ñ¡A¥L¦n©_ªº°Ý¤÷¿Ë¡G´X¦ó¾Ç¬O¤°»ò¡H¤÷¿Ë¬°¤F¤£·QÅý¥Lª¾¹D¤Ó¦h¡A¥u¬O¤j¬ùÁ¿´X¦ó¬ã¨sªº¬O¹Ï§Î¦p¤T¨¤§Î¡B¥¿¤è§Î©M¶êªº©Ê½è¡A¥Î³B´N¬O±Ð¤Hµe¹Ï®É¯à§@¥X¥¿½T¬üÆ[ªº¹Ï¡C¤÷¿Ë«Ü¤p¤ßªº§â¦Û¤vªº¼Æ¾Ç®Ñ³£¦¬Âæn¡A´N©È³Q¤Ú´µ¥d®³¥h½¬Ý¡C¥i¬O¤Ú´µ¥d«o²£¥Í¿³½ì¡A¥L®Ú¾Ú¤÷¿ËÁ¿ªº¤@¨Ç´X¦ó²³æª¾ÃÑ¡A¦Û¤v¿W¥ß¹ï´X¦ó¾Ç¬ã¨s¡C·í¥L±N¦Û¤v©Òµo²{¡G¥ô¦ó¤T¨¤§Îªº¤TÓ¤º¨¤©M¬O¤@¦Ê¤K¤Q«×¡Cªºµ²ªG§i¶D¤÷¿Ë®É¡A¤÷¿Ë¬OÅå³ß¥æ¶°¡A³ºµMú¤F°_¨Ó¡F©ó¬O·h¥X¤F¼Ú´X¨½±oªº¡]´X¦ó쥻¡^¡A¤Ú´µ¥d¦Û¦¹¤~¶}©l±µÄ²¨ì¼Æ¾Ç®ÑÄy¡C¥Lªº¼Æ¾Ç¤~¯àÅã±o«Ü¦¼ô¡D¦b¤Q¤T·³ªº®ÉÔ´N¤w¸gµo²{¤F©Ò¿×¡u¤Ú´µ¥d¤T¨¤§Î¡v¡CÁÙ¤£¨ì¤Q¤»·³¥Lµo²{¤F®g¼v´X¦ó¾Çªº¤@Ó°ò¥»ì²z¡G¡u¶êÀ@¦±½uùتº¤º±µ¤»Ãä§Î¹ïÃ䪺¥æÂI¬O¦@½u¡v¡C¦b¥L¤Q¤C·³®É§Q¥Î³o©w²z¼g¥X±Nªñ¥|¦Ê¦hÓÃö©ó¶êÀ@¦±½u©w²zªº½×¤å¡C
¦b¤Q¤E·³®É¡A¥L¬°¤F´î¸g¤÷¿Ëpºâµ|°Èªº³Â·Ð¡Aµo©ú¤F¥@¬É¤W³Ì¦ªºpºâ¾÷¡A¤£¹L·í®É¥u¦³¥[´îªº¹Bºâ¥\¯à¡C¦ý¬O·í®É¥L©Ò¨Ï¥Îªº³]pì²z¡Aª½¨ì²{¦b³£ÁÙ¦b¹B¥Î¡C¼Æ¾Ç¤W¦³¦Wªº¡©¼Æ¾ÇÂk¯Çªk¡ª¤]¬O¥L³Ì¦µo²{ªº¡C
¤Ú´µ¥d¦³¨Ç¼Æ¾Ç²z½×¤w¸g«D±`±µªñµo²{·L¿n¤À²z½×¡A¥i¥H±q¼w°ê¼Æ¾Ç®aµÜ¥¬¥§¯÷«á¨Ó©Ò»¡:¡u·í¥LŪ¨ì¤Ú´µ¥dªºµÛ§@¡A¨Ï¥L¹³Ä²¹q¤@¼Ë¡A¬ðµM®©¨ì¤F¤@¨Ç¹D²z;«á¨Ó¤~«Ø¥ß¤F·L¿n¤Àªº²z½×¡v¬Ý¨ìºÝÙ¡C
¡·¸ê®Æ¨Ó·½¡G¤j¼Æ¾Ç®a¡X¤E³¹¥Xª©ªÀ¡B¼Æ¾Çªº¬G¶m
===========================
Blaise Pascal
¤Ú´µ¥d
Pascal¡]1623¡ã1662¡^¥Í©óªk°ê Auvergne¡A¨ò©ó¤Ú¾¤¡C¥L¬O¦¼zªº¯«µ£¡A¦¤Ôªº¤Ñ¤~¡C¥Dnªº¼Æ¾Ç¦¨´N¦b®g¼v´X¦óªº Pascal ©w²z¡A¥L»P Fermat ¬O¾÷²v½×ªº³þ°òªÌ¡C¤£¹L¹ï«á¥@¼vÅT³Ì¤jªº¬O¥Lªº©v±Ð©ÊµÛ§@¡m¨I«ä¿ý¡n¡C
Pascal¥À¿Ë¦³u¡C¥Lªº¤÷¿Ë¬O¤@Ó·~¾l¼Æ¾Ç®a»P¦a¤è¦æ¬F©x¡C¥Ñ©ó¤÷¿Ë±Ð¨|Æ[©À©_¯S¡A Pascal ²×¨¥¼¶i¾Ç®Õ¡A¦Ó¥B¦b15·³¤§«e¤£ã¾\Ū¼Æ¾Ç®ÑÄy¡C¦ý¬O¥L«o¦b11·³®É¦Û¦æµo®i¼Ú¤ó´X¦ó¡A¨ÃÃÒ©ú¡u¤T¨¤§Î¤º¨¤©M¬° 180¢X¡v¡A³oÃÒ©ú¥L¬O¤@Óµ´¥@ªº¤Ñ¤~¡C
15·³¥ª¥k¥L»P¤÷¿Ë¸g±`¥X®u Mersenne ªº»E·|¡A°Q½×·í®Éªºª¾ÃÑ¡A¦b³o¸Ì¥L»{ÃѤF Desargues¡A¨Ã¥BÆg´¥Lªº®g¼v´X¦ó¤u§@¡C Pascal ¦Û¤vÃÒ©ú¤F¥H¤U¦³¦Wªº
Pascal©w²z
¦b¤@¾ò¶ê¤W¡A¨Ì§Ç¨ú A, B, C, D, E, F ¤»ÂI¡A¨Ã§@ª½½u AB, BC, CD, DE, EF, FA¡A«h , , ³o¤TÂI¦@½u
[img]http://episte.math.ntu.edu.tw/people/p_pascal/p_pascal_01.gif[/img]
17·³®É¡A¥L¥Xª©¤F²Ä¤@¥»µÛ§@¡m¶êÀ@¦±½u¡n¡A¨ä¤º®e¤§¦¨¼ô¡AÅý Descartes ¨£¨ì¦¹®Ñ«á¡A³º§¹¥þ¤£¬Û«H¬O¥X¦Û¦~»´ Pascal ªº¤âµ§¡C
Pascal¦b19·³¨ì21·³¬°¤FÀ°§U¤÷¿Ë½Òµ|¡Aµo©ú¤F³ôºÙ¥v¤W³Ì¦ªºpºâ¾÷±ñ¡C 1647¦~¡APascal 24·³¡A¶}©l¶i¦æ¤j®ðÀ£¤Oªº¹êÅç¡A¨Ãµo²{¤j®ðÀ£¤OÀH®ü©Þ¼W°ª¦Ó´î¤Öªº¨Æ¹ê¡A¨Ã¥Ñ¦¹±o¨ì¤j®ð¼h¥~¥²¬°¯uªÅªºµ²½×¡A¥Ñ©ó Descaretes »{¬°¯uªÅ¤£¦s¦b¡A¨â¤HÁÙ¬°¦¹¦h¦¸ª§ÅG¡C 1653¦~¡APascal ¥Xª©¡m²GÅ饿ŽסnÄÄz Pascal À£¤O©w«ß¡A¶}¤ô¤åÀR¤O¾Çªº¥ýªe¡A¤]¬O¥L¹ïª«²z¾Ç³Ì«nªº°^Äm¡C
¦P®É¥L¤]«ùÄò¶i¦æ¼Æ¾Ç¤u§@¡A1648¦~°_¥L±q¶ê§ë¼vªºÆ[ÂI¡A±´°Q¶êÀ@¦±½u¡A³oÓ«nªºÆ[ÂIÁöµM¥¼´¿¥Xª©¡A¦ý³z¹L Leibniz ªº¼f¾\ºK°OÁÙ¬O¯à²¤ª¾¤j·§¡C¦A¨Ó¥L¥Xª©¡mºâ³N¤T¨¤½×¡n¡A§Ú̳̼ô±xªº Pascal ¤T¨¤§Î¡A´N¥X²{¦b³o¸Ì¡A³z¹L Wallis¡A¼vÅT¤û¹yµo©ú¥Lªº¤G¶µ¦¡©w²z¡C
¥t¥~¡A¦b1654¦~ Pascal ¦b»P Fermat ªº¤«Ê«H¨ç¤º¡A°Q½×½ä³ÕÁ{®É²×¤î®É¡A½äª÷¤À°tªº°ÝÃD¡A³o¬O¼Æ¾Ç¥v¤W¾÷²v½×½Ï¥Íªº¤@¨è¡C¥L³Ì«áªº¼Æ¾Ç¤u§@¬O¦b35·³®É¡A¦]¤úµh¥¢¯v¥b©]¬ã¨sÂ\½u¦Ó¼g¤Uªº³\¦h¿W¥ß³Ð³yªº¤ß±o¡C
Pascal ²×¥Í»P©v±Ð¦³«Ü²`ªº½t¤À¡A¤×¨ä¬O¦b31·³(1654)¦³¤F«¤jªº©v±Ð¸gÅç«á¡A¥L´N§¹¥þ¶i¤J©v±Ð¥Í¬¡¡A¦b²`¨èªºÅéÅ礤¥ÎÀu¬ü¤åµ§¼g¤U¨Óªº´N¬O¡mP¶m¶¡¤Í¤H®Ñ¡n¡AÁÙ¦³¼vÅT¤O§ó¤jªº¡m¨I«ä¿ý¡n¡C
¤£¹L§Ṳ́´µM¥i¥H³z¹L¡m¨I«ä¿ý¡n¬Ý¨ì¼Æ¾Ç¹ï¥L©v±Ð«ä·Qªº¼vÅT¡C¥L»{¬°ÁöµM³z¹L°@¸Ûªº©v±Ð¥Í¬¡¯à°÷±o¨ì¥Ã«í©¯ºÖªº¾÷²v«Ü¤p¡A¦ý¬O¥Ñ©ó©¯ºÖªº»ùȬOµL½a¤j¡A¦]¦¹§Ú̯à°÷´Á±æªºÁÙ¬OµL½a¤j¡A¦]¦¹©v±Ð¥Í¬¡¬Oȱo¥I¥Xªº¥Í¬¡¡C
leungmon 2009-9-9 20:37
##477# ##477# MONMON¤å¬ì¤HÀ°¤£¤F¥e¥e~
°g¡D¥e 2009-9-9 20:38
¦^À³ leungmon ²Ä 6 ½g¤å³¹
MONMON...
¥iø¥i¥HÀ°§Úݯ¤UÃö©óPASCAL µ{¦¡»y¨¥¤Jªùªººô¯¸??
leungmon 2009-9-9 20:44
©¬´µ¥d²Å¸¹¦¡½sµ{½s¿è¾¹
[url]http://resources.edb.gov.hk/pascalii/[/url]
Pascal »y¨¥¤Î½d¨Ò
[url]http://www.courseware.ust.hk/cantonese/pasframe.htm[/url]
°g¡D¥e 2009-9-9 20:48
¦^À³ leungmon ²Ä 9 ½g¤å³¹
¦³ÉN¨ä¥L?
¦V´¸ 2009-9-9 20:51
¥e¥e ¦V´¸ §¹¥þÀ°¤£¤W¦£°Ú :17: :17:
°g¡D¥e 2009-9-9 20:58
¦^À³ ¦V´¸ ²Ä 11 ½g¤å³¹
¨S¤HÀ°¨ì§Ú¶Ü??##482#
leungmon 2009-9-9 21:01
Pascalµ{§Ç³]p2003
2003¦~«×«·s¨î§@¤§pascalµ{¦¡³]p¤Jªù¡A¬O°ª¤G¯Å½Æ²ß½Ò¤Î°ª¤@¯Å¤Jªù½Òªº°Ñ¦Ò±Ð§÷¡C¦P¾ÇÌ¥i¥H¤U¸ü¦^®a¥J²Ó½Æ²ß¡C
[url]http://www.houkong.edu.mo/netstudy/l_ware/index_main_content.htm[/url]
Pasca
[url]http://hk.geocities.com/jack22_17/[/url]
pascal±Ð¾Ç(¶À©ü´£¨Ñ)
[url]http://hk.geocities.com/sccdcbba/comp.html[/url]
Pascal ªº°ò¥»¤¸¯À
[url]http://members.fortunecity.com/godfrey2/part1.htm[/url]
¦ÐÁl~ 2009-9-11 23:58
§Ú¤§«e³£¦³¾Ç¹Lpascal...
¤£¹L§¹¥þ¤£¦b¦æ³á
¤p¥e §An§V¤O
°g¡D¥e 2009-9-12 17:05
¦^À³ vincy100 ²Ä 14 ½g¤å³¹
¶â¶â¶â......¹ï§r~
°g¡D¥e 2009-9-12 17:09
¦^À³ ¦ÐÁl~ ²Ä 15 ½g¤å³¹
©¯¦n§Ú¬Ý¹LMONMONµ¹§Úªººô¯¸
©ú¥Õ¤F
¦ý¯Z¤Wªº¦P¾Ç¤´¤£À´...
leungmon 2009-9-12 17:11
¦^À³ °g¡D¥e ²Ä 17 ½g¤å³¹
¦n±m¥i¥HÀ°¥e¥e##483# ~
°g¡D¥e 2009-9-12 17:14
¦^À³ leungmon ²Ä 18 ½g¤å³¹
¯uªºn·PÁ§A©O~