Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

undefined Small Business Deliveries.py (ECOMPUT175 Assugnment1); Wing Eile Edit Source Debug Tools Window Help orders.txt Small Wiring Dalvarle.ry+ ptions losdorders X Pilo E:COEPUT 175ANS muntlSmall

image text in transcribedimage text in transcribedundefined

Small Business Deliveries.py (E\COMPUT175 Assugnment1); Wing Eile Edit Source Debug Tools Window Help orders.txt Small Wiring Dalvarle.ry+ ptions losdorders X Pilo E:\COEPUT 175\ANS muntl\Small Business 28 zories=[] Deliveries.py", line 6s, in Codule> rassicadardere 29 for line in lines: File 'K: COEPITI ugnimenti Small Business 30 line.replace(' ','') Deliveries.py", line 44, In loadOrders 31 tokenare.split("#l,", line) crow-Order tokenic), tofan 21. taler21. intitoni 32 zone=Zone(token[@], token[1:len(token)-1]) 2. Intitalenia! 33 zones.append(one) builtins. ValueError: invalid litcral for 34 return (zones) int() with base 10: GDN0001 35 36 def loadOrders(filename="orders.txt"): 37 f=open(filename, "r") 3B lines=f.readlines() 39 f.close() orders-[] 41 for line in lines: 42 line.replace(' ','') 43 token=line.split("") orderOrder(token[@], tolcen[1], tolcen[2], int(token[B]), int(token[1]) orders.append(order) 46 return (order's) 47 40 def loadProducts(filename="products.txt"): 49 feopen(filename, "r") 50 lines=f.readlines() 51 t.close() 52 products=[] 53 for line in lines: 54 line.replace(' ',' ') Search Stack Datu Datus I0 Python shall Search: Conrands execute without debug. Use arrow keys for history. + Replace: Case sensiti- cblc pords In Selection Welcome to the Small Business Delivery Program Brevious Next Replace Replace 411 Dations - ************************* Traceback (most recent call last): File "E:/COMPUT175/Assugnment1/Small Business Deliveries.py", line 65 orders-loadOrders() File "E:/COMPUT175/Assugnncnt1/Small Business Deliverics.py", line order=Order (token[0], token(1), token [2], int(token[3]), int(token[4]) builtins.ValueError: invalid literal for int() with base 1e: "GDN001 Datire - Line 44 Col 64 + 011 2021-01-17%Fiona O'Byrne%13420-114 Ave T5M 2Y5%GDN0001%2 2021-01-17%Fiona O'Byrne%13420-114 Ave T5M 2Y5%GDN0002%1 2021-01-17%Fiona O'Byrne%13420-114 Ave T5M 2Y5%GDN0004%1 2021-01-17%Fiona O'Byrne%13420-114 Ave T5M 2Y5%GDN0003%1 2021-01-20%Fiona O'Byrne%13420-114 Ave T5M 2Y5%GDN0012%3 2021-01-19%Andrew Jackson%13420-114 Ave T5M 2Y5%GDN0008%1 2021-01-18%Archibald Sussex-Mountbatten%8310-88 Ave T6C 1L1%BK0020%1 2021-01-17%Susie Qu%2610 Hewes Way T6L OA9%BK0019%1 2021-01-20%Max Smart%11051-125 St T5M OM2%BK0018%1 2021-01-20%John Doe%12710-131 Ave T5L 276%BK0017%1 2021-01-17%Mary Alice Wong%9915-67 St T6A OH2%BK0016%1 2021-01-21%Jane Doe%11117-127 St T5M OT5%BK0015%1 2021-01-17%Robert Smith%9010-156 St TSR 5X7%BK0014%1 2021-01-17%Darcie Morgan%7 Sir Winston Churchill Square T5J 2V4%BK0013%1 2021-01-17%Molly Dixon%10707-100 Ave T5J 3M1%BK0012%1 2021-01-17%Evelyn Powell%2702-17 St TOT OX1%BK0011%1 2021-01-17%Elizabeth Bennett%818 Webber Greens Dr T5T 4K5%BK0010%1 2021-01-17%Christina Ramirez%17650-69 Ave T5T 3X9%BK0009%1 2021-01-19%Penelope Ward%8331-104 St T6E 4E9%BK0008%1 2021-01-18%Joe Bailey%8715-153 St T5R 1P1%BK0007%1 2021-01-17%Adele Bateman%15451-84 Ave T5R 3Y1%BK0006%1 2021-01-22%Neil Martin%11522-92 St T5G OZ7%BK0005%1 2021-01-22%Thomas Fitzpatrick%9735-144 St T5N 2T3%BK0004%1

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Principles Programming And Performance

Authors: Patrick O'Neil, Elizabeth O'Neil

2nd Edition

1558605800, 978-1558605800

More Books

Students also viewed these Databases questions

Question

Why do HCMSs exist? Do they change over time?

Answered: 1 week ago