Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

PLEASE INCLUDE INDENTATION OR PIC OF CODE PLEASE Monthtotal.csv datafile The first file you will output will be the Monthtotal.csv file. It should contain 3

image text in transcribed

PLEASE INCLUDE INDENTATION OR PIC OF CODE PLEASE

Monthtotal.csv datafile The first file you will output will be the Monthtotal.csv file. It should contain 3 columns. First being the year, then the month and then the total sunspots observed for that month. Example output 1818,01,279 1818,02,314 MonthSmoothed.csv datafile The smoothing algorithm roughly works by taking six months of data on either side of a month and averaging. The algorithm has a strange twist in that the first and last months in the smoothing average only supply half their month's value. If the month and year is 7 a variable we will used to represent the month we are smoothing, then then the value for the month will be 1213/2)/12 Example output 1818,7,568.2916666666666 1818,8,568.625 1818,9,552.9166666666666 1818,10, 530.8333333333334 Specification and hints Break the program down in parts and solve the parts you know you can solve One of the hardest parts was calculating the averages. Particularly counting backwards through years month. There are several different ways to solve this one . . . When calculating the smoothed data, remember not to use already smoothed data. ( keep the monthly totals in one data structure and the create smoothed data in another.) Monthtotal.csv datafile The first file you will output will be the Monthtotal.csv file. It should contain 3 columns. First being the year, then the month and then the total sunspots observed for that month. Example output 1818,01,279 1818,02,314 MonthSmoothed.csv datafile The smoothing algorithm roughly works by taking six months of data on either side of a month and averaging. The algorithm has a strange twist in that the first and last months in the smoothing average only supply half their month's value. If the month and year is 7 a variable we will used to represent the month we are smoothing, then then the value for the month will be 1213/2)/12 Example output 1818,7,568.2916666666666 1818,8,568.625 1818,9,552.9166666666666 1818,10, 530.8333333333334 Specification and hints Break the program down in parts and solve the parts you know you can solve One of the hardest parts was calculating the averages. Particularly counting backwards through years month. There are several different ways to solve this one . . . When calculating the smoothed data, remember not to use already smoothed data. ( keep the monthly totals in one data structure and the create smoothed data in another.)

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

More Books

Students also viewed these Databases questions