Computers and Technology
Implement the following logic in C++, Use appropriate data types. Data types are represented as either numeric (num) or string.startstring namestring addressnum item //use intnum quantitynum price //use double as data typenum SIZE = 6num VALID_ITEM [SIZE] = 106, 108, 307, 405, 457, 688 //use int as data typenum VALID_ITEM_PRICE [SIZE] = 0.59, 0.99, 4.50, 15.99, 17.50, 39.00 //use double as data typenum ibool foundIt = falsestring MSG_YES = "Item available"string MSG_NO = "Item not found" get name, address, item, quantityi = 0while i < SIZE if item == VALID_ITEM [i] then foundIt = true price = VALID_ITEM_PRICE [i] endif i = i + 1endwhile if foundIt == true then print MSG_YES print quantity, " at " , price, " each" print "Total ", quantity * price elseprint MSG_NOendifstop