It looks like you're new here. If you want to get involved, click one of these buttons!
/*
This program is used to work out Velocity. Not a widely used equation, but in shooting
and physics it's quite helpful.
Created by Semtex-Primed
*/
#include <iostream>
int main()
{
//Variable declarations
double vel; //Velocity
double invel; //Initial Velocity
double dist; //Distance
double time; //Time
std::cout << \"Semtex-Primed's Velocity calculator, this is based on the equation...\n\";
std::cout << \"Velocity = Initial Velocity + (Distance x Time)\n\n\";
/*
initial velocity [if known] alot of people will not know what the
initial velocity is. Hence entering 0 if it is not known.
*/
std::cout << \"Enter 'Initial Velocity' if known [0 if not known]: \";
std::cin >> invel;
std::cout << \"\n\n\";
//distance travelled
std::cout << \"Enter distance projectile travelled: \";
std::cin >> dist;
std::cout << \"\n\n\";
//time taken
std::cout << \"Enter time taken: \";
std::cin >> time;
std::cout << \"\n\n\";
//calculation area
vel = invel + (dist * time);
//Statement showing calulation and then answer
std::cout << \"The following equation \" << invel << \" + ( \" << dist << \"*\" << time
<< \" ) equalls velocity of the projectile, which is: \" << vel;
return 0;
}