subject

Drone delivery 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) (91750, 92, 6420) Lee Steve (91250, 89, 7102) Turing (96250, 57,8311) Fourier (90318, 83,9158) (94832, 29,6204) McCulloch 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 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 2: 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 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: 1

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 22:10
Asequential circuit contains a register of four flip-flops. initially a binary number n (0000 ≤ n ≤ 1100) is stored in the flip-flops. after a single clock pulse is applied to the circuit, the register should contain n + 0011. in other words, the function of the sequential circuit is to add 3 to the contents of a 4-bit register. design and implement this circuit using j-k flip-flops.
Answers: 1
question
Computers and Technology, 23.06.2019 19:40
Use a physical stopwatch to record the length of time it takes to run the program. calculate the difference obtained by calls to the method system.currenttimemillis() just before the start of the algorithm and just after the end of the algorithm. calculate the difference obtained by calls to the method system.currenttimemillis() at the start of the program and at the end of the program so that the elapsed time includes the display of the result. use the value returned by the method system.currenttimemillis() just after the end of the algorithm as the elapsed time.
Answers: 3
question
Computers and Technology, 24.06.2019 00:30
The best definition of an idiom is a. a word or phrase that describes a noun b. a word or phrase describing a verb c. a phrase containing figurative language in which the word expresses a different idea from its exact meaning d. a phrase that compares two unlike objects or ideas
Answers: 2
question
Computers and Technology, 24.06.2019 08:30
Intellectual property rights are exclusive rights that protect both the created and the creation. ipr offers exclusively what benefits to the person or people covered by it
Answers: 3
You know the right answer?
Drone delivery Suppose you are building a robot (drone) capable of delivering e-commerce packages to...
Questions
question
History, 01.12.2021 20:20
question
Geography, 01.12.2021 20:20
question
Mathematics, 01.12.2021 20:20
question
Mathematics, 01.12.2021 20:20
question
Mathematics, 01.12.2021 20:20
Questions on the website: 13722367