programming

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.

  1. 👍 0
  2. 👎 0
  3. 👁 136
asked by sheger
  1. Seems pretty straightforward to me. Where are you getting stuck?

    1. 👍 0
    2. 👎 0
  2. i am not able to start constructing it. can you please help me

    1. 👍 0
    2. 👎 0
    posted by sheger
  3. What does the user have to input, and as a result of these inputs, what do you need to output back to the user?

    1. 👍 0
    2. 👎 0
  4. 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

    Outputs:
    When you figure out the answer, output the answer. These 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"

    1. 👍 0
    2. 👎 0
    posted by sheger
  5. Exactly! Good job :)

    So first, in your pseudo code, you have to ask for and store the five inputs.

    Then, based on the five inputs, you have to print out one (and only one) output to the user.

    1. 👍 0
    2. 👎 0
  6. it's just I am kind of fresh for it, so do I start by writing the variables? if yes how? I just need some hint (on the beginning) to proceed. by the way, thank you for helping me

    1. 👍 0
    2. 👎 0
    posted by sheger
  7. hint, please?

    1. 👍 0
    2. 👎 0
    posted by sheger

Respond to this Question

First Name

Your Response

Similar Questions

  1. c programming

    a student designed a program to accept the age of an employee and then compute the employees retirement year and display the same in a statement on the screen required. a) write out the pseudo-code for the program above b) write

    asked by riley on October 14, 2014
  2. Programming

    Draw a flowchart or write pseudo code to represent the logic of a program that allows the user to enter values for the current year and the user’s birth year. The program outputs the age of the user this year. Preferably a

    asked by Siya on December 3, 2019
  3. PROGRAMMING

    PLS, I NEED TO BE GUIDED ON HOW TO WRITE A SIMPLE PROGRAM IN BASIC THAT WOULD PROMPT 3 LEVELS OF AUTHENTICATION WHEN UNAUTHORISED LOG-ON IS EFFECTED. You are not going to be able here to get detailed help on the program code, as

    asked by UZOWULU CHARLES on April 23, 2007
  4. Algorithm

    write a pseudo code algorithm that will accept 20 numbers and finds their product

    asked by chinna on July 16, 2012
  5. college computer science

    Write a pseudo code that allows a user to enter the names and phone numbers of up to 20 friends

    asked by alhassan fuseini Baba on December 21, 2017
  6. Math

    Hello i need some help writing a pseudo code equation. It is pretty basic. Can anyone help? Just want to know before i write the entire problem out. Thanks

    asked by Ti on October 31, 2007
  7. wollega

    draw flow chart & write pseudo code for greatest common divisor of two numbers

    asked by motuma on May 11, 2016
  8. computer science

    5. Calculation of tax in Ruritania In a fictitious country of Ruritania, which is in a fictitious continent called Afrisia, the tax system is highly simplified. They have system where all taxes are converted to one single value

    asked by Bofelo on October 28, 2015
  9. Algorithm

    write a pseudo code algorithm that will accept the marks in a test for a group of 25 students then calculate and display the average mark

    asked by chinna on July 16, 2012
  10. computers

    Develop an algorithm or write a pseudo-code that accepts as input the names of an unspecified number of students who each have rented books form the school's book program and are now returning them.

    asked by Anonymous on March 16, 2010
  11. cms

    suppose in a positive numbers(including o) and the negative numbers are to be separately counted. a) draw a flow chart. write the pseudo code.

    asked by osele madighi on November 16, 2016

More Similar Questions