Answered step by step
Verified Expert Solution
Link Copied!

Question

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 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

JDBC Database Programming With J2ee

Authors: Art Taylor

1st Edition

0130453234, 978-0130453235

More Books

Students also viewed these Databases questions

Question

Compare the different types of employee separation actions.

Answered: 1 week ago

Question

Assess alternative dispute resolution methods.

Answered: 1 week ago

Question

Distinguish between intrinsic and extrinsic rewards.

Answered: 1 week ago