Question: Write a script called echosting that will prompt the user for a string, and will echo print the string in quotes: >>echostrin Enter your string:

 Write a script called echosting that will prompt the user for

Write a script called echosting that will prompt the user for a string, and will echo print the string in quotes: >>echostrin Enter your string: I like MATLAB Your string was: 'I like MATLAB' (6 pts) 5. Write a script bumin that prompt user to enter the distance and brightness and then calculates and prints the luminosity L of a star in Watts. The luminosity L is given by L-4 T d2 b where d is the distance from the sun in meters and b is the brightness in Watts/meters2. Here is an example of executing the script: (7 pts) 6. >> lumin This script will calculate the luminosity of a star When prompted, enter the star's distance from the sun in meters, and its brightness in W/meters squared. Enter the distance: 1.26e12 Enter the brightness: 2e-17 The luminosity of this star is 399007399.75 watts

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!