4. Given the following C++ code:
struct RetailItem
{
string sku; // Stock Keeping Unit
string name; // Description
int quantity; // Quantity on hand
double unitCost; // Unit value in dollars
};
RetailItem inventory[20];
Write the C++ programming statement that will assign the value 638 to the quantity member of the fourth entry in the array of RetailItem structures named inventory.
5. The sku for the retail item named Hammer is 34598. This retail item has a quantity of 542 and a unit value of $34.89. Using the RetailItem structure and array definition in question 4, write the C++ statements necessary to load the second entry in the array of RetailItem structures called inventory with the Hammer member values.