Answered step by step
Verified Expert Solution
Question
1 Approved Answer
c++ The horizontal size of the field The vertical size of the field Yearly information block Starting with year information and number of plantings in
c++
The horizontal size of the field The vertical size of the field Yearly information block Starting with year information and number of plantings in that year Then the top left and bottom right coordinates of each planting in that year Output: The tiredness map of the whole field as a 2D int may NOTE: The coordinates of the top left corner part of the map is 0,0 and the maximum size of the field is 40, 40 NOTE: No plantings given for the same year can overlap with one another. NOTE: You MUST use telative address for the input file and put the file in the folder where your executable is. HINT: You should start with a 2D array where the value of EACH cell is 0. HINT: While calculating the map for the next year, using a temporary second 2D array is STRONGLY SUGGESTED (0.8., tiredness Map, new TirednessMap) Sample Input/Outputs: Input File Contents (filename should be the Output same as in the input) fieldinfo.txt 55 00011 2016 2 02210 0022 02210 1344 02220 2017 2 00000 1133 3040 fieldInfo2.txt 10 10 0000000000 20143 0000000044 2227 0020000044 5487 0000000044 8193 0000022220 20153 0000022220 2227 0000000000 5487 0000000000 8193 0000000001 20164 0000000001 0022 3869 5485 8193 2017 2 8193 9899 fieldinfo.txt 55 00000 20141 00000 0022 00000 2015 1 00000 0022 00000 2016 0 20170 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