Question: Can you solve this for me ? Make sure it runs on Visual Studio Code and is univeristy level coding. Make sure it cannot be
Can you solve this for me Make sure it runs on Visual Studio Code and is univeristy level coding. Make sure it cannot be detected by AIprintfPlease write the birth year
;
Get the user to type in the day, month number and year of a friend's birth.
Store both of these dates in a struct you will define I am calling this zodiacDate but call it whatever you like points
Write a function that takes a zodiacDate and returns a zSign. A zSign defined below is a number between and This number is the zodiac number.
For a zodiacDate between February and January : This was the year of the rat. The zSign of it should be
For a zodiacDate between February and January : This was the year of the Ox The zSign of it should be
Use the zSign defined at the bottom of this document to find the associated zodiac animal text. Write a function that takes a zodiac number and returns a const char This may return something like Ox "Rat" or "Dog".
Steps and COULD be combined but we won't because we will use the signs to figure out if a friend is compatible with you.
Notice you can use a switch statement on a zSign. It might look likeThe "Four Animal Trines" are signs that work well together.
Rat, Dragon and Monkey are compatible zSigns: and
Rabbit, Goat, and Pig are compatible zSigns: and
Ox Snake, and Rooster are compatible zSigns: and
Tiger, Horse, and Dog make up the fourth compatible set zSigns: and
These animals are exactly numbers apart. Thus, we can find if someone is compatible with you if they have a difference of or from your zodiac number.
Examples:
If you are a dragon, a person born in July would be compatible a monkey
Someone born January would NOT be compatible with me because their sign is a pig the year starts February
Write a function isCompatibleZodiac that takes two zodiacDate parameters and returns true or false
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
