Answered step by step
Verified Expert Solution
Link Copied!

Question

00
1 Approved Answer

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

Step: 1

blur-text-image

Get Instant Access with AI-Powered 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

Students also viewed these Databases questions