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: 50% (14 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.
-
A share has an expected return of 12% per annum (with continuous compounding) and a volatility of 20% per annum. Changes in the share price satisfy dS = S dt + S dX. Simulate the movement of the...
-
Carburettor is used for (a) S.I. engine (b) C.I. engine (c) Gas engine (d) none of the above
-
You buy a share of The Ludwig Corporation stock for $21.40. You expect it to pay dividends of $1.07 $1.1449, and $1.2250 in Years 1, 2, and 3, respectively, and you expect to sell it at a price of...
-
Refer to the Christopher Doner case at: https://www.policefoundation.org/wp-content/uploads/2015/07/Police-Under-Attack.pdf to answer each of the following questions. 1. Discuss at least three things...
-
Consider a function, known as the correlation function, defined by C(t) = < x (t) x (0)>, where x(t) is the position operator in the Heisenberg picture. Evaluate the correlation function explicitly...
-
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...
-
1. Strong monotonicity) weak monotonicity. 2. Strong monotonicity) local non satiation. 3. Local non satiation ) non satiation. A useful implication of strong monotonicity or local non satiation in...
-
John owns stock in an S corporation. Johns share of the corporations loss for the year is $5,000. His adjusted basis in the corporation stock is $1,000. In addition, John has a loan outstanding to...
-
Edna was a one-third partner in Old Grad Partners until December 31, when her interest in the partnership was liquidated. Prior to the liquidation, her basis in her partnership interest was $45,000....
-
An S corporation has an accumulated adjustments account of $30,000 at the beginning of the year and accumulated earnings and profits of $10,000. The corporation earns $20,000 for the year. Melvin, a...
-
A shareholder purchased 20 percent of the stock of an S corporation three-quarters of the way through the year for $10,000. The S corporation incurred a net operating loss of $320,000. What is the...
-
Which of the following will not prevent a corporation from qualifying for the special tax rules under Subchapter S? a. The corporation has more than 100 shareholders. b. A nonresident alien owns...
-
Return on investment and residual income the following information pertains to VI Divison, which has $1,400.000 in investments. Division sales revenue.........................$900,000 Less division...
-
The age-old saying for investing is "buy low and sell high," but this is easier said than done. Investors who panic about falling prices sell their investments, which in turn lowers the price and...
-
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?
-
Assume that a firm has weighted average cost of capital of 3.6% with a corporate tax rate of 21%. The pre-tax cost of debt is 3.1%. In case the firm would have no debt, the cost of equity for the...
-
Consider the stock of Aya Company, which will pay an annual dividend of $3 one year from today. The dividend will grow at a constant rate of 3%, forever.The market requires a 12% return on the...
-
Analyze the video presented on the link below. Also, please discuss or explain the video and relate it to personal finance. https://www.youtube.com/watch?v=nFY0HBkUm8o
Study smarter with the SolutionInn App