Question: C++ Define a structure type CartItem that models one item in online shopping cart and contains three members: name of a product, a price of
C++
Define a structure type CartItem that models one item in online shopping cart and contains three members: name of a product, a price of a product, and quantity of a product in a cart. Define a function void showCartInfo(CartItem items[], int cartSize) that takes an array of CartItems as a parameter and prints information about each item and a total price of items. Test your function.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
