Question: You are to use Linked Lists to do this Program. which was received later. This is called a FIFO policy. Write a program using linked

You are to use Linked Lists to do this Program.
which was received later. This is called a FIFO policy.
Write a program using linked lists that reads in three possible types of input data and does the following:
quantity of the wood at the stated cost per piece.
which represents the number of pieces of wood requested.
A promotion card which first contains a "P" and a number such as 25 which would represent a 25% discount to the next buying customer (the next sales card).
The program should
Print a message after each receipt record is read in with the price of the wood received.
Print a message after each promotion card is read in with the amount of discount the next customer will be receiving.
sold and there were 50 widgets at $1.00 and 100 at $2.00 and 50 at $3.00 print (recall the 40% markup and the FIFO policy)
200 Widgets sold
50 at 1.30 each Sales: $65.00
100 at 2.60 each Sales: $260.00
50 at 3.90 each Sales: $195.00
Total Sale: $520.00
If there are an insufficient number amount of wood in stock to fill an order sell as many as are available and then print
"Remainder of x pieces of Oak or (Cherry Maple) wood not available"
Do not forget the promotional discount.
At the end of the data before exiting the program print out under a separate heading the number of pieces of each type of wood remaining in stock and their original purchase price.
of wood.
Data for program
 You are to use Linked Lists to do this Program. which

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!