Duplicate Question
The question on this page has been marked as a duplicate question.
Original Question
Write a two class application that has a one-dimensional array as a data member. The array stores temperatures for any given we...Asked by bo
how do I
Write 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 the temperature range for the given week. Write a second class to test your class
Write 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 the temperature range for the given week. Write a second class to test your class
Answers
Answered by
Leo
Looks like the first class performs all of the functions, and the second class calls of the functions to make sure they are performing properly.
Do you have any specific questions about this?
Do you have any specific questions about this?
There are no AI answers yet. The ability to request AI answers is coming soon!
Submit Your Answer
We prioritize human answers over AI answers.
If you are human, and you can answer this question, please submit your answer.