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% (13 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.
-
Gale Company has the following inventory and purchases during the fiscal year ended December 31, 2023. Gale Company employs a perpetual inventory system. Required 1. Calculate the dollar value of...
-
Suppose that the adjustable-rate auto loan of Example 16.5 is modified by the provision of CAP that guarantees the borrower that the interest rate to be applied will never exceed \(11 \%\). What is...
-
Preston Media Corporation had the following income statement and balance sheet for 2018: Requirements 1. Compute the acquisition of plant assets for Preston Media Corporation during 2018. The...
-
Farm Supply plans to make 10,000 tractors at its plant. Fixed costs are $1,000,000 and variable costs are $500 per tractor. What is the average cost per tractor?
-
The steady-state distribution of temperature on a heated plate can be modeled by the Laplace equation, 0 = ? 2 T/?x 2 + ? 2 T/?y 2 If the plate is represented by a series of nodes (Figure), centered...
-
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...
-
Graph each parabola. Give the vertex, axis of symmetry, domain, and range. x = 4y + 16y + 11
-
131. Compute the direct materials price and quantity variances for Taylor Company. 132. Compute the direct labor rate and time variances for Taylor Company. 133. Standard and actual costs for direct...
-
The coordinates of the points below represent the vertices of a rectangle. P: (2, 2); Q: (7,2); R: (7, 5); S: (2,5) What is the perimeter, in units, of rectangle PQRS?
-
The foreman of a bottling plant has observed that the amount of soda in each 32-ounce bottle is actually a normally distributed random variable, with a mean of 32.2 ounces and a standard deviation of...
-
Discuss the essence of credit in banking business.
-
1. Currently, Jim Morris makes $100,000. Next year his income will be $120,000. Jim is a big spender and he wants to consume $150,000 this year. The equilibrium interest rate is 10 percent. What will...
-
The following table shows the annual returns (in percent) for the Vanguard Energy Fund from 2005 through 2009. Year....................Energy 2005.....................44.60...
-
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?
-
Lake Incorporated and the River, Incorporated reported net incomes of $205,000 and $164,000, respectively, for the most recent fiscal year. Both companies had 41,000 shares of common stock issued and...
-
What effect Eventually, BREXIT will make on EU? How it will benefit UK? What will be the possible outcome?
-
Merchant Company purchased property for a building site. The costs associated with the property were: Purchase price Real estate commissions Legal fees Expenses of clearing the land Expenses to...
Study smarter with the SolutionInn App