How do I start this project

Hi this is my first C++ project and I have the basic idea what to do..

Click the bottom link

(Programming Projects)

Project 01

http://www.ee.ttu.edu/storrs/EE%201305%20-%20Introductuion%20to%20Engineering%20and%20Computer%20Programming%20Spring%202011/EE%201305.htm

I just need help starting it because I know I need to convert the formula into C++, then I'm stuck.

I want to learn C++ so if anyone can help me out I'd appreciate it.

...That's due tomorrow? Isn't that... cutting it a bit close? :/

Either way. C++ has a few functions to deal with some basic mathematics, including one for exponentials. In fact, your teacher gave a hint as to what it is: exp(). Subtle hint, but it was there. ;)

http://cplusplus.com/reference/clibrary/cmath/exp/

When you write your program, you will probably want to avoid using any integers. Every single number should end with a decimal point, and you'll probably want to define t as a double.

If you want any further help, feel free to ask for more!

-Albatross
You have defined constants and in the <cmath> header is the pow() function and exp() function.


Define some constants in main.
const double R = std::pow(10, 3);
Thanks for the input guys, it's not due tomorrow anymore since a few classes have been canceled so we have an extension.
Topic archived. No new replies allowed.