View the step-by-step solution to:


I am programming a method for the following problem but am a little unclear on the "method" piece. I have my code

below and thought that accomplished the task, but as I reread feel like I am missing something.. Do I need to add something else? You do not need to send specific code, but any direction would be helpful. I used Java programming as the subject line, but this is really supposed to be written in pseudocode.

Your method should loop conditionally (do ... while) getting input from the user. If the number is not between low and high inclusive it should print an error msg and continue to loop until the user enters a valid value...

Class numRange

  Main ()

              num value

              numLow = 1

              numHigh = 5

           output "Enter your number:___"

           input value


                       if value > numLow AND < numHigh


                       output "Error, number out of range. Please enter another number:____"

                       input value


           output "Thank you"

end if



Top Answer

View the full answer

Please enter number: 0
Error, number out of range. Please enter another number: 6
number out of range. Please enter another number: 10
Error, number out of range. Please enter another...

Sign up to view the full answer

Why Join Course Hero?

Course Hero has all the homework and study help you need to succeed! We’ve got course-specific notes, study guides, and practice tests along with expert tutors.


Educational Resources
  • -

    Study Documents

    Find the best study resources around, tagged to your specific courses. Share your own to gain free Course Hero access.

    Browse Documents
  • -

    Question & Answers

    Get one-on-one homework help from our expert tutors—available online 24/7. Ask your own questions or browse existing Q&A threads. Satisfaction guaranteed!

    Ask a Question
Ask a homework question - tutors are online