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

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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!