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 18:10
For each of the following claims, determine whether they are true or false. justify your determination (show your work). if the claim is false, state the correct asymptotic relationship as o, θ, or ω. unless otherwise specified, lg is log2.(a) (b) (c) (d) (e) (f) (g) (h) (i) (j)n+1 =22n =2n =1 =ln2 n =n2 +2n−4 =33n = 2n+1 =√n = 10100 =o(n4) o(2n)θ(2n+7 ) o(1/n)θ(lg2 n) ω(n2 )θ(9n ) θ(2n lg n )o(lg n) θ(1)
Answers: 1
question
Computers and Technology, 22.06.2019 15:30
When creating a budget, log fixed expenses before income. after income. after savings. at the top.
Answers: 1
question
Computers and Technology, 23.06.2019 20:30
1. for which of the following are you not required to signal beforehand? a. changing lanes b. speeding up c. stopping
Answers: 2
question
Computers and Technology, 24.06.2019 14:00
In the microsoft® access® and microsoft excel® programs, the ribbon contains tabs that are divided into with like tools in them. parts groups containers bunches
Answers: 1
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
question
Mathematics, 05.07.2019 11:00
question
English, 05.07.2019 11:00
question
Social Studies, 05.07.2019 11:00
Questions on the website: 13722363