subject

Suppose you are building a robot (drone) capable of delivering e-commerce packages to customers' homes. You are given the following: Address Book The address book contains the names & addresses of customers who have registered with the drone delivery service. Note that address is encoded as a 3-tuple where the first element holds zip-code (int), the second entry holds an encoded number of street name (int), and the last entry is the street number (int).Customer Name Address Alice (92617, 10, 1200) Bob (92617, 10, 8320) Cindy (92630, 15,2550) Wang (91250, 24, 3205) Chang (91450, 61, 9982) Lee (91750, 92, 6420) Steve (91250, 89, 7102) Turning (96250, 57,8311) Fourier (90318, 83,9158) McCulloch (94832, 29,6204) Tanaka (95623, 38, 4311)Ichiro (93324, 13, 10056) Shohei (90125, 24, 2309) Note that address is encoded as a 3-tuple where the first element holds zip code (int), the second entry holds an encoded number of street name (int), and the last entry is the street number (int).Can you create a list of tuples when supplied with 5 customer names? Program description Task A: Build a Customer Name/Address dictionary 1. From the Customer Name Address table above, build a dictionary of key/value pairs as specified: The customer name is the key, and the value is the coordinate tuple. Task B: Build a List of Customer Tuples 1. Your program takes in 5 customer names from user input (with exact formatting as indicated below) 2. For each customer, add the coordinates into a list. 3. Print the list out with exact formatting as indicated. Sample print-out When input is: Alice Bob Cindy Wang Chang Standard output exactly matches Enter customer is name: Enter customer 2's name: Enter customer 3's name: Enter customer 4's name: Enter customer 5's name: Routing addresses are:. [(92617, 10, 1200), (92617, 10, 8320), (92630, 15, 2550), (91250, 24, 3205), (91450, 61, 9982)].

ansver
Answers: 3

Other questions on the subject: Computers and Technology

image
Computers and Technology, 22.06.2019 14:20, capo9972
Cengagenowv2 is a comprehensive online learning tool. using cengagenowv2, you may access all of the following except: 2. each time you log in, cengagenowv2 automatically performs a system check and informs you if your computer does not meet the cengagenowv2 system requirements. 3. which tab/page allows you to easily track your assignment scores, number of submissions, time spent, as well as the ability view assign
Answers: 3
image
Computers and Technology, 22.06.2019 19:20, SundaeSunday
Consider the following code snippet: #ifndef cashregister_h#define cashregister_hconst double max_balance = 6000000.0; class cashregister{public: cashregister(); cashregister(double new_balance); void set_balance(double new_balance); double get_balance() const; private: double balance[12]; }; double get_monthly_balance(cashregister bk, int month); #endifwhich of the following is correct? a)the header file is correct as given. b)the definition of max_balance should be removed since header files should not contain constants. c)the definition of cashregister should be removed since header files should not contain class definitions. d)the body of the get_monthly_balance function should be added to the header file.
Answers: 1
image
Computers and Technology, 23.06.2019 17:30, cxttiemsp021
Per the municipal solid waste report, what are the most common sources of waste (trash
Answers: 3
image
Computers and Technology, 24.06.2019 00:00, amy7233
Afashion designer wants to increase awareness about her brand. which network can she use and why she can use the blank to blank her products online. answers for the first blank: internet, extranet, or intranet answers for the second blank: market, design, and export
Answers: 1
You know the right answer?
Suppose you are building a robot (drone) capable of delivering e-commerce packages to customers' hom...

Questions in other subjects:

Konu
Mathematics, 05.02.2021 02:30
Konu
Mathematics, 05.02.2021 02:30
Konu
Chemistry, 05.02.2021 02:30
Konu
Chemistry, 05.02.2021 02:30