Using your assignment #11 program modify it.  

·         Change your code to use an STL List - keeping all the same functionality you currently have, meaning you will have to change the code but it should work the same as before - load/add/delete/print/find

·         Add menu option to order the STL List based on partno in either ascending or descending - give user option for both sort directions.  (you will need two sort helper functions one for asc. one for desc.)

·         Add menu option to create a backup List.

·         Add menu option to restore backup list to the primary List.

·         Overload/override the += operator in your class to allow adding parts via your object_name += new_part; syntax - modify your program to use this += to add parts instead of calling the add directly.

 

 

You will have to remove any pointers from your structure.  And test your program fully, you will need to test this by loading your file, then adding a new parts, sort the parts in both directions, backup your parts, make changes, restore your parts, find parts etc. printing at different points your parts to verify everything is working how you expect it to.

 

 

Example program run:

Welcome to the inventory management program:

 

 

Menu options - L) Load and Print Inventory File

               P) Print Inventory

               A) Add Part to Inventory

               F) Find Part in Inventory

               D) Delete Part From Inventory

               S) Sort Parts

               B) Backup Parts List

               R) Restore Parts List from Backup

               Q) Quit

Enter: l

Load parts file - what is the name of your parts file : parts.dat

 

 

 

Menu options - L) Load and Print Inventory File

               P) Print Inventory

               A) Add Part to Inventory

               F) Find Part in Inventory

               D) Delete Part From Inventory

               S) Sort Parts

               B) Backup Parts List

               R) Restore Parts List from Backup

               Q) Quit

Enter: b

Backup list created

    • 11 years ago
    Assignment Completed with ScreenShots of Running Code
    NOT RATED

    Purchase the answer to view it

    blurred-text
    • attachment
      assign_3.doc
    • attachment
      assign_3_option_p.png
    • attachment
      assign_3_option_f.png
    • attachment
      assign_3_option_a.png
    • attachment
      assign_3_option_l.png
    • attachment
      assign_3_option_s.png