Write pseudocode and has the following;

  1. It should write the guess secret number to standard output
  2. It should ask yhe user if the secret number is higher, lower or if you guessed correctly
  3. It should read the answer. Repeat the question if it is not one of three possible answers
  4. It should claim victory if the answer is that the guess is correct
  5. It should keep asking until it has a correct guess, or give up after 10 failed attempts
  6. It should only accuse the player of cheating, if it is absolutely certain

Sorry but we can't do your homework for you
If you have specific questions or problems on any of the following then you can post your pseudocode here and that's where we'll help you

can you give me tips to do it

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.