I am completely new to the C# programming language and wanted to ask for guidance on how to start and eventually complete this task. We must make a weather report using a 12X2 array where the user inputs data for each Month for a certain user-given year. The user input prompt would be like: Enter the high & low temp for Jan.: 60 43
So this would ask for each high & low temp for each month so I believe the delimiter would be a space correct? How would this be declared in C#?
The rest below is what methods I will have to create in order to make the weather report. Although I don't need someone to write all of the methods, I would like to have someone help me write at least some of them and I can adjust them accordingly to get like the low temperatures and find the highest temperature, etc.
Make a constant array that holds the names of the twelve months.
I have done this as: string[] month = { "January", "February", "March", "April", "May",
"June", "July", "August", "September", "October", "November", "December"};
Make a 2-dimensional array of size 12x2 to hold the temperatures for each month of the year.
Is this how you make a 12x2 array? int[,] months = int[12,3];
Make a method (function) that will obtain inputs from the user and place them in the array.
Please help with this function and how to delimiter the space so I can get the high and low temps
Make a method that will output the 12 lines of detail of the report. This method outputs this part of the report.
January6622
February6033
March6749
April7253
May7759
June8060
July9561
August9963
September8564
October7560
November6651
December5144
Make a method that will find the index of the month with the highest high-temperature. Notice that the method does not find the highest of the high temperatures; it finds the index of that highest of high temperatures.
Make a method that will find the index of the month with the lowest high temperature.
I'm sure this method will be like the one below so I only need help on how to do just one of these
Make a method that will find the index of the month with the highest low temperature.
Make a method that will find the index of the month with the lowest low temperature.
Make a method that will compute the average of the high temperatures for one year.
This should be like the one below so I only need help writing this method to figure out the one below
Make a method that will compute the average of the low temperatures for one year.
Make a method that will output the one line in the report showing the two averages.
Make a method that will output the four lines of summary information at the bottom of the report.
If other methods are useful in solving this problem then you should make additional methods. Make more methods whenever they are needed.
Thank you ahead of time and I hope someone can help and give me guidance on how to make this report. I feel like I just got thrown into a fire with only a lighter and I have no idea where to start.
So this would ask for each high & low temp for each month so I believe the delimiter would be a space correct? How would this be declared in C#?
The rest below is what methods I will have to create in order to make the weather report. Although I don't need someone to write all of the methods, I would like to have someone help me write at least some of them and I can adjust them accordingly to get like the low temperatures and find the highest temperature, etc.
Make a constant array that holds the names of the twelve months.
I have done this as: string[] month = { "January", "February", "March", "April", "May",
"June", "July", "August", "September", "October", "November", "December"};
Make a 2-dimensional array of size 12x2 to hold the temperatures for each month of the year.
Is this how you make a 12x2 array? int[,] months = int[12,3];
Make a method (function) that will obtain inputs from the user and place them in the array.
Please help with this function and how to delimiter the space so I can get the high and low temps
Make a method that will output the 12 lines of detail of the report. This method outputs this part of the report.
January6622
February6033
March6749
April7253
May7759
June8060
July9561
August9963
September8564
October7560
November6651
December5144
Make a method that will find the index of the month with the highest high-temperature. Notice that the method does not find the highest of the high temperatures; it finds the index of that highest of high temperatures.
Make a method that will find the index of the month with the lowest high temperature.
I'm sure this method will be like the one below so I only need help on how to do just one of these
Make a method that will find the index of the month with the highest low temperature.
Make a method that will find the index of the month with the lowest low temperature.
Make a method that will compute the average of the high temperatures for one year.
This should be like the one below so I only need help writing this method to figure out the one below
Make a method that will compute the average of the low temperatures for one year.
Make a method that will output the one line in the report showing the two averages.
Make a method that will output the four lines of summary information at the bottom of the report.
If other methods are useful in solving this problem then you should make additional methods. Make more methods whenever they are needed.
Thank you ahead of time and I hope someone can help and give me guidance on how to make this report. I feel like I just got thrown into a fire with only a lighter and I have no idea where to start.