Lab 10 - Structures and Functions

The purpose of this lab is to learn how to create and use a structure object and how to pass a structure object to a function.

Program Requirements: You will be creating a structure called ProductInfo to hold information on products in a store inventory. In main(), you will create a single ProductInfo object, then call the getProduct() function to read in the product attributes, and finally call the printProduct() function to print the product attributes.

The ProductInfo structure must have the following attributes:

The functions will have the following features:

The output should resemble the following (the user input is in blue font face):

Enter product name: red ball
Enter UPC code: 12497438956
Enter quantity in stock: 15

Product Information is:
Name: red ball      UPC: 12497438956    Stock: 15
Name your code lab10.cpp and email your completed code to me.