130 likes | 279 Vues
Lab 8: ARRAY. ITS100: Computer and Programming Lab. Section 1 Instructor : Wirat Chinnan TAs : Ms. Sasirassamee Buavirat Mr. Thanasan Tanhermhong ( Tum ) Ms. Pattheera Panitsuk ( Fon +) Mr. Pongsate Tangseng Mr. Chinorot Wangtragulsang Mr. Kanin Assantachai (Ob).
E N D
Lab 8: ARRAY ITS100: Computer and Programming Lab. Section 1Instructor: WiratChinnan TAs: Ms. SasirassameeBuavirat Mr. ThanasanTanhermhong (Tum) Ms. PattheeraPanitsuk (Fon+) Mr. PongsateTangseng Mr. ChinorotWangtragulsang Mr. KaninAssantachai (Ob)
Array Declaration int digits[10] = {1,2,3,4,5,6,7,8,9,10}; static float x[6] = { 0,0.25,0,0.50,0,0}; char color[] = {'R','E','D'}; char color2[] = "RED" digits[0] = 1 x[0] = 0 color[0] = 'R‘ digits[1] = 2 x[1] = 0.25 color[1] = 'E' digits[2] = 3 x[2] = 0 color[2] = 'D' digits[3] = 4 x[3] = 0.50 digits[4] = 5 x[4] = 0 color2[0] = 'R' digits[5] = 6 x[5] = 0 color2[1] = 'E' digits[6] = 7 color2[2] = 'D' digits[7] = 8 color2[3] = '\0' digits[8] = 9 digits[9] = 10
To Do in Class • Exercise 1, 2, 3, 5, and self practice 3 • Call your TA when you finished. • You may take a break • Be ready for the speed test at 15.00
http://122.155.1.128/ProgrammingForFun/siit/its100/lab8/ex2/play.htmlhttp://122.155.1.128/ProgrammingForFun/siit/its100/lab8/ex2/play.html Exercise 2
Exercise 5 http://122.155.1.128/ProgrammingForFun/siit/its100/lab8/ex5/play.html
http://122.155.1.128/ProgrammingForFun/siit/its100/lab8/ex5/play.htmlhttp://122.155.1.128/ProgrammingForFun/siit/its100/lab8/ex5/play.html
Speed Test • Speed test should be treated just like a real exam. • Rules: • No talking. Be quiet. • No mobile phone. • No electronic devices other than your PC • No Internet • No cheating • Cheating will result in a severe penalty • TAs will not help you (except when your PC crashes). • Time allowed: 45 minutes.
Speed Test Instruction • Write your name on the question sheet. • Create all workspace on your ‘Desktop’ • When you finished • Raise your hand to signal the assigned TA • TA grades your work • Quietly leave the room • DO NOT bring the question sheet out. Leave it on your table.