I am new to vb. Actually I am in vbscript. I hope someone will help me--if not please advise where I may be able to get help writing this program. It's rather lenghty-so I won't post my feeble attempt at trying to get it to work.
Problem: Determine the angle to wich a cannon is to be raised and the initial velocity of the shell as it leaves the barrel. The shell will arc in a parabolic pattern and impact the groud wherupon there should be a message saying:
1. the target ahs been destroyed
2. the shell fell short of the target by a specified number of feet
3. the shell overshot the target by a specified number of feet
Only 5 rounds of ammo are allowed, so the target must be hit before you run out of ammo
1.Prompt for the distance to the target
2.Prompt for the angle in degrees the cannon is to be raised
3.Prompt for the initial velocity
4.Calculate where the shell will land
Wher the velocity is in feet per second and the angle is in radians--the angle must be converted from degrees to radians before it can be used in the sin function
5. If the shell lands within 1% of the dstance to the target, you win and the target is destroyed,
6. If the shell lands short or over flies the target, print a message stating how far the target was missed
7. Determine a new angle and velocity for the next attempt
8.Continue in this manner until either the target is hit or the shells run out
9. Arrange for the program to allow for multiple trials until a distance of zero is entered
Please help
:confused:
