I http www ns kogakuin ac jpct 13140Prog
- Slides: 123
プログラミング演習I http: //www. ns. kogakuin. ac. jp/~ct 13140/Prog. 2010
無料C言語コンパイラ(IDE) • Visual C++ 2008 Express Edition http: //www. microsoft. com/japan/msdn/vstudio/express/ 6
演習 01 -6 1000, 1001, 1002, 1003, 1004, 1005, 1006, 1007, 1008, – つまり1000+1001+1002+…+1019 1009, 1010, を計算する. 1011, 1012, 1013, 1014, 1015, 1016, 1017, 1018, 実行結果 1019, • for文を用いて,1000から1019ま での 20個の数字の合計を表示す るプログラムを作成せよ. • 途中経過も表示せよ. 1000 2001 3003 4006 5010 6015 7021 8028 9036 10045 11055 12066 13078 14091 15105 16120 17136 18153 19171 22 20190
演習 01 -8 • for文を用いて,500. 0, 500. 3, 500. 6, …, 502. 7の 10個の実数と,その 合計を表示するプログラムを作成せよ. 500. 000000 – 表示される数字は 0. 3ずつ 増えている. – 浮動小数点の表示は以下で可能 double d; printf("%lfn", d); 500. 300000 500. 600000 500. 900000 501. 200000 501. 500000 501. 800000 502. 100000 502. 400000 502. 700000 実行結果 合計=5013. 500000 24
演習 03 -4 演習 4 -3の処理を 1回行うと, min と max が [0, 8] → [4, 8] と更新される. 同じ処理を 2回 [4, 8] → [4, 6] となる. 実行結果の例 この処理を for文を ans : from 0. 0000 to 8. 0000 ans : from 4. 0000 to 8. 0000 用いて 10回行う ans : from 4. 0000 to 6. 0000 ans : from 4. 0000 to 5. 0000 プログラムを作成せよ. ans : from 4. 50000000 to 5. 0000 次スライドにヒント ans : from ans : from 4. 75000000 to 4. 81250000 to 5. 0000 4. 87500000 4. 84375000 4. 82812500 4. 82031250
演習 04 -4 • 画面に,下図の様に表示されるプログラムを 作成せよ. 00000 11111 22222 33333 44444 55555 66666 77777 88888 99999
演習 05 -1 (con't) 実行結果は右のようにせよ. 注意: Web上の手助けを 使用して良い. 手助けの内容を コピー&ペーストすれば良い. double型は printf(“%lf”, d) で表示可能. a[0][0] a[0][1] a[0][2] a[1][0] a[1][1] a[1][2] a[2][0] a[2][1] a[2][2] a[3][0] a[3][1] a[3][2] a[4][0] a[4][1] a[4][2] = = = = 0. 000000 1. 000000 2. 000000 3. 000000 4. 000000 5. 000000 6. 000000 7. 000000 8. 000000 9. 000000 10. 000000 11. 000000 12. 000000 13. 000000 14. 000000
演習 09 -0 ~ 09 -3 の解答 n= 1, n= 2, n= 3, n= 4, n= 5, n= 6, n= 7, n= 8, n= 9, n=10, sum 1(n)= 1, sum 1(n)= 3, sum 1(n)= 6, sum 1(n)=10, sum 1(n)=15, sum 1(n)=21, sum 1(n)=28, sum 1(n)=36, sum 1(n)=45, sum 1(n)=55, sum 2(n)= 1, sum 2(n)= 5, sum 2(n)= 14, sum 2(n)= 30, sum 2(n)= 55, sum 2(n)= 91, sum 2(n)=140, sum 2(n)=204, sum 2(n)=285, sum 2(n)=385, sum 3(n)= 1, sum 3(n)= 9, sum 3(n)= 36, sum 3(n)= 100, sum 3(n)= 225, sum 3(n)= 441, sum 3(n)= 784, sum 3(n)=1296, sum 3(n)=2025, sum 3(n)=3025, sum 4(n)= 1, sum 4(n)= 17, sum 4(n)= 98, sum 4(n)= 354, sum 4(n)= 979, sum 4(n)= 2275, sum 4(n)= 4676, sum 4(n)= 8772, sum 4(n)=15333, sum 4(n)=25333, func 0(n)= 14 func 0(n)= 96 func 0(n)= 390 func 0(n)= 1178 func 0(n)= 2928 func 0(n)= 6342 func 0(n)=12404 func 0(n)=22428 func 0(n)=38106 func 0(n)=61556
演習 11 -2 • 西暦y年m月d日と西暦y年 1月1日が,何日離 れているか計算する関数 int days_from(int y, int m, int d) を作成せよ. – 例: days_from(2112, 1, 1)は 0 – day_from(2112, 1, 2)は 1 – day_from(2112, 3, 4)は 63 – day_from(2112, 9, 3)は 246
演習 12 -0の実行結果 x[0] = 49 x[1] = 92 x[2] = 67 x[3] = 69 x[4] = 25 x[5] = 86 x[6] = 29 x[7] = 64 x[8] = 91 x[9] = 37 x[10] = 53 x[11] = 53 x[12] = 53 x[13] = 29 x[14] = 53 x[15] = 61 x[16] = 86 x[17] = 79 x[18] = 54 x[19] = 30 y[0] = 31 y[1] = 93 y[2] = 59 y[3] = 69 y[4] = 24 y[5] = 77 y[6] = 22 y[7] = 75 y[8] = 75 y[9] = 26 y[10] = 57 y[11] = 46 y[12] = 54 y[13] = 48 y[14] = 53 y[15] = 60 y[16] = 70 y[17] = 90 y[18] = 39 y[19] = 14
演習 12 -2の実行結果 x[0]の偏差=-9. 000000 x[1]の偏差=34. 000000 x[2]の偏差=9. 000000 x[3]の偏差=11. 000000 x[4]の偏差=-33. 000000 x[5]の偏差=28. 000000 x[6]の偏差=-29. 000000 x[7]の偏差=6. 000000 x[8]の偏差=33. 000000 x[9]の偏差=-21. 000000 x[10]の偏差=-5. 000000 x[11]の偏差=-5. 000000 x[12]の偏差=-5. 000000 x[13]の偏差=-29. 000000 x[14]の偏差=-5. 000000 x[15]の偏差=3. 000000 x[16]の偏差=28. 000000 x[17]の偏差=21. 000000 x[18]の偏差=-4. 000000 x[19]の偏差=-28. 000000 y[0]の偏差=-23. 100000 y[1]の偏差=38. 900000 y[2]の偏差=4. 900000 y[3]の偏差=14. 900000 y[4]の偏差=-30. 100000 y[5]の偏差=22. 900000 y[6]の偏差=-32. 100000 y[7]の偏差=20. 900000 y[8]の偏差=20. 900000 y[9]の偏差=-28. 100000 y[10]の偏差=2. 900000 y[11]の偏差=-8. 100000 y[12]の偏差=-0. 100000 y[13]の偏差=-6. 100000 y[14]の偏差=-1. 100000 y[15]の偏差=5. 900000 y[16]の偏差=15. 900000 y[17]の偏差=35. 900000 y[18]の偏差=-15. 100000 y[19]の偏差=-40. 100000
- Http //mbs.meb.gov.tr/ http //www.alantercihleri.com
- Siat.ung.ac.id
- B) http://www.schoolguides.com/types_of_scholarships.html
- Http www drfrostmaths com register php
- Iessuel ccnn
- Skyenimals a-z
- Http://zapatopi.net/treeoctopus
- Fingerprint challenge trimpe 2006
- Www.surveymonkey.com http //www.surveymonkey.com
- Seminarordner
- Http //htwins.net/scale 2/
- What is magnetic energy
- Http://www.whitehouse.gov/administration/cabinet
- Http://jfbradu.free.fr
- Plagium gratis
- Official smarter balanced summative assessment
- Www.youtubewatch v=ngppjtjdufi
- Wordle challenge
- Http //
- Http
- Http//gst.gov.in
- Myadata
- Brpc client
- Goto http
- · meaning in math
- Https ab hwc nhp gov in
- Http://bit.ly/profiling_sc
- Hcps edgenuity
- Http drive google com
- Mbgnet.mobot.org
- There was nothing leon the driver could do
- Http://www.tvdsb.on.ca/westmin/science/snc2g1/frogresp.htm
- Http msdn
- Http://www.nineplanets.org
- Http//n
- Httpkahoot
- Http ://stsp.creteil.iufm.fr/article89.html
- Bintang tahunan pramuka
- Http://javab.nkums.ac.ir
- Http://pipedial.iespana.es/index2.htm
- Http://numericalmethods.eng.usf.edu
- Www biography com search
- Http://l.ead.me/bakcsh
- Slidetodoc.com
- Http://kids.sandiegozoo.org/animals
- Http://www.scopus.com/
- Wapgames
- Http://tiemchung.vncdc.gov.vn
- Http/ //aka.ms/remoteconnect
- Http://zapatopi.net/treeoctopus
- "http basenacionalcomum mec gov"
- Gridclub cybercafe
- Altastic scramblinator
- Http://bit.ly/testpix2020
- Netstorage hb
- Assertion transpiration is a necessary evil
- Ppt subtitle
- Http://fac book
- Http://earthquake.usgs.gov/earthquakes/map/
- Uranus founder
- Http://vbabenefits.bswift.com
- North south east west globe
- 2learner.hcmup.edu.vn
- Meioss
- Single slit envelope
- Food group
- Youtube
- Www.kalviamuthu blogspot.com
- Wolfram alpha owner
- Http://www.blueplanetbiomes.org/world_biomes.htm
- Ucll toledo
- Http://www.humanmetrics.com/personality
- T. trimpe 2007 http //sciencespot.net/
- Intranet/cs
- Wiki.chipfc
- Ifotki
- Ruston-elementary 2 typingclub
- Https //www.python.org
- Pgoogle flights
- B-d-ribofuranosa
- Wikipedia deutschland
- Http //ringkas.kemdikbud.go.id/recon
- Sergio palao procedencia: http://catedu.es/arasaac/ .
- Parle wordle
- Dynamic adaptive streaming over http implementation
- Http://www.google.com/advanced_search
- Reshuege math
- Lv-jko
- Mdmhp
- Https://siap.jabarprov.go.id
- Sergio palao pictogramas
- Uri merli
- Doptlrc certificate download
- Http://htwins.net/scale/
- Short.npru.ac.th
- Http //ilp/fp2
- Https gcbger nv gov regapp
- Goto/inteljmp
- Http://www.louvre.fr
- Http youtube
- Ecounterp.com
- T. trimpe 2006 http //sciencespot.net/
- T. trimpe 2008 http://sciencespot.net/
- Firewall adalah
- Http protocol description
- Www hpaindonesia net
- Http://www.wordle.net/create
- Ch rahmoune
- Humanistic theories examples
- Http://122
- Www.ssp.postmatric.karnataka.gov.in 2021
- Tripartite personality
- Http://www.mysticspot.ru/?p=5
- Https://images.google
- Http://bwave.es/eliminar-el-estres-en-enfermeras/
- "http portal mec gov br seesp"
- "http basenacionalcomum mec gov"
- Http analyzer
- Http://140
- Http://metrocosm.com/global-migration-map.html
- Iseek search engine
- Google earth engine wikipedia
- Http://www.models-nn.com/
- Indeks profesionalitas asn aplikasi