Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Another feature of the Al computer vision device is the ability to count petals on individual flowers. This data is then exported as a

 

 

Another feature of the Al computer vision device is the ability to count petals on individual flowers. This data is then exported as a CSV file named 'PetalNumberData.csv! Within their code, anne calls the flowerNamingProgram() that contains for loops and the following information to help name the flowers: Petal Number 3 4 Flower Name Trillium Grandiflorum Oenothera Villosa 5 Catharanthus Roseus 10 6 Hypoxis Hirsuta The function also uses an array of petal numbers taken from the CSV file as an argument. anne decides to only print index 5, 145, 319, and 431 from stringArray as a test to see if the program is working Expected output: Hypoxis Hirsuta Oenothera Villosa Trillium Grandiflorum Catharanthus Roseus Hint: Export 'Petal Number' into an array from the CSV file. You will have to generate an array of strings to assign flower names to, using the statement stringArray = random.choices(string digits, k=?) where'?' is the length of the petal number array. You will also have to import the string and random packages, but they do not require installation. Question 4 As great as the naming program is, Anne wonders how many flowers of each petal number was seen along the track. They decide to plot a histogram that outlines the distribution of petal numbers with the following inclusions: Title X-axis label Y-axis label X-axis limits Y-axis limits Bin amount Since they have already had so much practice with graphs, Anne has developed a knack for knowing what values to use for these parameters to produce an intuitive graph.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Understanding Business Ethics

Authors: Peter A. Stanwick, Sarah D. Stanwick

3rd Edition

1506303234, 9781506303239

More Books

Students also viewed these Operating System questions

Question

Why do Ponzi schemes continue to work time after time?

Answered: 1 week ago