Team 5

Newton's Laws Toolkit

Build an app that applies Newton's three laws of motion to calculate force, acceleration, momentum, impulse, and work-energy for various real-world scenarios.

🎯 Learning Goals

  • Differentiate between Newton's 1st, 2nd, and 3rd laws
  • Master the connection between Force, Mass, and Acceleration
  • Understand Work, Energy, and Power relationships
  • Implement complex mathematical functions for physical modeling

🌎 Why This Matters

Newton's laws are the fundamental rules for the entire universe. Whether it's a car braking on a road, a rocket taking off, or a bridge supporting weight, everything must obey these laws. Understanding them allows us to engineer anything that moves.

📖Understanding Newton's Three Laws

Theory Masterclass
"

Newton's Laws are the foundation of classical mechanics — they explain WHY things move. First Law (Law of Inertia): An object at rest stays at rest, and an object in motion stays in motion (with the same speed and direction) unless acted upon by an unbalanced force. Example: A book on a table stays still. A ball rolling on a smooth surface keeps rolling. Second Law (F = ma): Force = Mass × Acceleration. This is the most important equation in mechanics. More force → more acceleration. More mass → less acceleration (harder to move). The direction of acceleration is the same as the direction of the net force. Third Law (Action-Reaction): For every action, there is an equal and opposite reaction. Example: You push the wall → the wall pushes you back. Rocket pushes gas down → gas pushes rocket up. Related Concepts: Momentum: p = m × v (mass × velocity) Impulse: J = F × t = Δp (change in momentum) Work: W = F × d × cos(θ) (force × distance × cos of angle) Kinetic Energy: KE = ½mv² Power: P = W/t (work done per unit time)

Mathematical Foundation

fxF = m × a (Newton's Second Law)
fxMomentum: p = m × v
fxImpulse: J = F × t = Δp
fxWork: W = F × d × cos(θ)
fxKinetic Energy: KE = ½mv²
fxPower: P = W / t

🎨Part A — Designer View (UI Design)

Open MIT App Inventor → Switch to Designer view. Follow each step below to build the interface.

1

1. Screen Basics

• In the **Properties** panel (right) for **Screen1**. • Set **Title** to "Newton's F=ma Solver". • Set **AlignHorizontal** to Center. • Set **BackgroundColor** to black.

2

2. Input Fields

• From **Palette** -> **User Interface**, drag 2 **TextBoxes**. • Rename them: 'MassTxt' and 'AccelTxt'. • Set both to **NumbersOnly**. • In **Hint**, type "Mass (kg)" and "Acceleration (m/s²)".

3

3. The Calculate Button

• Drag a **Button** renamed 'ForceBtn'. • Set **Text** to "CALCULATE FORCE (N)". • Set **BackgroundColor** to Green and **TextColor** to White.

4

4. Result Display

• Drag a **Label** renamed 'ResultLbl'. • Set **Text** to "Result will appear here". • Set **FontSize** to 20 and **TextColor** to Yellow.

🧩Part B — Blocks View (Logic & Calculation)

Switch to Blocks view. Now add the logic that makes your app actually work.

1

1. Switch to Blocks

• Find the **Blocks** button at the top right and click it to build your logic.

2

2. F = ma Calculation

• Click **ForceBtn** (Gold). Drag 'when ForceBtn.Click'. • Click **ResultLbl**. Drag the green 'set ResultLbl.Text to' and snap it inside. • Go to the **Math** drawer (Blue). Drag out the '*' block. • Snap [MassTxt.Text] and [AccelTxt.Text] into the '*' slots.

3

3. Adding Units (Newtons)

• Go to the **Text** drawer (Bright Pink). Drag a 'join' block. • Join your answer with the text " Newtons". • This makes the result look professional: "Answer: 50 Newtons".

🧪Testing Your App

  • F=ma: m=5kg, a=3m/s² → F=15N
  • Momentum: m=2kg, v=5m/s → p=10 kg·m/s
  • Work: F=50N, d=10m, θ=0° → W=500J
  • Work at 90°: always 0 (perpendicular force does no work)
  • KE: m=1kg, v=10m/s → KE=50J

🚀Bonus Challenges

Extra credit — impress your instructor

  • Add a 'Collision Calculator' — elastic and inelastic
  • Add gravitational PE: PE = mgh and show total energy conservation
  • Create a 'real-world scenario' mode with preset situations
  • Add unit conversion within the app (kg↔pounds, m/s↔km/h)