subject

Write a program 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.

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 21.06.2019 22:00
You should try to photograph people on bright sunny days because the light will be best a) true b) false
Answers: 1
question
Computers and Technology, 22.06.2019 08:00
Two technicians are discussing the common u-joint. technician a says its input and output speeds should be equal. technician b says that it normally has two yokes. which technician is correct?
Answers: 1
question
Computers and Technology, 22.06.2019 14:30
If the polar bear were taken out of the food chain what would happen to the seal population the seal population would diminish the seal population would grow dramatically the seal population would stay the same the seal population would decrease slightly
Answers: 1
question
Computers and Technology, 23.06.2019 05:00
Acompany is inviting design for its new corporate logo from its users. this is an example of ? a. crowdfunding b. crowdvoting c. crowdsourced design d. crowdtracking
Answers: 3
You know the right answer?
Write a program that uses methods and simulates throwing a rock in a basket in a straight line. Each...
Questions
Questions on the website: 13722363