Hello, to run a program, I must include text file.
When I run, I must keep my files running from the text file.
Here is the text file.
a 54 AB123 Orange Pte Ltd
A 100 CD456 Apple Pte Ltd
A 153 EF778 XYZ Pte Ltd
a 2415 GH123 Mango Pte Ltd
B 14 IJ456 Xin Yin Pte Ltd
B 20 KL789 Mangnolia Pte Ltd
b 110 MN123 Fresh Mango Pte Ltd
b 117 OP456 Kiwi Pte Ltd
B 6 XT123 Banana Pte Ltd
There are 100kg, 20kg, 10kg and 5kg provided.
(Note that: 'A' or 'a' cannot accept 100 kg)
(Note that: 'B' or 'b' cannot accept 100 kg and 20 kg)
and coding.
the output must be in terms of this:
EXCELLENT
FERTILIZER WHOLESALER SDN BHD
WEEKLY ORDER REPORT
_________________________________________________________________________________________________________________
RETAILER YZ123 SUPREME EXCELLENT PTE LTD
_________________________________________________________________________________________________________________
ORDER: 10 KG
10 KG SACKS 1
TOTAL NUMBER OF SACKS: 1
ORDER SHORT BY: 0 KG
INVOICE: $11.70
_________________________________________________________________________________________________________________
SUMMARY
_________________________________________________________________________________________________________________
1 ORDERS PROCESSED
10 KG SACKS 1
TOTAL NUMBER OF SACKS: 1
ORDER SHORT BY: 0 KG
TOTAL AMOUNT INVOICED: $11.70
the case A is still not working. thus cannot run :/