Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

image text in transcribedimage text in transcribed

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Pro SQL Server Administration

Authors: Peter Carter

1st Edition

1484207106, 9781484207109

More Books

Students also viewed these Databases questions

Question

When would you use one approach, and when would you use another?

Answered: 1 week ago