I need help guys on how i could get a flowchart working for this task:
Create a suitable text file to use with a high-level programming language containing a list of product
details, including a GTIN-8 product code, a product description and price.
The program should allow a user to enter GTIN-8 codes for a list of products they wish to purchase
and the quantity required of each product. The program should search the stock file to produce a list of
products with their descriptions, prices, cost for each of the quantity selected and the total cost for all of
the products. The program should also identify products not found.
34512340 plain brackets 4 0.50 2.00
98981236 product not found
56756777 100 mm bolts 32 0.20 6.40
90673412 L-shaped brackets 6 1.20 7.20
Total cost of order 15.60
Analyse the requirements for this system and design, develop, test and evaluate a program to allow a
user to enter GTIN-8 codes for a list of products and a quantity. The program should produce a receipt,
i.e. a list of products with descriptions, prices, cost for each of quantity selected and the total cost of all
the products ordered.
- 1 follower
- 1 badge
- Thread Starter
- 19-09-2016 12:35
- 0 followers
- 3 badges
- 29-09-2016 22:01
Have you tried to do this task by hand? ie have you got a table of products, their individual costs and some form of ID (doesn't have to be GIT8)
Now try to create a shopping list, eg five of product 7, 3 of product 20, seven of product 1, eight of product 9
Now BY HAND generate the bill, in the same format that your final solution should look like.
What did you have to do to find the name and unit cost?
How did you work out the line cost?
What happens if you cant find the product ID number,
How do you get the total cost?
Think back to the steps you used, write them down, were any of them repeated? Yes, great you have a loop, draw the arrows on your paper list of steps to show the loop.
Finished this, now type it up and you should have a working flow diagram.