asked 176k views
5 votes
The following code simulates the movement of a golf ball in the air after it's been hit. initialVelocity ← 44 accelFromGravity ← -9.8 x ← 0 y ← 0 t ← 0 REPEAT UNTIL (y < 0) { x ← initialVelocity * t; y ← (initialVelocity * t) + ((accelFromGravity * (t*t)) / 2) DISPLAY(x) DISPLAY(y) t ← t + 1 } Which statement best describes why this simulation is an abstraction?

asked
User Imrek
by
8.1k points

1 Answer

1 vote

Answer:

It leaves out details that do not effect the results as much, such as air resistance or golf ball material.

Step-by-step explanation:

A simulation is an abstraction of a complex phenomena that captures the higher-level details that are necessary for the purposes of the simulation and excludes other details.

answered
User Fush
by
7.8k points