Question: Help with MATlab code! Homework 6-Conditionals Function Name: seasonsOfLove Inputs 1. 2. (char) Your birthday (char) Your crush's birthday Outputs 1. (char) A string describing

 Help with MATlab code! Homework 6-Conditionals Function Name: seasonsOfLove Inputs 1.2. (char) Your birthday (char) Your crush's birthday Outputs 1. (char) A

Help with MATlab code!

Homework 6-Conditionals Function Name: seasonsOfLove Inputs 1. 2. (char) Your birthday (char) Your crush's birthday Outputs 1. (char) A string describing if you and your crush are compatible Background After many single Valentine's days, you are determined to find a date this year. You spot a cute MATLAB-lover in your CS 1371 class. After you get their number, you make sure to figure out their birthday. With this information and some help from your wingman MATLAB, you can determine if you and your crush are compatible enough to be each other's Valentines Function Description Write a function that takes in two birthdays and determines whether they are compatible based off if they were born in the same season or not. The birthdays will be in the format of month then the day, separated by a space (ex. 'November 9'). First, determine the season each person was born in based off their birthday. If they were born in the same season, output this line, replacing with the correct season My crush and I were both born in . Now I'1l finally have a Valentine! If they were born in different seasons, output I'm a baby but my crush is a baby. At least I still have a date with MATLAB. #Mat labisBae. Astronomical seasorn Spring Summe Fall Winter Date range March 21-June 20 June 21 - September 21 September 22 December 21 December 22 March 20 Homework 6 - Conditionals Example: compatibility -seasons0fLove('December 5', 'February 5'); compatibility - 'I'm a Fall baby but my crush is a Winter baby. At least I still have a date with MATLAB . #MatlabisBae. Notes: The first letter of the birthday inputted is capitalized The first letter of each season should be capitalized . Hints: A helper function may be useful

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!