Hello, i want to write a program to print out a table showing time in 0.1 sec, soldier’s position, arrow’s position, and the distance in feet between the arrow and the soldier every tenth of a second until the arrow hits the soldier or he escapes, if he was X feet away from the barbarian when the arrow was loosed. Assume that the arrow travels at a constant velocity of 72 mph and the roman soldier runs at a constant speed of 12 mph. The range of the arrow is 120 feet. Print out how many seconds it took for the arrow to hit the
soldier or for the soldier to escape. The only input that is required is the distance of the soldier from the barbarian when the barbarian took the shot.
LoS_RoOcKoO 0 Newbie Poster
jwenting 1,889 duckman Team Colleague
free_eagle 0 Light Poster
1o0oBhP 4 Posting Pro in Training
harshchandra -3 Junior Poster in Training
steveh 0 Newbie Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.