# Tutorial Q-34: A calculation in a web page

Write the foot-plant force formula in Python and in JavaScript, run both on three hand-checked cases, and confirm they give the same numbers.

Address: https://apopt.com/data/tutorials/q34-calc-web-page/  
License: CC BY 4.0  
Prepared: 2026-12-03

## Description

Files for the tutorial *A calculation in a web page* (https://apopt.com/course/tutorials/q34-calc-web-page/). `raw/` holds the inputs as the device or app wrote them; `clean/` holds the cleaned copies the tutorial writes; `expected/` holds what a correct run prints and saves, so you can check your own run.

## Files

| file | size | rows | description |
|---|---|---|---|
| [clean/force_js.csv](https://apopt.com/data/tutorials/q34-calc-web-page/clean/force_js.csv) | 97 B | 3 rows | Cleaned copy written by the tutorial |
| [expected/check_force.mjs](https://apopt.com/data/tutorials/q34-calc-web-page/expected/check_force.mjs) | 386 B |  | Output a correct run produces (compare with yours) |
| [expected/force.mjs](https://apopt.com/data/tutorials/q34-calc-web-page/expected/force.mjs) | 102 B |  | Output a correct run produces (compare with yours) |
| [expected/printed-output.txt](https://apopt.com/data/tutorials/q34-calc-web-page/expected/printed-output.txt) | 538 B |  | Everything the tutorial prints, cell by cell |
| [raw/test_cases.csv](https://apopt.com/data/tutorials/q34-calc-web-page/raw/test_cases.csv) | 244 B | 3 rows | three typed test cases (contact and flight time in seconds), not a recording: two from the book's running examples and one short sprint contact |

Large files are stated with their size. A `preview.md` in this folder shows the first rows of each table.

## Provenance

- Source: Data-Driven Athletics tutorials (IRSRI, 2027)
- Removed: nothing; inputs are synthetic, published course data, or the instructor's own
- Permission basis: Published with the course under CC BY 4.0
- Prepared with: dda/tutorials/build.py

## Used in

- Book: [Chapter 12: Build Your Own Performance App](https://apopt.com/book/ch12-app/)
- Course: [Week 12 lesson](https://apopt.com/course/week/12/)
- Homework P24: [https://apopt.com/course/assess/p24/](https://apopt.com/course/assess/p24/)

## How to cite

Tutorial Q-34: A calculation in a web page. IRSRI Sports Research Institute, 2026. Data-Driven Athletics data repository. https://apopt.com/data/tutorials/q34-calc-web-page/

## Load it

```python
import pandas as pd
df = pd.read_csv("https://apopt.com/data/tutorials/q34-calc-web-page/raw/test_cases.csv")
```
