Question: Hi! Please write a C++ code that meets the requirements listed and comment each line. We use the How to Program Textbook by Deitel. And
Hi! Please write a C++ code that meets the requirements listed and comment each line. We use the How to Program Textbook by Deitel. And clearly mark where each file begins and ends.

Problem 14.11 (Hardware Inventory) You are the owner of a hardware store and need to keep an inventory that can tell you what different tools you have, how many of each you have on hand, and the cost of each one. Write a program that asks you if you want to initializes the random- access file hardware.dat to 100 empty records (or leave whatever existing data is in the file as is), lets you input the data conceming each tool, enables you to list all your tools to the screen, enables you to list all your tools to a text file, lets you delete a record for a tool you no longer have and lets you update any information in the file. (You may have a separate program that you run once to create a non-existing hardware.dat file. If you do, turn that program in as well.) The tool identification number should be the record number. Use the following information to start your file: Tool name Electric sander Record# QuantityCost 57.98 11.99 11.00 79.50 99.99 6.99 21.50 7.50 76 21 17 24 39 56 68 g saw Lawn mower Power saw Screwdriver Sledge hammer Wrench 18 106 83 34 Turn in pdfs of your test cases results by uploading them to canvas (please no JPEG or PNG or word, upload a pdf doc for your test cases). Also in addition, upload the source code files (uncompiled) AS WEL AS YOUR HARDWARE DAT FILE on or before the due date so your program may be tested. How your code is commented, how well you tested the program (Gust one test case or enough test cases to prove it works), any extra functionality, how you output your test results and details of program output will all be taken into consideration when grading your program. You should have comments at the top that includes your name, the date, explains what the program does and comments above the functions explaining what they do (in addition to any comments needed on lines that explain what that line does)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
