Programming Projects
Programming Projects require more problem-solving than Practice Programs and can usually be solved many different ways. Visit www.myprogramminglab.com to complete many of these Programming Projects online and get instant feedback.
Write a program that creates
Petobjects from data read from the keyboard. Store these objects into an instance ofArrayList. Then sort thePetobjects into alphabetic order by pet name, and finally display the data in the sortedPetobjects on the screen. The classPetis given in Chapter 6, Listing 6.1.Repeat the previous programming project, but sort the
Petobjects by pet weight instead of by name. After displaying the sorted data on the screen, write the number and percentage of pets that ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access