Question: Write a script in MATLAB which will ask the user for which month and day they were born on (enter month 1-12 and day 1

Write a script in MATLAB which will ask the user for which month and day they were born on (enter month 1-12 and day 1 to 31). Write a script which will display this into a sentence such as

input: month 9, day 1 output: Your birthday is the 1st of September.

input: month 2, day 31 output: That is an invalid date.

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!