Must be written in c++. I have most of the code finished but Ineed int main changed. I want the core concept of the original intmain with the new changes.
Write a main()function that instantiates an array of fiveInventory objects and accepts data for each. If an exception isthrown because of an invalid stock number, force the user toreenter the stock number for the Inventory object. If the quantityis invalid, do nothing. If the price is in error, then set theprice to 99.99. (Add a setPrice() function to the Inventory classto accomplish this.) At the end of the program, display data
PayPal Gateway not configured
PayPal Gateway not configured