is the outcome of this code correct?

Here is the source for a calculator in which the user imputs their weight, and the output is a comparison of their energy to that of your average atomic bomb. For those who are mathematically intelligent : Is the outcome correct?
source:


#include <iostream>
using namespace std;
int main ()
{

float e,g, c, d, f, h, i;
cout << "enter your weight in lb's ";
cin >> g;
h = g*4.44822162;// weight in newtons
i=h/9.8; //mass
d=4.185*1e15;//energy of an atomic bomb
c = 3e8*3e8;//speed of light squared
e = i*c;//energy of mass
f = e/d;//times the energy of an atomic bomb

cout << "Energy equals ";
cout << f;
cout << " times the energy of an atomic bomb";
cout << "\n \n \n";
system("pause");
return 0;
}
NEVER use system("pause"); you use this forum there are two posts that you need to read, the 1st and 2nd posts are locked there for a reason, the second one goes into explicit detail about why you should NEVER use system commands.

second, the actual calculation seems about correct, but if i remember correctly the average person at rest only has the energy of about 5 atomic bombs.
Topic archived. No new replies allowed.