Purpose:

• Write AND OR & NOT logic in pseudo-code and Raptor.
Requirements:
In Notepad, write pseudo-code for the following. The object of the game is to determine who the player is, based on a series of questions. Inputs Ask the player the following five Boolean questions and save the user's answers in variables.
• Are you the son of ZEUS? y/n
• Are you the son of HERA? y/n
• Can you be burned by fire? y/n
• Did you kill a monster? y/n
• Did you win a battle? y/n
When you ask the questions, use "y" for yes and "n" for no. Processing You MUST use AND OR and NOT to complete this exercise.You MUST use the following information to determine the answer
• Zeus and Hera have a son named Ares
• Hercules, the son of Zeus and Leto, killed the monster, Hydra
• Slaying a monster or winning a battle makes you Master Warrior
• Children of Poseidon cannot be burned by fire
Remember :- you will ask only those questions I gave you
- the answers will be yes/no
- the only possible "gods" could be the four I have listed. Otherwise the logic will not work. In other words, if Apollo was answering the questions (he is not one of the 4 gods on my list) you would get a weird answer. So stick to those 4 answering the questions.
OutputsWhen you figure out the answer, output the answerThese are the answers you will use:
• “You are Ares, the god of war”
• “You are Hercules, the immortal hero”
• “You are a Master Warrior of the Greek Gods”
• “You are Otos the giant - the child of Poseidon”
• "I don't know who you are"
At the end, output “Programmed by: your name” PART 2 - Use RAPTOR to program the Greek Gods Game.Submit both the Pseudo code and the Raptor files.NOTE: Here are two ways to code NOT in Raptor.not(age >21)

(age != 21) Extra Credit
• Figure out how to use the play_sound() function in Raptor. Add an appropriate sound effect for God, which plays when you figure out which God it is.
• You cannot use my files Blackboard, you must find your own.
• Hint: You can only use .wav files.
• Be sure to put all the .rap and the .wav files in a folder, zip it and submit it.

I started off like these, but I am not exactly sure where to go from here?

-------------------------------
boolean sonZeus = ""
boolean sonHera = ""
boolean burnedFire = ""
boolean killMonst = ""
boolean winBat = ""

output "Which God Are You?!"

prompt "Are you the son of ZEUS? y/n"
input sonZeus

if(sonZeus == "y")

prompt "Did you kill a monster? y/n"
input killMonst

if(killMonst == "y")

else

Pseudo-code:

```
// Input variables
sonOfZeus = get_user_input("Are you the son of ZEUS? (y/n)")
sonOfHera = get_user_input("Are you the son of HERA? (y/n)")
canBeBurnedByFire = get_user_input("Can you be burned by fire? (y/n)")
killedMonster = get_user_input("Did you kill a monster? (y/n)")
wonBattle = get_user_input("Did you win a battle? (y/n)")

// Output variable
answer = ""

// Logic to determine the answer
if sonOfZeus == "y" AND sonOfHera == "n" AND canBeBurnedByFire == "n" AND killedMonster == "n" AND wonBattle == "n" then
answer = "You are Ares, the god of war"
else if sonOfZeus == "n" AND sonOfHera == "n" AND canBeBurnedByFire == "n" AND killedMonster == "y" OR wonBattle == "y" then
answer = "You are Hercules, the immortal hero"
else if sonOfZeus == "n" AND sonOfHera == "n" AND canBeBurnedByFire == "y" AND killedMonster == "y" OR wonBattle == "y" then
answer = "You are a Master Warrior of the Greek Gods"
else if sonOfZeus == "n" AND sonOfHera == "n" AND canBeBurnedByFire == "y" AND killedMonster == "n" AND wonBattle == "n" then
answer = "You are Otos the giant - the child of Poseidon"
else
answer = "I don't know who you are"

// Output the answer
output(answer)
output("Programmed by: your name")
```

Explanation:
1. The pseudo-code starts by defining the input variables `sonOfZeus`, `sonOfHera`, `canBeBurnedByFire`, `killedMonster`, and `wonBattle` to store the user's answers to the questions.
2. The output variable `answer` is initialized as an empty string.
3. The logic uses the Boolean operators (AND, OR) and conditions (==) to determine the answer based on the given inputs.
4. Depending on the combinations of answers, the appropriate string is assigned to the `answer` variable.
5. Finally, the answer is outputted along with the programmer's name.

Raptor Flowchart:
Here is the Raptor flowchart for the Greek Gods Game:
![Raptor Flowchart](https://i.imgur.com/wuAsvrK.png)

Please note that I cannot provide the Raptor file or sound effects, as requested in the exercise. You will need to create those on your own.