using System;
namespace Method
{
class MainClass
public static void Main(string[] args)
}
//Q1
//Input:1 int
//Output:how far an int is from 100
//Process:100-int
/*public static int howFar(int x)
return 100 - x;
}*/
//Q2
//Input: 2 doubles
//Output:a double containing the sum of 2
//Process:add the two together
/*public static double getSum(double x, double y)
return x + y;
//Q3
//Input: 1 int
//Output: the square and cube of an int
//Process: an int times itself once and then twice
/*public static int squareThis(int x)
return x * x;
public static int cubeThis(int y)
return y* y * y;
//Q4
//Input: 1 double
//Output:two ints, one with num, one with amount
//Process:% num by 4.20,/ amount by 4.20
/*public static int[] workOutChoc(double x)
int [] iArr = new int[2];
iArr[0] = (int)(x/4.20);
iArr[1] = (int)((x%4.20)*100);
return iArr;
//Q5
//Input:an array of ints
//Output:the largest, the total and the average of the array
//Process:an if statement for largets, adding together all the nums and then dividing it by the amount in the array.
/*public static int getLargest(int[] Arr)
//int[] iArr = new int[5];
int largest = Int32.MinValue;
for (int i = 0; i < Arr.Length; i++)
if (Arr[i]>largest)
largest = Arr[i];
return largest;
public static int getTotal(int[]Arr1)
int total = 0;
for (int i = 0; i < Arr1.Length; i++)
total= Arr1[i] + total;
return total;
public static int getAverage(int[]Arr2)
int average = 0;
for (int i = 0; i < Arr2.Length; i++)
total = Arr2[i] + total;
average = total / Arr2.Length;
return average;
//Q6
//Input:
//Output:
//Process: