1 / 8

Visual Programming

Visual Programming. Midterm. Z. A. C. C. B. A. X. Z. Y. A. Y. Z. 4. 10. 25. 4. 25. ProcA(A,B,C). btnExam. A = 10 B = 25 C = 4. X. 10. ProcA(X,Y,Z). A. C. 0. 0. B. X. C. A. Z. Z. A. X. Y. A. Y. A. C. 35. 10. 10. 35. 25. 0. 34. 10. 4. 25. 4.

trula
Télécharger la présentation

Visual Programming

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. Visual Programming Midterm

  2. Z A C C B A X Z Y A Y Z 4 10 25 4 25 ProcA(A,B,C) btnExam A = 10 B = 25 C = 4 X 10 ProcA(X,Y,Z)

  3. A C 0 0 B X C A Z Z A X Y A Y A C 35 10 10 35 25 0 34 10 4 25 4 14 34 ProcA(A,B,C) btnExam btnExam1:35-25-34 • A = 10 + C • X = A + Y • Y = A + Z • Z = 20 + Y ProcA(X,Y,Z) ProcA: 10-25-0

  4. ProcB(A,B,C) B A A B A C T C C T B A B C C 69 34 35 25 0 83 83 25 69 35 50 69 34 btnExam btnExam2::35-69-83 • T = A + C • A = 2 * B • B = T • C = A + 33 ProcB(X,Y,Z) ProcB:50-69-83

  5. ProcC(Z) A B C 0 171 69 C A btnExam 83 166 35 Z 83 166 • C = B + Z • A = C + 19 • Z = 83 + Z ProcC(Z) C 152 0

  6. ProcC(Z)-ProcA(Z,A,C) A B C 69 171 C = B + Z A = C + 19 Z = 83 + Z Z C ProcC(Z) 166 0 152 X Y Z 166 0 171 152 ProcA(X,Y,Z) A

  7. ProcC(Z)-ProcA(Z,A,C) A B C 69 171 C = B + Z A = C + 19 Z = 83 + Z Z C ProcC(Z) 181 182 ProcC171-69-182 X Y Z A = 10 + C X = A + Y Y = A + Z Z = 20 + Y 181 162 182 ProcA(X,Y,Z) A ProcA:10-69-0 10

  8. ProcC(Z) BtnExam A B C 171 69 C A btnExam 181 35 btnExam1:35-69-181 Z 181 C = B + Z A = C + 19 Z = 83 + Z ProcC(Z) C 182 ProcC:171-69-82

More Related