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

Nov 12th, 2015
FratBro23
Category:
Computer Science
Price: $5 USD

Question description

main.txt

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

inventory.txt

book_count.txt

book_inventory.txt

book_sales.txt

Tutor Answer

(Top Tutor) Daniel C.
(997)
School: University of Virginia
PREMIUM TUTOR

Studypool has helped 1,244,100 students

8 Reviews


Summary
Quality
Communication
On Time
Value
ddg82
Dec 10th, 2016
" Thanks, good work "
tinytim47
Nov 27th, 2016
" Wow this is really good.... didn't expect it. Sweet!!!! "
kenmwao2
Nov 25th, 2016
" Solid work, thanks. "
jestin7
Nov 18th, 2016
" This tutor is great! "
lilmoe415
Nov 4th, 2016
" Thank you, Thank you, for top quality work, this is your guy!! "
dontuwannaknow
Oct 13th, 2016
" Excellent work as always thanks so much "
thargrow
Oct 4th, 2016
" Very Satisfied. "
SjSurvivor143
Sep 29th, 2016
" Thanks for the help. "
Ask your homework questions. Receive quality answers!

Type your question here (or upload an image)

1830 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