Modify program ball from example 4-7 to read in the acceleration due to gravity at a particular location, and to calculate the maximum range of the ball for that acceleration. After modifying the program, run it with accelerations of -9.8, -9.7, and -9.6m/s2.
What effect does the reduction in gravitational attraction have on the range ofthe ball? What effect does the reduction in gravitational attraction have on the best angle theta at which to throw the ball?