this is the priority
I have written a simple program that stimulates a shopping cart. ( list items, add items, remove, show cart products, and checkout, with 7% tax, items) . This code needs to be corrected. it needs code to handle user errors The product list is in excel in a zipped folder, (can add more item to the list?). project need a report that shows UML diagram and presentable information to present the project.
it needs to be corrected and run as per the instructions attached to the zip.
first, fix when I add items to the cart .. with 100 quantity ... If I want to remove 50 quantity from the cart, the code should only remove 50 items and charge me for 50 items. if I remove 100 it should remove product entirely from the list. lastly, if I entered more than 100 items the code should say cant remove.
the second fix.... should able to catch human errors and it should have try and block /exception list. if a user entered hh instead of 1 it should take back to the screen and ask the user to enter the correct code
third fix. when the product is being read from the file it should run in a loop to read the line. also, instead of manually selecting, just slicing, it should run-able to run using LEN to find the length of the each line
product_file = open('[login to view URL]','r')
line1 = ([login to view URL]())
line2 = ([login to view URL]())
line3 = ([login to view URL]())
line4 = ([login to view URL]())
line5 = ([login to view URL]())
[login to view URL]()
price1 = float(line1[26:])
item1 = line1[0:25]
price2 = float(line2[23:])
item2 = line2[0:22]
price3 = float(line3[21:])
item3 = line3[0:20]
price4 = float(line4[15:])
item4 = line4[0:14]
price5 = float(line5[21:])
item5 = line5[0:20]
this slicing should not be there instead the program should do it automatically find the length of each line,
Finally the last fix when a user about to select item from the list ... there should a number right beside the item .. like
1 harry porter
2 children movie
so user can identity which line to add instead of counting it manually .
Following code below needs to be done to get more points.
Need to do something extra to get Bonus marks on top of the instruction. This extra can be one of the following: graphic user interface, Like a window popping up to show the picture of the item?, or website with a database( need to use python language and my SQL for the database) or if you know or have something interesting to the similar projects.
15 freelancere byder i gennemsnit $135 på dette job
cab fix and extend this for you Relevant Skills and Experience - python - sql / whatever you want Proposed Milestones $100 USD - fixed and extended
Hello Sir I will do your work and i will assure you a quality work if you avail me Relevant Skills and Experience i am expert in MySQL, Python Proposed Milestones $155 USD - work
We can help you with your problem. We are python experts. Habilidades y experiencia relevante python developers Htos propuestos $130 USD - work running on python