Using Python 3, create a Merchandise data class and, in a separate file, an executable program named program12.py to test it. Refer to the UML diagram below to create the Merchandise class.
NOTE: the get_inventory_value() method calculates and prints the value of the merchandise item in currency format.
NOTE: the __str()__ method returns a string showing all 3 attributes and the inventory value (quantity * cost).
In the program12.py main function:
create a Merchandise instance for 10 axes costing $14.95 each.
create another Merchandise object for 6 rings costing $799.99 each.
run the __str__ methods of both objects.
prompt the user for a new quantity for the ax object, then change this attribute with the setter method.
prompt the user for a new cost for the ring object, then change this attribute with the setter method.
verify the changes by running the __str__ methods again.
display the inventory value for each object as well.
ax, 10 @ $14.95
ring, 6 @ $799.99
Enter new quantity for hardware 12
Enter new cost for jewelry 659
ax, 12 @ $14.95
Inventory value: $179.40
ring, 6 @ $659.00
Inventory value: $3,954.00