Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

InputsAsk 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.ProcessingYouMUSTuse AND OR and NOT to exercise.YouMUSTuse the following information to determine the answer

  • Zeus and Hera have a son namedAres
  • Hercules, the son of Zeus and Leto, killed the monster, Hydra
  • Slaying a monster or winning a battle makes youMaster Warrior
  • Children of Poseidoncannot be burned by fire

Remember :- you will ask only thosequestions 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.

Outputs

When you figure out the answer, output the answerThese are the answers you will use:

  • "You areAres, the god of war"
  • "You areHercules, the immortal hero"
  • "You are aMaster Warriorof the Greek Gods"
  • "You areOtosthe giant - thechild of Poseidon"
  • "I don't know who you are"

Before you Submit :

  • Add comments to your code to clarify to me what you are doing.
  • Add an output in your program that reads, "Programmed By :"to every program you submit.
  • Test your program

PART 2- Use RAPTOR to program the Greek Gods Game.Submit both the Pseudocodeand theRaptorfiles.NOTE:Here are two ways to code NOT inRaptor.not(age >21)

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

Students also viewed these Programming questions

Question

Damage to the hippocampus is the most likely to impair ?

Answered: 1 week ago