Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 1079733
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T21:54:57+00:00 2026-05-16T21:54:57+00:00

Here is the Pseudocode Print instructions to the user Start with the variables high

  • 0

Here is the Pseudocode

  1. Print instructions to the user
  2. Start with the variables high = 1000, low = 1, and tries = 1
  3. While high is greater than low
  4. Guess the average of high and low
  5. Ask the user to respond to the guess
  6. Handle the four possible outcomes:
    • If the guess was right, print a message that tries guesses were required and quit the program
    • If the guess was too high, print a message that says “I will guess lower.”
    • If the guess was too low, print a message that says “I will guess higher.”
    • If the user entered an incorrect value, print out the instructions again.

I don’t even know where to begin.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-16T21:54:58+00:00Added an answer on May 16, 2026 at 9:54 pm

    Here’s where you begin. Insert the specifications as documentation, then do one at a time, testing along the way.

    # Print instructions to the user
    ### 'print "xyz"' will output the xyz text.
    
    # Start with the variables high = 1000, low = 1, and tries = 1
    ### You can set a variable with 'abc = 1'.
    
    # While high is greater than low
    ### Python has a while statement and you can use something like 'while x > 7:'.
    ### Conditions like 'x > 7', 'guess == number' can also be used in `ifs` below.
    
        # Guess the average of high and low
        ### The average of two numbers is (x + y) / 2.
    
        # Ask the user to respond to the guess
        ### Python (at least 2.7) has a 'raw_input' for this, NOT 'input'.
    
        # If the guess was right, print a message that tries guesses were required
        # and quit the program
        ### Look at the 'if' statement for this and all the ones below.
    
        # If the guess was too high, print a message that says “I will guess lower.”
        # If the guess was too low, print a message that says “I will guess higher.”
        # If the user entered an incorrect value, print out the instructions again.
    

    I’ve also added a small comment detailing what language elements you should look in to for each section.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.