Question: In this exercise, you will develop a form with 3 input boxes that allows the user to enter 3 decimal values. Also, have a button

In this exercise, you will develop a form with 3 input boxes that allows the user to enter 3 decimal values.

Also, have a button on the form called Calc Statistics.

When the user presses the Calc Statistics button, your program should make two method calls. One method will return the maximum value and the minimum value of the three input values, and one method will return the average of the three values.

You are to send the 3 input values to both of the methods. Think about how to get both the max and the min back from the CalcHighLow method (will require ref type parameters). For the CalcAverage method, you may return the answer via the method name (think return.)

Place a label on the form that will appear with the correct answer in this format:

The maximum is xxx.x and the minimum is xxx.x and the average is xxx.x.

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!