Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Function Name: seasonsof Love Inputs: . (char) Your birthday 2. (char) Your crush's birthday Outputs 1. (char) A string describing if you and your crush

image text in transcribed
image text in transcribed
Function Name: seasonsof Love Inputs: . (char) Your birthday 2. (char) Your crush's birthday Outputs 1. (char) A string describing if you and your crush are compatble 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 dass. 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 compatble 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 bom in the same season or not. The birthdays wll be in the format of month then the day, separated by a space (ex. 'November 9). First, determine the season each person was bom in based off their birthday. If they were bom in the same season, output this line, replacing with the correct season. My crush and I were both born in Now I'11 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. #MatlabIsBae. Summer 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 seasonsOfLove( December 5, February S compatibility 'I'm a Fall baby but my crush is a winter baby. At least 1 still have a date with MATLAB #Matlabl sBae. 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_2

Step: 3

blur-text-image_3

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

More Books

Students also viewed these Databases questions

Question

is L ( f ( t ) + g ( t ) ) = L ( f ( t ) + Lg ( f ( t )

Answered: 1 week ago