Everyday Calculator
Use a reusable function to calculate the capacity of a Ferris wheel.
CIS166AA · JavaScript Programming · 2022
This curated lab modernizes my original coursework into eight focused demonstrations—from functions and objects to DOM events, validation, and browser APIs.
Run the exercises// Start with a value
const curiosity = "How does this work?";
// Turn it into behavior
function practice(idea) {
return test(idea)
.debug()
.improve();
}
practice(curiosity);
Course progression
Interactive coursework
Each exercise preserves the concept of the original assignment while improving its accessibility, feedback, and code structure.
Use a reusable function to calculate the capacity of a Ferris wheel.
Create a classroom object and calculate its submission rate.
Generate a value from 1–100. Values between 50 and 75 win.
Loop through structured student data and convert numeric grades.
Query this document to count headings, paragraphs, links, and controls.
Interact with the field and watch focus, input, copy, and keyboard events.
Validate a number from 5–15 and return a useful inline message.
Request approximate browser coordinates only after the visitor chooses.
Looking back
This course taught me to break a problem into values, decisions, and visible outcomes. The original work also shows how much my approach has changed: I now favor semantic elements, modern JavaScript, inline feedback, permission-aware APIs, and interfaces that work without disruptive alerts.
The lab is not presented as advanced application architecture. It is an honest record of the fundamentals that support my next step into React and TypeScript.