#include #include #include using namespace std; int main() { const double H = 6.626070040e-34; //Planck's constant (Joule-seconds) const double C = 299800000; //Speed of light in vacume (meters per second) const double joule_to_ev=6.242e+18; double wavelength=100; double nm_to_meter=1e+9; ifstream MyReadFile("wavelengths.txt"); ofstream MyFile("calculations.txt"); while (MyReadFile>>wavelength) { double ans=(H*C)/wavelength*nm_to_meter*joule_to_ev; // Write to the file MyFile <