Question: Write a struct named RetailItem that holds data about an item in a retail store. The class should have the following member variables: 1) description.

Write a struct named RetailItem that holds data about an item in a retail store. The class should have the following member variables: 1) description. A string that holds a broef description of the item. 2) unitsOnHand. An integer that holds the number of units currently in inventory 3) price. A double that holds the items retail price. Write a program that creates an array of five RetailItem types and stores the data for each of the four items and then prints the following- (i) information about each item for the user in a loop. (ii) Information about the item that has the lowest number of items in the inventory. A sample of the output would be follows- use proper formatting aspects to output money. 1. Description sportsJacket, Units 12, Price: $269.98 2. Description jeans, Units 42, Price: $109.99 3. Description shirt, Units 52, Price: $85.99. 4. Description socks, Units 5, Price: $5.59. There are only 5 pieces of socks remaining.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!