I need help making a program

Please support our C advertiser: Programming Forums - DaniWeb Sister Site
Reply

Join Date: Feb 2005
Posts: 1
Reputation: LoS_RoOcKoO is an unknown quantity at this point 
Solved Threads: 0
LoS_RoOcKoO LoS_RoOcKoO is offline Offline
Newbie Poster

I need help making a program

 
0
  #1
Feb 6th, 2005
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.
Reply With Quote Quick reply to this message  
Join Date: Nov 2004
Posts: 6,143
Reputation: jwenting is just really nice jwenting is just really nice jwenting is just really nice jwenting is just really nice 
Solved Threads: 212
Team Colleague
jwenting's Avatar
jwenting jwenting is offline Offline
duckman

Re: I need help making a program

 
0
  #2
Feb 6th, 2005
Well, what's stopping you?
You want to write it, so I guess you're not asking us to do it for you?
Reply With Quote Quick reply to this message  
Join Date: Jan 2005
Posts: 41
Reputation: free_eagle is an unknown quantity at this point 
Solved Threads: 0
free_eagle's Avatar
free_eagle free_eagle is offline Offline
Light Poster

Re: I need help making a program

 
0
  #3
Feb 6th, 2005
Originally Posted by LoS_RoOcKoO
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.



As the rule of the Forum first you have to do something instead asking someone for doing it .
You have to show what have you done and what's the problem I see here like u wanna ready programm not help...


Submit your code and then people will help to find your problem...
Reply With Quote Quick reply to this message  
Join Date: Dec 2004
Posts: 445
Reputation: 1o0oBhP is an unknown quantity at this point 
Solved Threads: 6
1o0oBhP's Avatar
1o0oBhP 1o0oBhP is offline Offline
Posting Pro in Training

Re: I need help making a program

 
0
  #4
Feb 7th, 2005
I would suggest looking at Projectile physics if you wanted to code that! post back any attempts though!
http://sales.carina-e.com

no www
no nonsense

coming soon to a pc near you! :cool:
Reply With Quote Quick reply to this message  
Join Date: Nov 2004
Posts: 68
Reputation: harshchandra is an unknown quantity at this point 
Solved Threads: 1
harshchandra harshchandra is offline Offline
Junior Poster in Training

Re: I need help making a program

 
0
  #5
Feb 7th, 2005
It seems i m back in +2 and studying mechanics....newtons law ...ha ha
Reply With Quote Quick reply to this message  
Join Date: Nov 2004
Posts: 15
Reputation: steveh is an unknown quantity at this point 
Solved Threads: 0
steveh steveh is offline Offline
Newbie Poster

Re: I need help making a program

 
0
  #6
Feb 7th, 2005
Google for Ballistics Game Programming.
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC