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.

  1. Define a class called Diamond that is derived from either the class ShapeBasics (Listing 8.12) or the abstract class ShapeBase (Listing 8.19). A diamond has the same sort of top half as a Triangle object, and its bottom half is an inverted version of its top half. Define a utility class having public static methods, such as the method skipSpaces and other methods that draw horizontal lines, big V’s, and inverted big V’s. Recall that Self-Test Question 31 asked you to describe one method in this ...

Get Java: An Introduction to Problem Solving and Programming, 8th Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.