Develop a C++ code
10 ABC publication publishes two types of research articles, printed book chapters and open access online articles. Both the printed and online articles have Article Title, Author, Year of publication. In addition to this, books contain the ISBN Number, Chapter Number, starting and ending page numbers , whereas Online articles contain e-ISBN number, Volume Number and total number of pages. Design a CPP model using inheritance concept, by creating necessary classes and member functions, to get and print details. Provide a function, calculate Charge which calculates the Publication Charge of the book chapter based on the total number of pages, Rs 1000 per page and i. ii. the open access online articles based on the condition that every three pages Rs 5000 [that is, if there are 6 pages - Rs 10000, 8 pages - Rs 15000). Create at least two instances, one for each type and print the respective publication charge along with article details. Provide sample input and expected output.
10 ABC publication publishes two types of research articles, printed book chapters and open access online articles. Both
-
answerhappygod
- Site Admin
- Posts: 899604
- Joined: Mon Aug 02, 2021 8:13 am
10 ABC publication publishes two types of research articles, printed book chapters and open access online articles. Both
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!