The sale policy of the company depends on many factors according to the
following.
• if item in stock more than 8 months and item profit is more
than average profit of all items
• yes - if customer reviews low quality
• yes - sale 50%
• no - if customer reviews medium quality
• yes - sale 30%
• no - sale 15%
• no - if item profit more than 8% of the item price
• Yes - if in stock more than 1 year
• Yes sale 40%
• no - not on sale
• No - not on sale
Write a C++ program that reads the information from "data.txt" input file
into 5 arrays, then processes these arrays to produce three arrays, first
arrays holds the items on sale, second array holds percentage of sale, and
the third one holds the items without sale. Print these arrays on the screen
to produce the following output.
Sample output:
Sale Items percentage
round_table1 30
square_table 50
stand_lamp 40
pillow_cover1 40
BLUE_chair 15
stand_lamp2 40
pillow_cover2 50
round_lamp 15
Non Sale Items
chair
X_chair
round_table2
square_table