Introductory programming courses involve the development of skills related to analysis, reasoning, and comprehension. Therefore, making execution visible (which instruction runs, which branch is taken, and how variables change) can facilitate early understanding. This work presents a proposal based on Information Visualization to help understand how control structures work. The objective of this study was to design a microworld that allows step-by-step observation of the functioning of control structures (sequence, simple and multiple selection, arithmetic progression, while, and repeat-until). These structures are part of Structured Programming. An application was developed in Java with four modules: 1) microworld environment, 2) visual interface for structures, 3) parameter input, and 4) visualization. The microworld was modeled as a 15 × 15 grid (30 × 30 px) mapped to a matrix, with a GUI (Swing) that captures conditions, selectors, and initial values. Animation was carried out through timers using metaphorical actions (walking, running, hitting) and energy/life variables. As a result, a prototype was developed that visualizes each structure with its specific semantics and allows users to set parameters and observe effects in real time. The modular architecture and timed rendering provide fluidity and scalability. It is concluded that the microworld translates code logic into reproducible visual cues, reduces costly inferences, and supports stable mental models for flow control.
References
[1]
Laureano-Cruces, A.L. and Barceló-Aspeitia, A.A. (2003) Formal Verification of Multi-Agent Systems Behaviour Emerging from Cognitive Task Analysis. JournalofExperimental&TheoreticalArtificialIntelligence, 15, 407-431. https://doi.org/10.1080/0952813031000119719
[2]
Yáñez-Castillo, J.A., Laureano-Cruces, A.L. and Garmendia-Ramírez, F. (2017) Diseño emocional de elementos interactivos visuales: Una perspectiva para mejorar la interacción de los inmigrantes digitales con la computadora personal. Revista Tecnología & Diseño, No. 8, 37-55.
[3]
Mladenović, M., Žanko, Ž. and Aglić Čuvić, M. (2020) The Impact of Using Program Visualization Techniques on Learning Basic Programming Concepts at the K-12 Level. ComputerApplicationsinEngineeringEducation, 29, 145-159. https://doi.org/10.1002/cae.22315
[4]
Qian, Y. and Lehman, J. (2017) Students’ Misconceptions and Other Difficulties in Introductory Programming: A Literature Review. ACMTransactionsonComputingEducation, 18, 1-24. https://doi.org/10.1145/3077618
[5]
Sorva, J. (2013) Notional Machines and Introductory Programming Education. ACMTransactionsonComputingEducation, 13, 1-31. https://doi.org/10.1145/2483710.2483713
[6]
Vuckovic, M. and Schmidt, J. (2022) On Sense Making and the Generation of Knowledge in Visual Analytics. Analytics, 1, 98-116. https://doi.org/10.3390/analytics1020008
[7]
Wall, E., Agnihotri, M., Matzen, L., Divis, K., Haass, M., Endert, A., et al. (2019) A Heuristic Approach to Value-Driven Evaluation of Visualizations. IEEETransactionsonVisualizationandComputerGraphics, 25, 491-500. https://doi.org/10.1109/tvcg.2018.2865146
[8]
Viana, V.C. (2020) Sistema web para la obtención y visualización de información sobre Unidades de Enseñanza y Aprendizaje. Proyecto terminal, División de Ciencias Básicas e Ingeniería, Universidad Autónoma Metropolitana Azcapotzalco, Mexico.
[9]
Sánchez, B.R. (2020) Presentación de estadísticas académicas con base en criterios de ingreso utilizando técnicas de visualización de información. Proyecto terminal, División de Ciencias Básicas e Ingeniería, Universidad Autónoma Metropolitana Azcapotzalco, Mexico.
[10]
Omer, U., Farooq, M.S. and Abid, A. (2021) Introductory Programming Course: Review and Future Implications. PeerJComputerScience, 7, e647. https://doi.org/10.7717/peerj-cs.647
[11]
Yáñez-Castillo, J.A. (2016) De lo efectivo a lo afectivo. Master’s Thesis, Universidad Autónoma Metropolitana.
[12]
Torres-Velasco, E.O. (2021) Visualización a través del razonamiento cualitativo: un fenómeno de astrofísica. Master’s Thesis, Universidad Autónoma Metropolitana.
[13]
Laureano-Cruces, A.L., Serrano-Muñoz, R., Castillo-Bernal, A.S., Sanchez-Guerrero, L. and Ramírez-Rodríguez, J. (2025) Empathy through the Visualization of Emotions: Story of a Toltec Prince. Association for the Advancement of Computing in Education (AACE), 634-643. https://www.learntechlib.org/primary/p/211137/
[14]
Laureano-Cruces, A.L., Yáñez-Castillo, A., Sánchez-Guerrero, L., Ramí-rez-Rodríguez, J. and Mora-Torres, M. (2018) Examples for a Virtual Micro World: Visualization of Abstract Concepts. World Conference on E-Learning in Corporate, Government, Healthcare, and Higher Education, Las Vegas, 15-18 October 2018, 1432-1437.
[15]
Vygotsky, L.S. (1978) Mind in Society: The Development of Higher Psychological Processes. Harvard University Press.