Question: dear sir /mam pls help me in this question using matlab sir the question says we have to put a particular date and it has

 dear sir /mam pls help me in this question using matlab

dear sir /mam pls help me in this question using matlab

sir the question says we have to put a particular date and

sir the question says we have to put a particular date and it has to check the things written in it

Task 2 - Function with if and switch (15 points) The following script is given: day = input('Day of a month in [1, 31): '); last Digit = mod (day, 10); month = input ('Month [1, 12): "); $ Double quotes are used to create an array of strings. $ You get access to each element by monthText(1), monthText (2), .. monthText = ['January", "February", "March","April", "May", "June", "July", "August", "September", "October", "November", "December"]; | dateOutput (day, last Digit, month, monthText); Example for a program run: Day of a month in [1, 31]: 17 Month [1, 12): 1 You entered the 17th of January. Student ID: HINT: The th' after the 17 corresponds to the following table: suffix rd 3 4,5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20 day of month 24, 25, 26, 27, 28, 29, 30 Write the missing function dateOutput() using if and switch to create the last line of the program run. Solution 2)

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!