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.