A Movie Stunt Simulation with Graphical User Interface
The freeway is 50 feet (15m) above the ground at the jump-off point. Ignore air resistance in the calculation.
The movie crew can use a slider to adjust the freeway incline angle in degrees from the app for calculation.
The movie crew has an action button to start the bus driving action.
The movie crew can click the gas button to increase the bus speed. Recall that 1mph = 0.44704(m/s).
The app will plot the freeway for the movie crew. The jump-off point of the freeway is elevated to 15 meters tall. Add 20 meters of the horizontal freeway before the jump-off point to the plot. The angle of the freeway should reflect the most up-to-date incline angle value. Add another 45 meters of freeway after the 15-meter horizontal gap to the plot.
The app will animate the bus driving on the freeway for the movie crew and predict the result of the stunt.
The Graphical User Interface components and actions include:
- Add an Axes to show a picture in the app [1 pt].
- Show an initial picture in the app when the program starts [1 pt].
- Add another Axes to show plots in the app [1 pt].
- Adjust the axis (XLim and YLim) to plot the simulation 80 meters wide and 40 meters tall [1 pt].
- Set plot title, and label x-axis and y-axis [1 pt].
- Plot the freeway and the gap in the same figure when the program starts [1 pt].
- Obtain the incline angle of the jump ramp value in degrees from the Slider [1 pt].
- Draw 20 meters of the horizontal freeway before the 15-meter gap in the plot. The freeway is 50 feet (15m) above the ground at the jump-off point. The x-direction coordinates of the freeway range from zero to 20.