Define a class called book with protected data members ISBN, title, author, price, edition and public...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
Define a class called book with protected data members ISBN, title, author, price, edition and public member functions set(), get( ), display( ), and a parameterized constructor with default "" values for the data members. Define a class called textbook, which publicly inherits the class book. It has the private data members coureseCode, courseTitle and the public member functions set(), display( ), and a parameterized constructor with default "" values. Implement all member functions. Use the following driver: int main() { book MalikCop("1133626386", "C++ Programming: From Problem Analysis to Program Design", "D.S. Malik", "$27", "6th Edition"); MalikCpp.displav(): textbook CSII; CSIL.set("1133626386", "C++ Programming: From Problem Analysis to Program Design", "D.S. Malik", "$27", "6th Edition", "1501211", "Programming II"); CSII.displav(): return 0: } Sample output: The book information is as follow: ISBN is: 1133626386 Title is: C++ Programming: From Problem Analysis to Program Design Author is: D.S. Malik Price is: $27 Editon is: 6th Edition The book information is as follow: ISBN is: 1133626386 Title is: C++ Programming: From Problem Analysis to Program Design Author is: D.S. Malik Price is: $27 Editon is: 6th Edition The book is used as a textbook for the following course: Course code is: 1501211 Course title is: Programming II Define a class called book with protected data members ISBN, title, author, price, edition and public member functions set(), get( ), display( ), and a parameterized constructor with default "" values for the data members. Define a class called textbook, which publicly inherits the class book. It has the private data members coureseCode, courseTitle and the public member functions set(), display( ), and a parameterized constructor with default "" values. Implement all member functions. Use the following driver: int main() { book MalikCop("1133626386", "C++ Programming: From Problem Analysis to Program Design", "D.S. Malik", "$27", "6th Edition"); MalikCpp.displav(): textbook CSII; CSIL.set("1133626386", "C++ Programming: From Problem Analysis to Program Design", "D.S. Malik", "$27", "6th Edition", "1501211", "Programming II"); CSII.displav(): return 0: } Sample output: The book information is as follow: ISBN is: 1133626386 Title is: C++ Programming: From Problem Analysis to Program Design Author is: D.S. Malik Price is: $27 Editon is: 6th Edition The book information is as follow: ISBN is: 1133626386 Title is: C++ Programming: From Problem Analysis to Program Design Author is: D.S. Malik Price is: $27 Editon is: 6th Edition The book is used as a textbook for the following course: Course code is: 1501211 Course title is: Programming II
Expert Answer:
Related Book For
International Marketing
ISBN: 978-1452226354
1st edition
Authors: Daniel W. Baack, Eric G. Harris, Donald Baack
Posted Date:
Students also viewed these accounting questions
-
Define a class called Pizza that has member variables to track the type of pizza (either deep dish, hand tossed, or pan) along with the size (either small, medium, or large) and the number of...
-
Define a class called Polynomial with degree 2 (that is, all ax+bx+c), which has three private data int a, b, c and two public member functions: setPoly(int, int, int) to set data and printPoly to...
-
Define a class called TicTacToe. An object of type TicTacToe is a single game of tic-tactoe. Store the game board as a single two-dimensional array of base type char that has three rows and three...
-
Within the context of the planning cycle, the planning that takes place at the highest levels of the firm is called: A. detailed planning and control. B. strategic planning. C. operational planning....
-
Name three factors you consider of greatest importance in protecting a business against losses through embezzlement
-
For an F-curve with df = (6, 10), find a. F0.05. b. F0.01. c. F0.025. F-curve df (4, 12) F-curve df (4, 12) Area 0.05 Area 0.05 0 0 Fo.os ? Fo.OS 3.26 F0.05 3.26
-
You want to retire in 30 years. You are starting to invest in a growth income fund that promises an ambitious rate of $15 \%$. You can put in $\$ 200$ per month. How much will you have in 30 years?
-
Scotty's Scooters plans to sell a standard scooter for $55 and a chrome scooter for $70. Scotty's purchases the standard scooter for $30 and the chrome scooter for $40. Scotty's expects to sell one...
-
Madsen Motors's bonds have 8 years remaining to maturity. Interest is paid annually; they have a $1,000 par value; the coupon interest rate is 6.5%; and the yield to maturity is 9%. What is the...
-
Income statement and balance sheet data for Great Adventures, Inc., are provided below. As you can tell from the financial statements, 2025 was an especially busy year. Tony and Suzie were able to...
-
Evaluate Jaydy which R quadrant for over the xty region in the the
-
Long-term brands face a balancing act. On the one hand, they must remain true to the characteristics that endear them to their throngs of loyal customers. On the other hand, the longer a brand...
-
In a survey by brand strategy firm Lippincott, the most trusted brand in consumer electronics was not Apple. Nor was it Samsung, Sony, or Microsoft. It was Bose, the still relatively small, privately...
-
How does a French company successfully market an American version of a Korean skin beautifier under a French brand name in Australia? Ask LOral, which sells more than $30 billion worth of cosmetics,...
-
The world has rapidly gone online, social, and mobile. And no company is more online, social, and mobile than Facebook. Despite the growing number of social media options, Facebook continues to...
-
When it comes to personal selling, the term win-win gets thrown around so much that it has become a clich. But at Procter & Gamble, the selling concept that the company benefits only if the customer...
-
How finding the system acceleration is different from a1 and a2. Please find system acceleration? HD Bk fis placed) kahing M pas ovars pilly stachels and fo pally we highi The ffs of 2 l deg a touse...
-
Complete the following acid-base reactions: (a) HCCH + NaH
-
From the list of pricing objectives stated which would be most important for an exporting company in the following situations? Defend your choices.
-
Describe Internationalization Theory.
-
How is a loss leader different from dumping?
-
True or False: The most commonly used measure of inflation is the relative change in the Consumer Price Index.
-
Mike's Veneer Shop owns a vacuum press that requires annual maintenance. Mike has a contract to cover the maintenance expenses for the next 5 years. The contract calls for an annual payment of \(\$...
-
What is the relationship between inflation and deflation? Give an example of deflation experienced in your everyday life.
Study smarter with the SolutionInn App