Reference no: EM132164453
Using (C++ microsoft visual studios 2013)
Write a program with comments (//comments explaining to user) that uses methods and simulates throwing a rock in a basket in a straight line.
Each time the program is run, the program should randomly calculate and tell the user the distance to the basket between 20 and 100 feet.
Each time the program is run, the program should randomly calculate the wind speed between 0 and 50 mph. Each time the program is run, the program should randomly say if the wind is blowing towards the basket or away from the basket. Allow for the gravitational pull of the Earth.
The user should be able to adjust the strength of the throw as well as the angle of the throw. The program should tell the user the distance of the throw.
The program should give the user multiple attempts at the throw without changing the distance or wind speed to the basket.
The program should count how many attempts it takes the user to put the rock in the basket.
Assume that the user always throws the rock in a perfect straight line. Assume that the basket is a three foot circle.