Question: Write a script lumen.m that will calculate and print the luminosity L of a star in Watts. The luminosity L is given by L =
Write a script lumen.m that will calculate and print the luminosity L of a star in Watts. The luminosity L is given by L = 4 pi d^2 b where d is the distance from the sun in meters, and b is the brightness in Watts/meters squared. Here is an example of executing the script: > > lumen This script will calculate the When prompted, enter the star's Enter the distance: 1.26e12 Enter the brightness: 2e-17 The luminosity of this star is
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
