subject

Suppose you are building a robot (drone) capable of delivering e-commerce packages to customers' homes. As a developer, you are instructed to create a Python program to translate names on orders into locations (coordinates, represented as tuples) so the delivering team can program everything into the drones without any hassles of looking up an address book.
Suppose you are provided with following customer names and address pairs:

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)
Turing (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 1: Build a Customer Name/Address dictionary
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 2: Build a List of Customer Tuples
Your program takes in 5 customer names from user input (with exact formatting as indicated below)
For each customer, add the coordinates into a list.
Print the list out with exact formatting as indicated below:
Sample print-out:
When input is:
Alice
Bob
Cindy
Wang
Chang
Standard output exactly matches

Enter customer 1's 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: 2

Another question on Computers and Technology

question
Computers and Technology, 23.06.2019 03:00
Jason, samantha, ravi, sheila, and ankit are preparing for an upcoming marathon. each day of the week, they run a certain number of miles and write them into a notebook. at the end of the week, they would like to know the number of miles run each day, the total miles for the week, and average miles run each day. write a program to them analyze their data. your program must contain parallel arrays: an array to store the names of the runners and a two-dimensional array of five rows and seven columns to store the number of miles run by each runner each day. furthermore, your program must contain at least the following functions: a function to read and store the runners’ names and the numbers of miles run each day; a function to find the total miles run by each runner and the average number of miles run each day; and a function to output the results. (you may assume that the input data is stored in a file and each line of data is in the following form: runnername milesday1 milesday2 milesday3 milesday4 milesday5 milesday6 milesday7.)
Answers: 3
question
Computers and Technology, 23.06.2019 07:30
What is the penalty for violating section 1201 of title 17 chapter 21 of the us code
Answers: 1
question
Computers and Technology, 23.06.2019 18:50
What is transmission control protocol/internet protocol (tcp/ip)? software that prevents direct communication between a sending and receiving computer and is used to monitor packets for security reasons a standard that specifies the format of data as well as the rules to be followed during transmission a simple network protocol that allows the transfer of files between two computers on the internet a standard internet protocol that provides the technical foundation for the public internet as well as for large numbers of private networks
Answers: 2
question
Computers and Technology, 24.06.2019 16:00
Your is an example of personal information that you should keep private.
Answers: 1
You know the right answer?
Suppose you are building a robot (drone) capable of delivering e-commerce packages to customers' hom...
Questions
question
Mathematics, 08.01.2020 23:31
question
Chemistry, 08.01.2020 23:31
Questions on the website: 13722361