SearcharxivSearch

arXiv subjects

Kathy A. Harper

Publications and source records attributed to Kathy A. Harper.

2 recordsLinked to original sources

A novel approach for using programming exercises in electromagnetism coursework

While there exists a significant number of web interactives for introductory physics, students are almost never shown the computer code that generates these interactives even when the physics parts of these programs are relatively simple. Building off of a set of carefully-designed classical mechanics programming exercises that were constructed with this goal in mind, we present a series of electromagnetism programming exercises in a browser-based framework called p5.js. Importantly, this framework can be used to highlight the physics aspects of an interactive simulation code while obscuring other details. This approach allows absolute beginner programmers to gain experience in modifying and running the program without becoming overwhelmed. We plan to probe the impact on student conceptual learning using the Brief Electricity and Magnetism Assessment and other questions. We invite collaborators and teachers to adopt this framework in their high school or early undergraduate classes. All exercises are available at http://compadre.org/PICUP

physics.ed-ph

A Game-Centered, Interactive Approach for Using Programming Exercises in Introductory Physics

Incorporating computer programming exercises in introductory physics is a delicate task that involves a number of choices that may have a strong affect on student learning. We present an approach that speaks to a number of common concerns that arise when using programming exercises in introductory physics classes where most students are absolute beginner programmers. These students need an approach that is (1) simple, involving 75 or fewer lines of well-commented code, (2) easy to use, with browser-based coding tools, (3) interactive, with a high frame rate to give a video-game like feel, (4) step-by-step with the ability to interact with intermediate stages of the "correct" program and (5) thoughtfully integrated into the physics curriculum, for example, by illustrating velocity and acceleration vectors throughout. We present a set of hour-long activities for classical mechanics that resemble well-known games such as "asteroids", "lunar lander" and "angry birds". Survey results from the first activity from four semesters of introductory physics classes at OSU in which a high percentage of the students are weak or absolute beginner programmers seems to confirm that the level of difficulty is appropriate for this level and that the students enjoy the activity. These exercises are available for general use at http://compadre.org/PICUP In the future we plan to assess conceptual knowledge using an animated version of the Force Concept Inventory originally developed by M. Dancy.

physics.ed-ph