{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

If there are more rows than iterations leave the

Info icon This preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: the elements of breakfast with their numeric index values before proceeding. Answer the questions on the next page. CS 115 Exam 3, Fall 2011 Page 6 of 11 (a) Fill out the following table tracing a binary search for waffles in this list. You should fill out one row per iteration of the loop. If there are more rows than iterations, leave the extra rows blank. In the Compare To: column, you should give the VALUE (the name of the breakfast item) of the list element that will be compared to waffles. Old value of first 0 Old value of last Compare to (e.g. pancakes): 9 (b) Fill out the following table tracing a binary search for granola in this list. Old value of first 0 Old value of last Compare to (e.g. pancakes): 9 CS 115 Exam 3, Fall 2011 Page 7 of 11 Problem 4: 25 points. In this problem, you will define a class to represent a coin purse. A coin purse can contain the followin...
View Full Document

{[ snackBarMessage ]}

What students are saying

  • Left Quote Icon

    As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

    Student Picture

    Kiran Temple University Fox School of Business ‘17, Course Hero Intern

  • Left Quote Icon

    I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

    Student Picture

    Jill Tulane University ‘16, Course Hero Intern