I have this problem it go thus; E=MC~2(change in mass*C square) where E=energy produced(in joule),M=change in mass(in kg),C=speed of light(3.0*10`8ms~1) work of EINSTEIN. I was asked to write a computer program to calculate the energy produce when mass is know. pls help.

What have you started? What are your thoughts about how to proceed?

Post your code. Ask specific questions and show that you have made some effort with this.

I just need algorithm and flowchart for it .

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.