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, 22.06.2019 22:30
The qwerty keyboard is the most common layout of keys on a keyboard
Answers: 3
question
Computers and Technology, 23.06.2019 01:10
Problem 1 - hashing we would like to use initials to locate an individual. for instance, mel should locate the person mark e. lehr. note: this is all upper case. generate a hash function for the above using the numbers on your telephone. you know, each letter has a number associated with it, so examine your telephone keypad. generate 512 random 3 letter initials and take statistics on a linked list array size 512 to hold this information report how many have no elements, 1 element, 2 elements, does this agree with the hashing statistics distribution?
Answers: 1
question
Computers and Technology, 23.06.2019 16:30
You have read about the beginnings of the internet and how it was created. what was the internet originally created to do? (select all that apply) share research. play games. communicate. share documents. sell toys
Answers: 1
question
Computers and Technology, 24.06.2019 00:00
Visualizing a game of “tag” to remember the meaning of contagious
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
question
Mathematics, 01.07.2021 19:00
question
Mathematics, 01.07.2021 19:00
question
Mathematics, 01.07.2021 19:00
Questions on the website: 13722362