IMPORTANT
FOLLOWING THINGS MUST BE DONE IN YOUR CODING PART OF YOUR COURSEWORK
โข code MUST BE divided into 4 different .py(python) files (read, write, main and operations)
โข code MUST BE broken down to different functions for different logical tasks โข code MUST HAVE implementation of TRY EXCEPT BLOCK (at least one TRY EXCEPT BLOCK is required)
FOLLOWING THINGS ARE NOT TO BE DONE IN YOUR CODING PART OF YOUR COURSEWORK
โข code MUST NOT contain the naming (naming of VARIABLES, FUNCTIONS AND FILES) like, “abc”, “1234”, “ccc”, “zzz” etc. PROPER naming convention is required โข code MUST NOT contain the ROMAN NEPALI naming like, “quantity_validation_gareko”, “ID_check_gareko”, “user_ko_id”,”user_ko_quantity” etc.PROPER naming convention is required
โข your are NOT ALLOWED to CREATE a function inside of a function, you are ONLY ALLOWED to CALL a function inside of a function
FOLLOWING THINGS CAN BE DONE IN YOUR COURSEWORK
โข you CAN name your own product details
โข you CAN use 2D list or Dictionary approach to do the coursework
โข you CAN use your own format for printing the bill, displaying the bill, user messages, products details, user options
โข you CAN use OOP concept to complete your coursework as well
โข you CAN add any additional option than Purchase Sell and Exit for user โข you CAN write logic for purchasing non existing product rather than purchasing the products that are only available in the text file
FOLLOWING THINGS MUST BE DONE BY YOUR PROGRAM
โข your program SHOULD display the available products
โข your program SHOULD give user the option to PURCHASE, SELL and EXIT from the system
โข your program SHOULD increase the STOCK to the main text file when PURCHASED โข your program SHOULD decrease the STOCK to the main text file when SOLD โข your program SHOULD be able to purchase one or more product at a same time and print all the purchased product(s) to one singular bill
โข your program SHOULD be able to sale one or more product at a same time and print all the sold product(s) to one singular bill
โข your program SHOULD generate bill for both PURCHASE and SALE โข your program SHOULD have selling price 200% of the initial product price while selling to a customer.
โข IF you sell 3 products, customer should get one product free.(If you have 10 items in your stock, and you sell 3 items user will get 1 item for free so total quantity to be โข deducted will be 4 but the price should be of 3 items only)
โข your program SHOULD generate each bill uniquely
โข your program SHOULD NOT crash in any way because of some invalid input or any other cause.