Suppose that two different types of sources are used in a term paper: books and journal articles.
Question:
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.
Transcribed Image Text:
Book publisher: String Source author: String title: String year: int Circle (author: String, title: String, year: int) toString(): String Book (author: String, title: String, year: int, publisher: String) toString(): String equals (aBook: Book): Boolean Article journalName: String pages: String volume: int issue: int Article (author: String, title: String, year: int, journalName: String, pages: String) toString(): String equals (aArticle: Article): Boolean
Fantastic news! We've Found the answer you've been seeking!
Step by Step Answer:
Answer rating: 100% (1 review)
The UML diagram you provided describes a class inheritance hierarchy where Book and Article are subclasses of the Source class Below is a simple Java implementation of these three classes After that I...View the full answer
Answered By
Ashington Waweru
I am a lecturer, research writer and also a qualified financial analyst and accountant. I am qualified and articulate in many disciplines including English, Accounting, Finance, Quantitative spreadsheet analysis, Economics, and Statistics. I am an expert with sixteen years of experience in online industry-related work. I have a master's in business administration and a bachelor’s degree in education, accounting, and economics options.
I am a writer and proofreading expert with sixteen years of experience in online writing, proofreading, and text editing. I have vast knowledge and experience in writing techniques and styles such as APA, ASA, MLA, Chicago, Turabian, IEEE, and many others.
I am also an online blogger and research writer with sixteen years of writing and proofreading articles and reports. I have written many scripts and articles for blogs, and I also specialize in search engine
I have sixteen years of experience in Excel data entry, Excel data analysis, R-studio quantitative analysis, SPSS quantitative analysis, research writing, and proofreading articles and reports. I will deliver the highest quality online and offline Excel, R, SPSS, and other spreadsheet solutions within your operational deadlines. I have also compiled many original Excel quantitative and text spreadsheets which solve client’s problems in my research writing career.
I have extensive enterprise resource planning accounting, financial modeling, financial reporting, and company analysis: customer relationship management, enterprise resource planning, financial accounting projects, and corporate finance.
I am articulate in psychology, engineering, nursing, counseling, project management, accounting, finance, quantitative spreadsheet analysis, statistical and economic analysis, among many other industry fields and academic disciplines. I work to solve problems and provide accurate and credible solutions and research reports in all industries in the global economy.
I have taught and conducted masters and Ph.D. thesis research for specialists in Quantitative finance, Financial Accounting, Actuarial science, Macroeconomics, Microeconomics, Risk Management, Managerial Economics, Engineering Economics, Financial economics, Taxation and many other disciplines including water engineering, psychology, e-commerce, mechanical engineering, leadership and many others.
I have developed many courses on online websites like Teachable and Thinkific. I also developed an accounting reporting automation software project for Utafiti sacco located at ILRI Uthiru Kenya when I was working there in year 2001.
I am a mature, self-motivated worker who delivers high-quality, on-time reports which solve client’s problems accurately.
I have written many academic and professional industry research papers and tutored many clients from college to university undergraduate, master's and Ph.D. students, and corporate professionals. I anticipate your hiring me.
I know I will deliver the highest quality work you will find anywhere to award me your project work. Please note that I am looking for a long-term work relationship with you. I look forward to you delivering the best service to you.
3.00+
2+ Reviews
10+ Question Solved
Related Book For
Guide To Java A Concise Introduction To Programming
ISBN: 978-3031228414
2nd Edition
Authors: James T. Streib, Takako Soma
Question Posted:
Students also viewed these Computer science questions
-
can someone solve this Modern workstations typically have memory systems that incorporate two or three levels of caching. Explain why they are designed like this. [4 marks] In order to investigate...
-
Briefly describe ASCII and Unicode and draw attention to any relationship between them. [3 marks] (b) Briefly explain what a Reader is in the context of reading characters from data. [3 marks] A...
-
123 Compare the purely graphical properties of these two notations, and the ways in which the graphical properties of each display correspond to the information structure being defined. Describe...
-
What are the side effects of the drugs that are used for treatment of Multiple Sclerosis attacks? Are cataracts a result of steroid use? Is osteoporosis a complication of Multiple Sclerosis?
-
Find the missing properties. a. H2O T = 250C, v = 0.02 m3/kg P = ? u = ? b. N2 T = 120 K, P = 0.8 MPa x = ? h = ? c. H2O T = 2C, P = 100 kPa u = ? v = ? d. R-134a P = 200 kPa, v = 0.12 m3/kg u = ? T...
-
In one stage of an annealing process, 304 stainless steel sheet is taken from 300 K to 1250 K as it passes through an electrically heated oven at a speed of V, = 10 mm/s. The sheet thickness and...
-
a. No, it is not riskless. The portfolio would be free of default risk and liquidity risk, but inflation could erode the portfolio's purchasing power. If the actual inflation rate is greater than...
-
Build-Rite Construction has received favorable publicity from guest appearances on a public TV home improvement program. Public TV programming decisions seem to be unpredictable, so Build Rite cannot...
-
Explain how a net present value (NPV) profile is used to compare projects. How does this profile compare to that of internal rate of return (IRR)? How does reinvestment affect both NPV and IRR?...
-
In Problem 4, the Vehicle, Car, and Truck classes were implemented. Vehicles could include more such as motorcycles, buses, trains, ships, and airplanes. Using UML diagrams, organize these vehicles....
-
Write a class Vehicle which keeps a vehicle identification number, license plate number, and a number of axles. Derive two classes from the Vehicle class named Car and Truck. Include a data member...
-
Locate the centroid x of the area. 4ft y=4x 4ft - X
-
If u = (-5, 3) and v = (-15, -25) with an angle e between the vectors, are u and v parallel or orthogonal? Explain. (2 points)
-
What is the legal definition of insurance fraud, and how does it apply to the case of the Hawthorne man who was sentenced to 212 years in prison for intentionally killing his children to collect...
-
Exercise 13-12 (Algo) Volume Trade-Off Decisions [LO13-5] Benoit Company produces three products-A, B, and C. Data concerning the three products follow (per unit): Selling price Variable expenses:...
-
Grant Co. had the following account balances at December 31, the end of its fiscal year: Accounts Payable $56,000 Salaries Payable Unearned Fees Income Taxes Payable Notes Payable 12,200 8,900 3,200...
-
Which key numbers help you to assess your performance in the organization or your contribution to the organization?
-
You are an analyst for a large public pension fund and you have been assigned the task of evaluating two different external portfolio managers (Y and Z). You consider the following historical average...
-
Explain why it is not wise to accept a null hypothesis.
-
What statement would you use to assign the value 32 to the variable cheeses?
-
Write a program that has main() call a user-defined function that takes a Celsius temperature value as an argument and then returns the equivalent Fahrenheit value. The program should request the...
-
What statement would you use to create an integer variable with the name cheeses?
-
A company makes a single product that is normally sells for $ 6 2 ? unit. It has the capacity to produce 1 0 0 , 0 0 0 units per year, but currently produces only 7 0 , 0 0 0 . Per - unit costs...
-
During the fiscal year ended December 3 1 , 2 0 1 5 , the City of Johnstown issued 6 % general obligation serial bonds in the amount of $ 2 , 0 0 0 , 0 0 0 at 1 0 2 ( $ 2 , 0 4 0 , 0 0 0 ) and used $...
-
1 . 4 Comment on the following items over the tho - jear period. ( No ratios are required. ) 1 . 4 . 1 Non - curnent assels 1 . 4 . 2 Imventories ( 4 marks ) 1 . 4 . 3 Accounts receivatle INFORMATION...
Study smarter with the SolutionInn App