Create a program that reads in flora.csv and creates a hash table. The main program should...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
Create a program that reads in flora.csv and creates a hash table. The main program should be in a loop that allows the following options: (1) Search for a flora - Let the user enter the flora name and it outputs whether or not the flora was found. If found, output the family name. (2) Add a new flora - Let the user enter the name and family of a new flora to be added. (3) Delete a flora - Let the user enter the flora name. If found, delete it. If not found, let the user know. (4) Exit the program Below is an example run: 30703 flora read into hashtable 1 = Search for a flora 2 = Add a new flora 3 Delete a flora 4 = Exit Your choice: 1 Enter flora name: pear This flora was found. Family = Rosaceae 1 = Search for a flora 2 = Add a new flora 3= Delete a flora 4 = Exit Your choice: 2 Enter flora name: man-eating giant tulip Enter family name: Carnivoceae New flora added! Create a program that reads in flora.csv and creates a hash table. The main program should be in a loop that allows the following options: (1) Search for a flora - Let the user enter the flora name and it outputs whether or not the flora was found. If found, output the family name. (2) Add a new flora - Let the user enter the name and family of a new flora to be added. (3) Delete a flora - Let the user enter the flora name. If found, delete it. If not found, let the user know. (4) Exit the program Below is an example run: 30703 flora read into hashtable 1 = Search for a flora 2 = Add a new flora 3 Delete a flora 4 = Exit Your choice: 1 Enter flora name: pear This flora was found. Family = Rosaceae 1 = Search for a flora 2 = Add a new flora 3= Delete a flora 4 = Exit Your choice: 2 Enter flora name: man-eating giant tulip Enter family name: Carnivoceae New flora added!
Expert Answer:
Answer rating: 100% (QA)
To achieve this you can create a Python program that reads the data from the floracsv file creates a ... View the full answer
Related Book For
Posted Date:
Students also viewed these programming questions
-
In a Hopfield neural network configured as an associative memory, with all of its weights trained and fixed, what three possible behaviours may occur over time in configuration space as the net...
-
In this question you will be asked to reflect on a project you have been involved in or observed, in which a design evolved, or could have evolved, through applying a theory of user behaviour. You...
-
In Exercises confirm that the Integral Test can be applied to the series. Then use the Integral Test to determine the convergence or divergence of the series. n=1 2 3n + 5
-
Prepare a brief analysis of the coffee industry using the information provided on the industry trade association websites. Of the list of macro-economic factors found in table 3.1, which do you think...
-
Cost-plus and market-based pricing California Temps, a large labor contractor, supplies contract labor to building-construction companies. For 2009, California Temps has budgeted to supply 80,000...
-
Derive an expression for the equivalent spring constant when two similar springs are connected: (a) in parallel, (b) in series.
-
Pas and Sal Corporations' balance sheets at December 31, 2010, are summarized as follows (in thousands): Pas acquired 80 percent of the voting stock of Sal on January 2, 2011, at a cost of $320,000....
-
explain what forecasting is and its role in budgeting. Is forecasting a vital component of the budgeting process
-
assume the underlying asset is a stock worth $55 today. Also assume the following spot prices will be realized in the future S 1 =$62 and S 2 =47. Also assume that C(50,1)=$7 and P(50,2)=$3. r=15%....
-
rn (4 marks) The atmospheric pressure at an altitude of z kilometers above sea- level is approximately e#/8 millibars. A rocket is rising at a rate of 8 kilometers per second vertically. At what rate...
-
Chris Smith - Owner and Senior Accountant B.Ec. (Accounting major), M.Tax (UNSW), FIPA Director Chris is a registered tax agent and an accountant who has been in public practice as an accountant...
-
5) A particle of mass 0.50 kg moves along the x-axis with a potential energy whose dependence on x is shown below. What is the force on the particle from x=6.0 to x=10m A) 6N C) 4N B) -6N D) 8N...
-
Provide The Payoff Function (On The Table) For Each Range Strike Prices In Which The Stock Price Could Land At Expiration. There Are Three Ranges In Which The Stock Price Could At Land At Expiration,...
-
SOLVE THE FOLLOWING PROBLEMS AND SHOW YOUR COMPLETE SOLUTIONS. EXPLAIN YOUR ANSWER FOR BETTER UNDERSTANDING. 1. Find the interest and amount on PhP 10,500 at 8% simple interest for 10 months. 2. Find...
-
Avril Synchronistics will pay a dividend of $1.50 per share this year. It is expected that this dividend will grow by 7% each year in the future. What will be the current value of a single share of...
-
The City of Millbrook Chillbrook city's 2020 capital budget included $ 50 million for 17 springs project. Financing for the project will come from a 10% $ 25 million bond issue and a $ 25 million...
-
Ask students to outline the reasons why the various elements of culture (social structures and control systems, language and aesthetics, religion and other belief systems, educational systems, etc.)...
-
Suppose that you have declared a ButtonGroup named twoOptions and added two JCheckBoxes named box1 and box2 to it. Which box is selected after the following statements execute?...
-
Modify the CharacterInfo class shown in Figure 7-3 so that the tested character is retrieved from user input. Save the file as InputCharacterInfo.java.
-
The newoutputstream() method ____________. A. Is defined in the files class B. Creates a file if it does not already exist C. Opens a file for writing D. All of the above are true.
-
The following costs and benefits have been listed for a government-built, owned, and operated dam and reservoir that will be used for both flood control and electrical power generation. The planning...
-
Consider 1 year of a utility company's financial results. The company pays income tax of \(\$ 9,000,000\), where the tax rate is 40 percent. Debt is \(\$ 80,000,000\) and the interest rate on debt is...
-
Consider 1 year of a utility company's financial results. The company pays income tax of \(\$ 6,000,000\), where the tax rate is 40 percent. Debt is \(\$ 75,000,000\) and the interest rate on debt is...
Study smarter with the SolutionInn App