Solutions 9 endwhile stop num getsearchoption

This preview shows page 31 - 34 out of 37 pages.

b.Develop the logic for each of the methods in Exercise 14a.Answer: A sample solution follows. Please note that only the pseudocode was created for this exercise.Pseudocode:num getNumber(num high, num low)Declarationsnum numberoutput “Enter a number between ”, low, “ and ”, high, “ >>”input numberwhile number < low OR number > highoutput "Please make sure number is between ", low, " and ", highoutput "Please reenter number >>"input numberendwhilereturn numberstring getCharacter()Declarationsstring charStringoutput “Enter a string >>”input charStringreturn charStringnum lookUpISBN(string title)Declarationsnum notFoundstring bookTitlenum bookISBNnum returnVal// The bookTitle and bookISBN may be input from a file (database)input bookTitle, bookISBNnotFound = 1while not eof AND notFound = 1if bookTitle = title then31
Programming Logic and Design, 7e15. Each of the programs in Figure 9-25 uses a recursive method. Try to determine the output in each case.
Programming Logic and Design, 7eSolutions 9-Answer: a.0b.0c.2Find the Bugs16. Your downloadable files for Chapter 9 include DEBUG09-01.txt, DEBUG09-02.txt, and DEBUG09-03.txt. Each file starts with some comments that describe the problem. Comments are lines that begin with two slashes (//). Following the comments, each file contains pseudocode that has one or more bugs you must find and correct.Answer:Please see the DEBUG09-01.txt, DEBUG09-02.txt, and DEBUG09-03.txt solution files.Game Zone

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture