(Program) Heat is radiated from the sun and all planets orbiting the sun. The heat that’s radiated can be calculated by using the following formula:
E = e σ T4
E is the energy radiated per second in units of watts per meter squared (watts/m2).
e is the emissivity of the substance, which is 1 for the sun and all the planets.
σ is the constant (.000000056697 = 5.6697e-8).
T is the surface temperature in degrees Celsius.
For example, the heat radiated from the sun, which has an emissivity of 1 and a surface temperature of approximately 6000° C, is as follows:
E = (1) x (.000000056697) x (6000)4 watts/m2
= 73,479,300 watts/m2
Using the formula, write a C++ program that accepts a planet’s temperature and provides the heat generated from the planet as its output. Your program should assign the value 5.6697e-8 to a symbolic constant named HEATFACTOR. After determining that your program is working correctly (make sure it produces the correct radiation for the sun), use it to complete the following chart:
We need at least 10 more requests to produce the solution.
0 / 10 have requested this problem solution
The more requests, the faster the answer.