write a script named yourlastnamea3_hw_1 m which 1 10 pts prompts the
SPR 2022 EGR 150
Due: Sept. 8th, 2023
Write a script named "YourLastNameA3_HW_1.m" which:
1. (10 pts) Prompts the user to enter a depth in meters and assigns the value to a
variable depth using the MATLAB input function.
2. (10 pts) Calculates the speed of a tsunami in meters per second according to the
where g = 9.81 m/s²and d = 1400 is the depth of the ocean in meters and assigns the
result to the variable velTsunami.
3. (20 points) Create an external function "MpsTokmph.m" for m/s to km/h conversion,
that takes an input argument in m/s and outputs a value in km/h.
4. (a) (10 pts) Calculate the wave speed of the tsunami in km/h using your external
function "MpsTokmph.m", and print the speed in km/h using the disp function.
(b) (10 pts) Calculate how far, in km, the wave will travel in 12 hours.
5. include housekeeping commands clear and clc.
6. include comments.
7. have only one command per line.
8. makes sure the output is suppressed except when the disp function is used.
*The amount will be in form of wallet points that you can redeem to pay upto 10% of the price for any assignment. **Use of solution provided by us for unfair practice like cheating will result in action from our end which may include permanent termination of the defaulter’s account.Disclaimer:The website contains certain images which are not owned by the company/ website. Such images are used for indicative purposes only and is a third-party content. All credits go to its rightful owner including its copyright owner. It is also clarified that the use of any photograph on the website including the use of any photograph of any educational institute/ university is not intended to suggest any association, relationship, or sponsorship whatsoever between the company and the said educational institute/ university. Any such use is for representative purposes only and all intellectual property rights belong to the respective owners.