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 which would represent a 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 widgets at $ and at $ and at $ print recall the markup and the FIFO policy
Widgets sold
at each Sales: $
at each Sales: $
at each Sales: $
Total Sale: $
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 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
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
