Click here to Skip to main content
15,897,371 members
Please Sign up or sign in to vote.
2.00/5 (2 votes)
See more:
i have to make a missile launch system using OOP in C++ as our semester final project.here's the scenario:
we have a missile launch base at a specific distance from our enemy's.the enemy will shoot a missile whose velocity,angle and range we know.We have to shoot our missile in such a way that it hits the enemy's in mid-air.how do I do that?i mean there are so many possibilities,e.g time correspondence.what should i do?
here are the features that i have added to this program:
1_the user will enter initial velocity of his missile and the program will calculate the angle required to hit the enemy base-and vice versa.
2_the user will enter the angle and velocity of the missile and the program will tell if his missile will hit the enemy base or not.
I think it is too simple,can you please also give me some ideas for more features.we havnt yet learned graphics,so kindly plz dont suggest those.
Posted
Updated 1-Dec-11 6:45am
v2
Comments
Sergey Alexandrovich Kryukov 1-Dec-11 12:50pm    
Not a question. What kind of help do you expect? Remember, this is just Quick Questions & Answers.
--SA
Maximilien 1-Dec-11 14:15pm    
A good start : http://en.wikipedia.org/wiki/Trajectory (The easiest answer).
Other than that, I've got no clue.
Albert Holguin 1-Dec-11 16:17pm    
Start simple, first simulate a simple ballistic missile launch and determine how you would intercept that missile along it's ballistic trajectory. That in itself could be challenging, don't think about other factors until you have that down, you can always add complexity as you go. If this were a true system (cough, cough, Patriot missiles), it would be highly complex.
Sergey Chepurin 1-Dec-11 16:27pm    
And what OOP constructs you are going to implement here?
It is a pure calculation task.
Albert Holguin 1-Dec-11 17:56pm    
You mean missiles can't be modeled as objects? hmm... I think they can.

1 solution

You could for example add windspeed and wind direction, factor in friction and air resistance, different sizes and forms of missiles and their effect on air resistance. Or add different kind of missiles, e.g. cluster munition.
How serious is the whole thing? If not too much, add a flock of birds and let them fly randomly in the patch of the missiles or some plane, or thunderstorm with random lightning or Superman...
There are so many possibilities, just sit down and think about it and I am sure, you will come up with something cool or interesting. Best of luck. :-)
 
Share this answer
 
Comments
Sergey Alexandrovich Kryukov 1-Dec-11 12:49pm    
:-) My 5.
Actually, the problem really needs numeric methods only when the air resistance is taken into consideration. Not tremendously difficult, but it needs considerable work. Hard to say what kind of help can OP hope for.
--SA

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900