Final Project 1.0

--Originally published at Problem solving with programming

First, my group and I think about making a PONG like game in C++.

Something like this:

http://www.lawebdelprogramador.com/codigo/C-Visual-C/270-Juego-de-ping-pong-en-C.html

But there were things in the code that I don’t understand at all, so I was feeling a little overwhelmed by the project.

In the making of the code of the dot product of my another post, I think it would be cool to do some calculator like program to help with vectors and do bunch of physics operations.

I talked about to my group and seem to like it.

I learn to do cases in my Introduction to Programming class and I think it would be a good idea to organize our program.

We saw something like this:

Captura de pantalla 2017-03-29 a la(s) 22.29.28.png

I will post more about it while we work.

Thanks for reading.


Dot product (Physics)

--Originally published at Problem solving with programming

I was making my physics homework and I searched for a dot product calculator online to not waste more time doing that. Because I couldn’t find anything, I started to think that to make a program wouldn’t be so difficult so, there is that.

The dot product is the relation between to vectors and it gives you a single number.

http://www.geoan.com/analitica/vectores/producto_punto.html

https://es.wikipedia.org/wiki/Producto_escalar

In the making of the code I searched for the function of the arc cosine that is needed to get the angle, here is a web that helps with that:

http://www.cplusplus.com/reference/cmath/acos/

Please, feel free to use this in your physics tasks.

Code on GitHub: PP.cpp