How to make this class? I'm struggling..

I've been asked to make this class by this requirement..

"Define a class called MonthData to represent the measurements collected in a single month. Use a file named data.hpp for the definition. Provide suitable fields in your class for each measurement. Provide suitable getters for each field but do not provide setters."

In the data.hpp file is this data..

Sheffield
Location 4339E 3872N, 131 metres amsl
yyyy mm tmax tmin af rain sun
degC degC days mm hours
1930 1 8.1 2.4 6 120.5 54.2
1930 2 4.4 0.6 12 22.2 29.1
1930 3 8.1 2.1 9 76.2 88.2
1930 4 11.0 4.8 0 64.5 75.1
1930 5 14.1 6.6 0 38.3 119.9
1930 6 19.7 10.5 0 27.1 187.7
1930 7 18.6 11.4 0 149.4 162.1
1930 8 19.9 11.9 0 62.3 179.2
1930 9 16.7 10.5 0 127.9 111.5
1930 10 13.4 7.6 0 79.1 123.7
1930 11 9.3 3.5 4 83.4 67.9
1930 12 6.5 1.8 7 68.3 16.5
1931 1 6.1 1.2 7 61.0 48.0
1931 2 5.8 1.6 5 83.4 44.8
1931 3 7.3 -0.3 17 5.4 114.1
1931 4 10.8 4.7 1 83.8 101.2

Any ideas on how I would do this? Thanks!
Any ideas on how I would do this?

1.
Define a class called MonthData

2.
Provide suitable fields in your class for each measurement.

The fields are:
yyyy mm tmax tmin af rain sun

3.
Provide suitable getters for each field but do not provide setters.
Topic archived. No new replies allowed.