1 / 13

Lab 8: ARRAY

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).

dawson
Download Presentation

Lab 8: ARRAY

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. 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)

  2. 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

  3. 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

  4. Exercise 1

  5. 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

  6. Exercise 3

  7. Exercise 5 http://122.155.1.128/ProgrammingForFun/siit/its100/lab8/ex5/play.html

  8. http://122.155.1.128/ProgrammingForFun/siit/its100/lab8/ex5/play.htmlhttp://122.155.1.128/ProgrammingForFun/siit/its100/lab8/ex5/play.html

  9. Self Practice 3

  10. 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.

  11. 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.

More Related