DO THIS IN C#. Design and implement a program (name it MinMaxAvg) that defines three methods...

70.2K

Verified Solution

Question

Programming

DO THIS IN C#. Design and implement a program (name itMinMaxAvg) that defines three methods as follows: Method max (intx, int y, int z) returns the maximum value of three integer values.Method min (int X, int y, int z) returns the minimum value of threeinteger values. Method average (int x, int y, int z) returns theaverage of three integer values. In the main method, test all threemethods with different input value read from the user. Documentyour code and properly label the input prompts and the outputs asshown below. Sample run 1: You entered: 20, 8, 12 Max value: 20 Minvalue: 8 Average value: 13 Sample run 2: You entered: 1, 2, 3 Maxvalue: 3 Min value: 1 Average value: 2 Sample run 3: You entered:10, 5, 25 Max value: 25 Min value: 5 Average value: 13

Answer & Explanation Solved by verified expert
4.5 Ratings (650 Votes)
using Systempublic class MinMaxAvg static int minint x int y int z int value x if y value value y if z value value z return value    See Answer
Get Answers to Unlimited Questions

Join us to gain access to millions of questions and expert answers. Enjoy exclusive benefits tailored just for you!

Membership Benefits:
  • Unlimited Question Access with detailed Answers
  • Zin AI - 3 Million Words
  • 10 Dall-E 3 Images
  • 20 Plot Generations
  • Conversation with Dialogue Memory
  • No Ads, Ever!
  • Access to Our Best AI Platform: Flex AI - Your personal assistant for all your inquiries!
Become a Member

Other questions asked by students