Question: (Matlab please) 1) Write a script,lastname_HW3, that first prompts the user to enter a distance, in the form of a number, to convert from feet
(Matlab please)
1) Write a script,lastname_HW3, that first prompts the user to enter a distance, in the form of a number, to convert from feet to meters. Write a sub-function in the same script to convert this distance from feet to meters and return the value to the user. The output should display the final distance in meters up to two decimal points with the proper units.
2) Again, use keyboard input to prompt the user to enter 5 positive integers. If they do not enter 5 positive integers, prompt them again to enter 5 positive integers until they enter the values correctly. Write a subfunction in lastname_HW3 that takes these 5 numbers and calculates the sum of the factorials of these 5 numbers and returns the value(the sum, factorialSum)to the user stating that it is the sum of the factorials. Hint: Include specific instructions telling the user how to correctly input the 5 positive integers.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
