Question: Visual Studio C#: Write an application that provides statistics about temperatures for a given week. Your solution should be a two-class application that has a

Visual Studio C#: Write an application that provides statistics about temperatures for a given week. Your solution should be a two-class application that has a one-dimensional array as a data member. The array stores temperatures for any given week. Provide constructors for instantiating the class and methods to return the highest temperature, lowest temperature, average temperature, and the average temperature excluding the lowest temperature. Provide a method that accepts as an argument a temperature and returns the number of days the temperatures were below that value. Override the ToString( ) method to return a listing of all the temperatures in three-column format and the temperature range for the given week. Write a second class to test your class.

The program will deviate based on the instructions below:

Create a windows form application

7 text boxes for loading of the array of temps. A button will initiate the creation of the object and loading of the array. Create your program to use integers as the temperature values.

Buttons for calculation and display of highest, lowest, average and average minus the lowest from the appropriate method being invoked. A place should be provided on your form for display of the method results.

A text box and button to invoke the method that will return the number of days the temp was below the value. A place to display this information should also be provided.

Comment your code for practicing communicating with clients.

Thank you for any help you can give on this assignment. Arrays are still a little confusing for me

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!