Read in the tree inventory file, created in Lab 3W, and show a count of the number of times a specific species of tree occurs in the file. Once you unscramble the program, display the number of oak trees. Unscramble the code below so the output is "there are 3 oak trees": from BrowserFile import open import csv for y in r: k = 0 with open("treeinventory.csv", "r", newline = ") as f: fort in y: tree input("enter tree type to get a count") k = k + 1 ift== tree: print("there are",k, tree,'trees') r = csv.reader (f)

C++ Programming: From Problem Analysis to Program Design
8th Edition
ISBN:9781337102087
Author:D. S. Malik
Publisher:D. S. Malik
Chapter18: Stacks And Queues
Section: Chapter Questions
Problem 16PE: The implementation of a queue in an array, as given in this chapter, uses the variable count to...
icon
Related questions
Question

Alert dont submit AI generated answer.

Read in the tree inventory file, created in Lab 3W, and show a count of the
number of times a specific species of tree occurs in the file. Once you
unscramble the program, display the number of oak trees. Unscramble the
code below so the output is "there are 3 oak trees": from BrowserFile import
open import csv for y in r: k = 0 with open("treeinventory.csv", "r", newline
= ") as f: fort in y: tree = input("enter tree type to get a count") k = k + 1
if t = = tree: print("there are",k, tree,'trees') r = csv. reader (f)
Transcribed Image Text:Read in the tree inventory file, created in Lab 3W, and show a count of the number of times a specific species of tree occurs in the file. Once you unscramble the program, display the number of oak trees. Unscramble the code below so the output is "there are 3 oak trees": from BrowserFile import open import csv for y in r: k = 0 with open("treeinventory.csv", "r", newline = ") as f: fort in y: tree = input("enter tree type to get a count") k = k + 1 if t = = tree: print("there are",k, tree,'trees') r = csv. reader (f)
Expert Solution
steps

Step by step

Solved in 4 steps with 1 images

Blurred answer
Knowledge Booster
Array
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
C++ Programming: From Problem Analysis to Program…
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning
EBK JAVA PROGRAMMING
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT