Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Java problem using eclipse program. Books.txt (Copy And paste data below into a text document) Textbook Introduction to Programming with C++ Y. Daniel Liang 0136097200
Java problem using eclipse program.
Books.txt (Copy And paste data below into a text document)
Textbook Introduction to Programming with C++ Y. Daniel Liang 0136097200 109.99 COS221 Textbook An Introduction to Programming Using Visual Basic David Schneider 013212856X 99.50 COS120 Tradebook C++ Primer Plus Stephen Prata 1571691316 59.99 COS Textbook Exploring Microsoft Excel 2010 Robert Grauer 0135098599 75.95 COS103 Textbook Blended HTML, XHTML, and CSS Henry Bojak 0538746335 79.00 COS115 Tradebook C++ Projects Programming with Text-Based Games Mike Dawson 1423902270 49.95 COS Textbook Absolute C++ Walter Savitch 0201709279 101.50 COS220 Tradebook Visual C++.Net Don Gosselin 0619016573 69.99 COS Textbook Data Structures and Problem Solving Using Java Mark Weiss 0321541405 115.00 COS226 Tradebook Programming and Object Oriented Design Using Java Jaime Nino 0470128718 89.99 COS Textbook Java Foundations John Lewis 0133370461 85.99 COS225 Tradebook Object Oriented Data Structures Nell Dale 1449613543 105.99 COS Tradebook Pivot Table Data Crunching Bill Jelen 0789743132 49.00 BUS Tradebook Data Analysis with Microsoft Excel Kenneth Berk 0495391786 39.50 BUS Textbook Excel 2010 Power Programming with VBA John Walkenbach 0470475355 79.99 BUS398 Tradebook VBA and Macros Bill Jelen 089743140 49.00 BUS Tradebook Excel Simulations Gerard Verschuuren 1615470228 35.75 BUS
Sample Output:
alist of books needed for courses as well as a list of related tradebooks of interest to the major l. Design an abstract class Book to model a book at a university book store. Each book contains a title, author, ISBN number, and wholesale price. A default constructor is needed for an empty book. A parameterized constructor is passed arguments. Accessors and mutators for all data members are needed Abstract method retailPrice returns the retail price 2. Design a class Textbook derived from Book. A textbook adds a data member for course associated with the textbook (ex. Cos225). The retailPrice method returns retail price uses a 10% markup percent (ex. a book with a wholesale price of $100 would have a retail price of $110) A default constructor is needed for an empty textbook. A parameterized constructor is passed all arguments. Accessor and mutator methods are needed for the new data member. 2. Design a class Tradebook derived from Book. A tradebook adds a data member for the major associated with the tradebook (ex. cos). The retailPrice method returns a retail price that uses a 15% markup percent (ex. a book with a wholesale price of $100 would have a retail price of$115) A default constructor is needed for an empty tradebook. A parameterized constructor is passed all arguments. Accessor and mutator methods are needed for the new data member. 3. Design a BooklistGenerator class. This class will use an ArrayList object of Book references to manage books. Data file books.txt contains a list of books where the first line indicates the type of book (Textbook or Tradebook). The last line of a data set lists either the course or the major. Code should work for any valid input file with unknown number of lines. You may assume all data is valid. books txt Notepad File Edit Format View Help Textbook Introduction to Programming with C++ Y. Daniel Liang 0136097200 109.99 COS 221. Textbook An Introduction to Programming Using visual Basic David Schneider 013212856X 99.50 Cosi 20 Tradebook C++ Primer Plu Stephen Prata. 1571691316 59.99 section, the user is first asked for his or her major (ex. COS) and is then prompted to After the input enter a list of courses (ex. COS225) which are stored in a String ArrayList object using a sentine controlled loop using sentinel "xxx" to stop data entry
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started