Write a function that reads delimited strings from a file with names and phone numbers and uses
Question:
Write a function that reads delimited strings from a file with names and phone numbers and uses a database to store the names as the keys and the phone numbers as the values. Take as input the filename and the name of the person who’s phone number you are looking for. How would you look up the phone number to find the name it belongs to?
Fantastic news! We've Found the answer you've been seeking!
Step by Step Answer:
Answer rating: 53% (15 reviews)
def findPhoneNumberfilename personName Copy info to the database database shelveopengetMediaPathphon...View the full answer
Answered By
Charles mwangi
I am a postgraduate in chemistry (Industrial chemistry with management),with writing experience for more than 3 years.I have specialized in content development,questions,term papers and assignments.Majoring in chemistry,information science,management,human resource management,accounting,business law,marketing,psychology,excl expert ,education and engineering.I have tutored in other different platforms where my DNA includes three key aspects i.e,quality papers,timely and free from any academic malpractices.I frequently engage clients in each and every step to ensure quality service delivery.This is to ensure sustainability of the tutoring aspects as well as the credibility of the platform.
4.30+
2+ Reviews
10+ Question Solved
Related Book For
Introduction To Computing And Programming In Python A Multimedia Approach
ISBN: 9780134025544
4th Edition
Authors: Mark J. Guzdial, Barbara Ericson
Question Posted:
Students also viewed these Computer science questions
-
(mousa) please I want the code in a copy and paste format and solve it by using #incloud thank you Write a C++ program that performs the following: (40 points) Prints on screen a selection menu as...
-
In this project, we will write a program that controls a quiz show, much like the many popular TV shows. The program will read in a group of questions and their multiple choice answers, storing them...
-
The goal of this assignment is to spell check a single word. You will use a dictionary le in order to decide if a word is correct. I provide two dictionary les small-dictionary.txt and dictionary.txt...
-
9. Write a program to solve function given below, with the x and y value proposed by the user. And, based on the result, show "imaginary result" response for the case of the result of the function is...
-
Using the Maxwell relations, determine a relation for (s/P)T for a gas whose equation of state is P(v - b) = RT.
-
In recording adjusting entries, Reagan Financial Advisors failed to record the adjusting entries for the following situations: a. Office supplies on hand $100. b. Accrued revenues, $5,000. c. Accrued...
-
Describe the emotional intelligence competency called social skills. AppendixLO1
-
BONDS ISSUED AT FACE VALUE WITH SINKING FUND Creswell Entertainment issued the following bonds: Date of issue and sale: ........April 1, 20-1 Principal amount: ..........$600,000 Sale price of bonds:...
-
How do we indentify two envelope portfolios are efficient or inefficient by using data from Sample Variance - Covariance Matrix?
-
PART B Betsy has come back to you with some changes to be made to the draft budget. These changes will have come via email or feedback on your hard copy draft. Betsy also thinks that you have over...
-
Create a relational database that has a person table, a picture table, and a personpicture table. In the person table, store an ID, the person name, and the persons age. In the picture table, store a...
-
Do someWeb searches to come up with answers to these questions about SQL: What is SQL? How do you create a table in SQL? How do you insert a row in a table in SQL? How do you get data from a...
-
You are planning to save for retirement over the next 30 years. To do this, you will invest $700 a month in a stock account and $300 a month in a bond account. The return of the stock account is...
-
Part 1 - Financial Statement Analysis Income Statement Kirks Family Restaurant December 31, 2018 Sales 480,000 Interest revenue 15,000 Total Revenue 495,000 Cost of goods sold 200,000 Gross Margin...
-
Find the most general value of satisfying tan 0 = -3.
-
(i) Undercasting of the debit side of Bank column. 70 (ii) Cheques issued but not presented for payment till 01-01-2011. 1,450 (1,520) 2,179 Bank Balance as per Pass Book as on 1-1-2011. Different...
-
Determine the stiffness matrix K for the truss. Take A = 0.0015 m^2 and E = 200 GPa for each member. Please show the step-by-step solution. 5 410 9 3 5 7 7 8 A4 Tesol242 3 2 4 4 5 6 2 4 m 4 m 20 kN...
-
Probability Mr Pandazis Practice Questions for Test #1 Math 241 1. Define a sample space S for the following experiment. Toss a coin three times and record the outcome for each toss. 2. A card is...
-
Consider the force F (vector) shown in the drawing. This force acts on an object that can move along the positive or negative x axis, or along the positive or negative y axis. The work done by this...
-
DEPARTMENT DATA EMPLOYEE DATA EmployeeNumber FirstName Mary Rosalie Richard George Alan 3 4 5 7 8 9 855555ES 12 13 14 15 16 17 Create the database tables in SQL or ACCESS: 18 19 20 PROJECT DATA Ken...
-
Compare and contrast the properties of a centralized and a distributed routing algorithm. Give an example of a routing protocol that takes a centralized and a decentralized approach.
-
What is meant by a control plane that is based on logically centralized control? In such cases, are the data plane and the control plane implemented within the same device or in separate devices?...
-
What is ment by a control plane that is based on per-router control? In such cases, when we say the network control and data planes are implemented monolithically, what do we mean?
-
You would like to have a balance of $600,000 at the end of 15 years from monthly savings of $900. If your returns are compounded monthly, what is the APR you need to meet your goal?
-
Explain the importance of covariance and correlation between assets and understanding the expected value, variance, and standard deviation of a random variable and of returns on a portfolio.
-
On August 1 , 2 0 2 3 , Mark Diamond began a tour company in the Northwest Territories called Millennium Arctic Tours. The following occurred during the first month of operations: Aug. 1 Purchased...
Study smarter with the SolutionInn App