Exercise_10_3 - 1 Exercise 10-3 Work with an array of product data In this exercise youll work with a two-dimensional array that stores the data for

Exercise_10_3 - 1 Exercise 10-3 Work with an array of...

This preview shows page 1 out of 1 page.

1 Exercise 10-3 Work with an array of product data In this exercise, you’ll work with a two-dimensional array that stores the data for three products. Review the application 1 Open the project named ch10_ex3_ProductArray. 2 Open the classes and review the code. Note that the ProductDB class defines a two-dimensional array that stores the data for three products. Also, note that this class contains three methods that aren’t implemented. 3 Run the application. At this point, it should print some messages to the console, but these messages won’t contain any product data. Add the code that works with the array of product data 1. In the ProductDB class, add code that implements the getProductByIndex method. This should return a Product object for the product data at the specified index. 2. In the Main class, add code that uses the getProductByIndex method and displays the data that’s returned by it. 3. Run the application and make sure it works correctly. At this point, it
Image of page 1

You've reached the end of your free preview.

Want to read the whole page?

  • Fall '16
  • Anonamous
  • Subroutine, Main class

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

Stuck? We have tutors online 24/7 who can help you get unstuck.
A+ icon
Ask Expert Tutors You can ask You can ask You can ask (will expire )
Answers in as fast as 15 minutes