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

Another question on Computers and Technology

question
Computers and Technology, 21.06.2019 13:30
Question 1(multiple choice worth 5 points) (06.04 mc) how are the respiratory and circulatory systems similar? both systems provide glucose and other substances to cells. both systems regulate blood flow throughout the body. both systems remove carbon dioxide from the body. both systems send messages to the nervous system for breathing. question 2(multiple choice worth 5 points) (06.04 lc) the respiratory system controls and the circulatory systems controls antibodies; digestion breathing; blood flow muscles; bones nerves; senses question 3(multiple choice worth 5 points) (06.04 hc) read the following summary, which describes a body process. then, answer the question. blood enters the right side of the heart and travels to the lungs. there, the lungs eliminate carbon dioxide and exchange it for more oxygen. the oxygen-rich blood enters the left side of the heart. then, arteries carry blood away from the heart. what process is being described? circulation excretion immune response respiration question 4(multiple choice worth 5 points) (06.04 lc) the system is responsible for moving blood cells throughout the body. circulatory endocrine immune respiratory question 5(multiple choice worth 5 points) (06.04 mc) which of the following functions as part of the excretory and respiratory systems? blood heart intestines lungs
Answers: 1
question
Computers and Technology, 22.06.2019 09:40
It is vital to research each of the services you plan to disable before implementing any change, especially on critical machines such as the: a. servers in the test environment. b. domain controller and other infrastructure servers. c. desktops that have previously been attacked. d. desktops used by upper-level management.
Answers: 2
question
Computers and Technology, 23.06.2019 19:00
Now you’re on your own. include a short summary of this section with plots in your lab report. write a matlab script file to do steps (a) through (d) below. include a listing of the script file with your report. 1 the soundsc(xx,fs) function requires two arguments: the first one (xx) contains the vector of data to be played, the second argument (fs) is the sampling rate for playing the samples. in addition, soundsc(xx,fs) does automatic scaling and then calls sound(xx,fs) to actually play the signal. mcclellan, schafer, and yoder, dsp first, 2e, isbn 0-13-065562-7. prentice hall, upper saddle river, nj 07458. c 2015 pearson education, inc. 4 mcclellan, schafer and yoder, signal processing first. prentice hall, upper saddle river, new jersey, 2003. c 2003 prentice hall. (a) generate a time vector (tt) to cover a range of t that will exhibit approximately two cycles of the 4000 hz sinusoids defined in the next part, part (b). use a definition for tt similar to part 2.2(d). if we use t to denote the period of the sinusoids, define the starting time of the vector tt to be equal to t , and the ending time as ct . then the two cycles will include t d 0. finally, make sure that you have at least 25 samples per period of the sinusoidal wave. in other words, when you use the colon operator to define the time vector, make the increment small enough to generate 25 samples per period. (b) generate two 4000 hz sinusoids with arbitrary amplitude and time-shift. x1.t / d a1 cos.2
Answers: 1
question
Computers and Technology, 23.06.2019 23:00
How do you know if the website is secure if you make a purchase
Answers: 2
You know the right answer?
Suppose you are building a robot (drone) capable of delivering e-commerce packages to customers' hom...
Questions
question
Mathematics, 31.12.2019 06:31
question
Mathematics, 31.12.2019 06:31
question
Mathematics, 31.12.2019 06:31
Questions on the website: 13722362