Question: Algorithm 1. 2. Write the function header, remember the function name must match name of the m-file!! The function age takes in four parameters, current

Algorithm 1. 2. Write the function header, remember the function name must match name of the m-file!! The function age takes in four parameters, current year, current month, birth year, and birth month. And after calculation, it returns two results, numbers of years and number of months 3. Create another file ageTest_yourLastName.m (this is the main program used to test the age 4. 5. function) Include the header comments and clear the windows. In this program, use input to read in current year, current month, birth year, and birth month. 4 prompts) 6. Call the age function to return the numbers of years and number of months and then use fprintf to print them out. Sample Output: Enter today's 4-digit year: 2018 Enter today's month number: 11 Enter the 4-digit year of your birth: 1998 Enter the month number of your birth: 9 You are 20 years and 2 months old
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
