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% (2 reviews)
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...
-
Describe trend, seasonality, random variation, and cycle as applied to forecasting.
-
4 Mencione una fortaleza, una debilidad, una oportunidad y una amenaza del anlisis SWOT de Ben & Jerrys de la figura 2-7. Sugiera una accin especfica que podra emprender un director de marketing para...
-
Many years ago, Minnow Bait and Tackle issued preferred stock. The stock pays an annual dividend equal to $6.80. If the required rate of return on similar-risk investments is 8 percent, what should...
-
Pineapple Inc. aimed to shorten cash conversion cycle in 2024. What could Pineapple Inc. do to achieve the goal? Promote cash sales more than credit sales Offer less sales promotion such as discounts...
-
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...
-
A manager suspects that an employee who returns to work following back surgery has become addicted to painkillers. How would the Americans with Disabilities Act apply to the way the manager should...
-
Companies in the tire manufacturing business use a lot of property, plant, and equipment. Tyrell Rubber and Tire Corporation and Maxwell Rubber and Tire Manufacturing are two of the leading...
-
(7%) Problem 11: A student launches a small rocket which starts from rest at ground level. At a height h = 2.09 km, the rocket reaches a speed of v = 291 m/s. At that height, the rocket runs out of...
-
2. For the following three sets of electric field lines, what charge or charges would make such lines? Indicate their locations and type of charge (e.g. positive/negative) a.
-
What is the most important take-home point that you learned from this video? https://www.youtube.com/watch?v=nUZqvsF_Wt0 2. Policy Problems. What is onepolicy that creates inequality in the labor...
-
An employee had $20,300 in gross earnings up to September 20, 2021. She has the following information for her pay for the week ending September 27, 2021. Her employer contributes 100% toward CPP and...
-
Use Broyden's method to approximate solutions to the nonlinear systems in Exercise 1 using the following initial approximations x(0). a. (0, 0)t b. (0, 0)t c. (1, 1)t d. (2, 2)t
-
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?
-
How to solve general ledger cash balance chapter 9 assignment 5
-
On 31 July 2018, Sipho bought 1 000 ordinary shares in ABC Ltd at a cost of R2 750. On 31 December 2018 the company made a 1 for 10 bonus issue. On 31 March 2019, Sipho sold 300 shares for R800. What...
-
If you purchase a $1000 par value bond for $1065 that has a 6 3/8% coupon rate and 15 years until maturity, what will be your annual return? 5.5% 5.9% 5.7% 6.1%
Study smarter with the SolutionInn App