| | |
Linked List program HELP
Please support our C++ advertiser: Intel Parallel Studio Home
Thread Solved |
•
•
Join Date: Jul 2008
Posts: 3
Reputation:
Solved Threads: 0
Please help with the following linked list program. Any help is good =]
Use a linked list to do this program
a store recieves shipmesnts of chairs at various cost. the store policy is to charge a 35% markup, and to sell chairs which were received earlier before chairs that were recieved later (FIFO policy).
write a program in C++ using linked list that reads 3 types of input data and does the following:
1-a sales record which contains an "S" in colum 1 and a quantity which represents the number of chairs sold
2-a receipt record which contains an "R" in column 1 and a quantity and a price which represents the receipt of a quantity of chairs at the stated cost per chair.
3-a promotion card which contains a "P" in column 1 and a number such as 15 which would represent a 15% discount to the next 2 buying customers
the program should print a message after each receipt record is read in with the price of the chairs received and print a message after each promotion card is read in with the amount of discount the next two customers will be receiving.
after a sales record is read in print a message stating the number sold and the price of each chair and total price of the order.
if there are an insufficient number of widgets in stock to fill an order sell as many as are available then print
"remainder of xxx chairs not available"
do not forget promotional discount
at the ens of the data before exiting the program print out under a seperate heading the chairs still left in stock and their original purchase price
Use a linked list to do this program
a store recieves shipmesnts of chairs at various cost. the store policy is to charge a 35% markup, and to sell chairs which were received earlier before chairs that were recieved later (FIFO policy).
write a program in C++ using linked list that reads 3 types of input data and does the following:
1-a sales record which contains an "S" in colum 1 and a quantity which represents the number of chairs sold
2-a receipt record which contains an "R" in column 1 and a quantity and a price which represents the receipt of a quantity of chairs at the stated cost per chair.
3-a promotion card which contains a "P" in column 1 and a number such as 15 which would represent a 15% discount to the next 2 buying customers
the program should print a message after each receipt record is read in with the price of the chairs received and print a message after each promotion card is read in with the amount of discount the next two customers will be receiving.
after a sales record is read in print a message stating the number sold and the price of each chair and total price of the order.
if there are an insufficient number of widgets in stock to fill an order sell as many as are available then print
"remainder of xxx chairs not available"
do not forget promotional discount
at the ens of the data before exiting the program print out under a seperate heading the chairs still left in stock and their original purchase price
>Any help is good =]
I'm curious, can you define what you mean by "help"? Because it looks a lot like you want us to do your homework for you.
Anyway, this may help you.
I'm curious, can you define what you mean by "help"? Because it looks a lot like you want us to do your homework for you.
Anyway, this may help you.
I'm here to prove you wrong.
•
•
•
•
Ok well i aint mean do it i guess ma question would be how would i read a file with this info into a linked list
I'm a student. If my statements seem too absolute, feel free to coat them with "In my opinion..." or "I believe...".
![]() |
Similar Threads
- Removing an item from head of linked list (C)
- trouble with double linked list (C++)
- Doubly Linked List Problem (C++)
- Adding to linked list from external file (C)
- I need help with a linked list program (C++)
- printing a linked list (C++)
- doubly linked list implementation (Java)
- Linked List using pointers (C++ ADT) (C++)
- Linked List (C++)
Other Threads in the C++ Forum
- Previous Thread: What would you reccomend me to do?
- Next Thread: Time and Date Display
| Thread Tools | Search this Thread |
api application array arrays based beginner binary c++ c/c++ calculator char char* class classes code compile compiler console conversion count delete deploy desktop directshow dll download dynamic dynamiccharacterarray encryption error file forms fstream function functions game givemetehcodez google graph gui homeworkhelp iamthwee ifstream input int java lib library linkedlist linker list loop looping loops map math matrix memory newbie news number numbertoword output pointer problem program programming project python random read recursion recursive reference return rpg simple sorting string strings studio temperature template templates test text text-file tree unix url variable vector video visual visualstudio win32 windows winsock wordfrequency wxwidgets






