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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started