C# Console create a method called MakeScore() that creates a random number between 1 and 10. (make sure to scale and shift the numbers appropriately.) This method should return the value after it creates it. ...alternately you can pass it an integer by reference and have it set the value. Create a method called FindAverage that takes 4 integers as parameters. This method should add the 4 integers together and divide them by 4, and then display each of the integers along with their average. Create another method called FindAverage that takes 6 integers as parameters (overloading the other FindAverage method). This method should add the 6 integers together and divide them by 6, and then display each of the integers along with their average. In the main() of your program test your three methods. Do this by creating 6 different integers for testing. Call the MakeScore() method for each one and assign them the random number it returns. Then, pass the first 4 integers to the first FindAverage method, and all 6 integers to the second FindAverage method.
Get Free Quote!
301 Experts Online