Return To CS 110 Home

Colour Theme   Font Size Options
 
   
   
   
Missile Game

Function Lab Programming Study

This program is based on a CS110 class assignment from a previous semester. It demonstrates many user defined functions. You can study this program to get a better understanding of how user defined functions can break a complex program into readable pieces.

Missile Game

The distance to the landing point of a a projectile, launched at an angle angle (in radians) with an initial velocity of velocity (in feet per second), ignoring air resistance, is given by the formula:

velocity * velocity * sin(2*angle) distance = __________________________________ 32.2