Question
Read the sample information below and start to think about how to best represent one of the rows as data (i.e. how to represent the
Read the sample information below and start to think about how to best represent one of the rows as data (i.e. how to represent the information for a single year best).
Statistics Canada* has some historical information about the production of potatoes in Canada:
Year | Seeded Area (acres) | Harvested Area (acres) | Average yield (hundredweight per harvested acre) | Production of potatoes, total (hundredweight x 1,000) | Average farm price (dollars per hundredweight) |
---|---|---|---|---|---|
1990 | 300600 | 295800 | 223.9 | 66235 | 6.59 |
1991 | 302500 | 293400 | 212.6 | 62377 | 6.73 |
1992 | 310600 | 305900 | 260.0 | 79528 | 5.28 |
1993 | 315500 | 308600 | 236.9 | 73102 | 8.41 |
Problem 1:
Design a data definition called PotatoesHarvest to represent the information from one row (i.e., one year) shown above.
Be sure to follow all steps of the HtDD recipe using Python 3 (ipykernel).
So far I have this done:
@typecheck def PotatoesHarvest(PotatoesHarvest = Tuple): [int, int, int, float, int, float]
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started