Suppose that two different types of sources are used in a term paper: books and journal articles. The following UML diagram illustrates how the sources are organized. First, implement the three...



Suppose that two different types of sources are used in a term paper: books and


journal articles. The following UML diagram illustrates how the sources are


organized.


First, implement the three classes, Source, Book, and Article, and then write a main method to use them. In the main method, ask the user to enter the number of references, create an array of type Source using the size the user entered, use a loop to ask the user to enter the information for each reference (book or journal article), and then output the contents of each object.



May 26, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here