What do you need to declare in the class

Assignment Help C/C++ Programming
Reference no: EM13863109

If you are asked to write three classes : class Person, BookAuthor, and Book. The class Person involves with a person's identity. The class BookAuthor involves with a collection of books or book titles. The class Book involves number of books in stock , book title, and price.

Design the three classes . The classes must use appropriate relationships. Each class must have two constructors, one is the default and the other is an overloaded constructor. Each class has at least two private data members. Try not to use too many member functions due to the time you have. See the grading criteria what you will be assessed on. You are allowed to use one file for the classes, implementations, and the main(). If using separate files, you will earn 2 extra points.

Here is the main( ) which will give you a good clue on developing your classes:

int main( )

{ Book Cplusbk("Tony Gaddis", "C++ Early Object" , 2013, 57.8, 500); // Author's name,

//title, year published, price, andnumber of books in stock).

Cplusbk.Display( ); // displays the Author 's name, Author's

//name, title, year published, price, and number of books in stock.

// The following line with its question is worth 2 points if you your answer is correct.

Book bk1(50.0), bk2(80.0), bk3;

bk3 = bk1 + bk2; // As a result, bk3 contains 130.0 as its price.

Question: What do you need to declare in the class and define to accomplish the bk3 = bk1+bk2; successfully?

return 0;

}

Reference no: EM13863109

Questions Cloud

What will the histogram of pixel intensities look like : Draw the cumulative histogram for this image (see Figure 1). What will the histogram of pixel intensities look like after applying histogram equalization?
How prepare the income statement : Prepare the Income Statement
How a defendant rights at trial can be assured : Write a 1,050- to 1,400-word paper in which you articulate how a defendant's rights at trial can be assured. Include how to assure a defendant is provided the following: The right to a speedy trial
Explain the pretrial process : Write a 400 wordspaper in which you explain the pretrial process, along with the following associated activities- Preliminary examinations and The role of the grand jury
What do you need to declare in the class : Question: What do you need to declare in the class and define to accomplish the bk3 = bk1+bk2; successfully? Design the three classes . The classes must use appropriate relationships.
What is a segment of an organization? : What is the basic difference between absorption costing and variable costing?
Describe the premise of the theory : Explain the theory in detail. Discuss the theorist responsible for coining the theory including the year the theory was created. Describe the premise of the theory
Create draft of service level agreement for silverphase llc : Create a draft of a Service Level Agreement for SilverPhase LLC. Be sure to include specific references to Windows, Mac OS X and iOS support.
What would be a good choice for the other direction and why : We said that at least one direction of a bidirectional search must be a breadth-first search. What would be a good choice for the other direction? Why?

Reviews

Write a Review

C/C++ Programming Questions & Answers

  Create program that uses functions and reference parameters

Create program that uses functions and reference parameters, and asks user for the outside temperature.

  Write a program using vectors and iterators

Write a program using vectors and iterators that allows a user to maintain a personal list of DVD titles

  Write the code required to analyse and display the data

Calculate and store the average for each row and column. Determine and store the values for the Average Map.

  Write a webservices application

Write a webservices application that does a simple four function calculator

  Iimplement a client-server of the game

Iimplement a client-server version of the rock-paper-scissors-lizard-Spock game.

  Model-view-controller

Explain Model-View-Controller paradigm

  Design a nested program

How many levels of nesting are there in this design?

  Convert celsius temperatures to fahrenheit temperatures

Write a C++ program that converts Celsius Temperatures to Fahrenheit Temperatures.

  Evaluate and output the value in the given base

Write C program that will input two values from the user that are a Value and a Base with which you will evaluate and output the Value in the given Base.

  Design a base class shape with virtual functions

Design a base class shape with virtual functions

  Implementation of classes

Implementation of classes Chart and BarChart. Class barChart chould display a simple textual representation of the data

  Technical paper: memory management

Technical Paper: Memory Management, The intent of this paper is to provide you with an in depth knowledge of how memory is used in executing, your programs and its critical support for applications.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd