{"id":72511,"date":"2018-02-20T23:50:30","date_gmt":"2018-02-20T23:50:30","guid":{"rendered":"https:\/\/writemyessayfree.com\/design-an-inventory-class-that-stores-the-following-members"},"modified":"2017-08-18T06:33:00","modified_gmt":"2017-08-18T06:33:00","slug":"design-an-inventory-class-that-stores-the-following-members","status":"publish","type":"post","link":"https:\/\/www.benedictsol.com\/blogs\/design-an-inventory-class-that-stores-the-following-members\/","title":{"rendered":"Design an inventory class that stores the following members"},"content":{"rendered":"<p>Design an inventory class that stores the following members:&lt;\/o:p&gt;<\/p>\n<p>&lt;\/o:p&gt;<\/p>\n<p>serialNum: An integer that holds a part\u2019s serial number.&lt;\/o:p&gt;<\/p>\n<p>manufactDate: A member that holds the date the part was manufactured.&lt;\/o:p&gt;<\/p>\n<p>lotNum: An integer that holds the part\u2019s lot number.&lt;\/o:p&gt;<\/p>\n<p>&lt;\/o:p&gt;<\/p>\n<p>The class should have appropriate member functions for storing data into, and&lt;\/o:p&gt;<\/p>\n<p>retrieving data from, these members.&lt;\/o:p&gt;<\/p>\n<p>&lt;\/o:p&gt;<\/p>\n<p>Next, design a stack class that can hold objects of the class described above. If you&lt;\/o:p&gt;<\/p>\n<p>wish, you may use the template you designed in Programming Challenge 1 or 2.&lt;\/o:p&gt;<\/p>\n<p>&lt;\/o:p&gt;<\/p>\n<p>Last, design a program that uses the stack class described above. The program should&lt;\/o:p&gt;<\/p>\n<p>have a loop that asks the user if he or she wishes to add a part to inventory, or take a&lt;\/o:p&gt;<\/p>\n<p>part from inventory. The loop should repeat until the user is finished.&lt;\/o:p&gt;<\/p>\n<p>&lt;\/o:p&gt;<\/p>\n<p>If the user wishes to add a part to inventory, the program should ask for the serial&lt;\/o:p&gt;<\/p>\n<p>number, date of manufacture, and lot number. The data should be stored in an inventory &lt;\/o:p&gt;<\/p>\n<p>object, and pushed onto the stack.&lt;\/o:p&gt;<\/p>\n<p>&lt;\/o:p&gt;<\/p>\n<p>If the user wishes to take a part from inventory, the program should pop the top-most&lt;\/o:p&gt;<\/p>\n<p>part from the stack and display the contents of its member variables.&lt;\/o:p&gt;<\/p>\n<p>&lt;\/o:p&gt;<\/p>\n<p>When the user finishes the program, it should display the contents of the member values&lt;\/o:p&gt;<\/p>\n<p>of all the objects that remain on the stack<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Design an inventory class that stores the following members:&lt;\/o:p&gt; &lt;\/o:p&gt; serialNum: An integer that holds a part\u2019s serial number.&lt;\/o:p&gt; manufactDate: A member that holds the date the part was manufactured.&lt;\/o:p&gt; lotNum: An integer that holds the part\u2019s lot number.&lt;\/o:p&gt; &lt;\/o:p&gt; <a href=\"https:\/\/www.benedictsol.com\/blogs\/design-an-inventory-class-that-stores-the-following-members\/\" class=\"read-more\">Read More &#8230;<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-72511","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/www.benedictsol.com\/blogs\/wp-json\/wp\/v2\/posts\/72511","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.benedictsol.com\/blogs\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.benedictsol.com\/blogs\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.benedictsol.com\/blogs\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.benedictsol.com\/blogs\/wp-json\/wp\/v2\/comments?post=72511"}],"version-history":[{"count":0,"href":"https:\/\/www.benedictsol.com\/blogs\/wp-json\/wp\/v2\/posts\/72511\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.benedictsol.com\/blogs\/wp-json\/wp\/v2\/media?parent=72511"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.benedictsol.com\/blogs\/wp-json\/wp\/v2\/categories?post=72511"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.benedictsol.com\/blogs\/wp-json\/wp\/v2\/tags?post=72511"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}