C++ Working with Classes, inheritance, overloading operators and Exception

Nov 12th, 2015
Price: $5 USD

Question description


I am working on a C++ assignment that covers Classes, inheritances and composition, operator overloads, reading from files and exception handling. I am having trouble knowing if what I am doing is right. The program should output this: Output

The program is reading three files while I am required to match the output above. Here are my main.cpp and header files for my classes. There are comments in the code to what each part of the code should do. Inventory and merchandise are my header files containing classes. Also it says chapter 13 and 14 code which is overloading and templates, and exception handling respectively. The chaper 13 portion of the code should: Overload the << operator for the Inventory class to produce the same output as showStore(), then use your << overload in the main function below the comment for chapter 13 code to output the inventory object you instantiated at the top of the main function. I am not sure what I need to do with exception handling yet. For now it would be great if you can review my code on everything I have done as I am not sure if everything is correct to this point. I will provide the three files that need to be read as well which are book_count, book_inventory, and book_sales. merchandise.txt





Tutor Answer

(Top Tutor) tanezavm
School: UC Berkeley

Studypool has helped 1,244,100 students

Review from student
" Thanks, good work "
Ask your homework questions. Receive quality answers!

Type your question here (or upload an image)

1822 tutors are online

Brown University

1271 Tutors

California Institute of Technology

2131 Tutors

Carnegie Mellon University

982 Tutors

Columbia University

1256 Tutors

Dartmouth University

2113 Tutors

Emory University

2279 Tutors

Harvard University

599 Tutors

Massachusetts Institute of Technology

2319 Tutors

New York University

1645 Tutors

Notre Dam University

1911 Tutors

Oklahoma University

2122 Tutors

Pennsylvania State University

932 Tutors

Princeton University

1211 Tutors

Stanford University

983 Tutors

University of California

1282 Tutors

Oxford University

123 Tutors

Yale University

2325 Tutors