Author Topic: CTRL+V Game v5  (Read 82668 times)






http://i.imgur.com/tPQkyYa.gif?gifm
Warning: this stuff is dusgusting and I recommend not watching it.

I honestly sick of this crap. This game has gone dowbhill im the past few years and i am mad. I also enjoy roblox and never have i ever seen robloz have a single peoblem while blocklabd has tokm an problemd i do nkt like probles in my blockbu I'll ding game so i thbik i moght juat quit butb im npt surr because i reallt want to name gpod game on roblox and i dsoong have time for this veavev , i thonk im gwy for black land put itoblwzx ois dumbsicklityadicl lo l. I swear this game is atribal to me i am amerixan ans it inailts me because all the chatacters are kind of fat anyway i neesd advice of i should quot

idk why i have this as my ctrl v

kay finally got something on my clipboard

Code: [Select]
private double Average(int[] avrArray)
            //sets up a double method to obtain the average of test scores
        {
            double average;
            //creates a value to store avrArray's average
            double value = 0.0;
            //creates a value to store the sum of avrArray's contents
            for (int index = 0; index < avrArray.Length; index++)
            {
                value += avrArray[index];
            }
            //obtains values from avrArray

            average = (double) value / avrArray.Length;
            //finds the average of the values and stores it in average

            return average;
            //returns the average to the new double
        }

        private int Lowest(int[] lowArray)
            //new int method lowest with arguement lowArray
        {
            int lowest = lowArray[0];
            //sets up the basic value of lowest as lowArray's first subscript

            for (int index = 0; index < lowArray.Length; index++)
                // finds the lowest value of lowarray, stores it in int lowest
            {
                if (lowArray[index] < lowest)
                    //checks if a certain subscript of lowarray is the lowest
                {
                    lowest = lowArray[index];
                    //assigns the lowest quantity found to int lowest
                }
            }
            return lowest;
            //returns lowest to the method

        }

        private int Highest(int[] highArray)
            //pretty much same thing as last method except the highest number
        {
            int highest = highArray[0];

            for(int index = 0; index < highArray.Length; index++)
            {
                if (highArray[index] > highest)
                {
                    highest = highArray[index];
                }
            }
            return highest;
        }

        private void scorebutton_Click(object sender, EventArgs e)
        {
            const int size = 5;
            //constant int for scores array

            int[] scores = new int[size];
            //new int array for scores

            int index = 0;
            //keeps index at a cool 0

            int highscore;
            int lowscore;
            double avrscore;
            //sets up values for new methods used later

            StreamReader inputFile;
            inputFile = File.OpenText("scores.txt");
            //opens file scores.txt from the bin -> debug

            while (!inputFile.EndOfStream && index < scores.Length)
            {
                scores[index] = int.Parse(inputFile.ReadLine());
                index++;
            }
            //reads out scores from file and parses them for the score array, adds to index
            inputFile.Close();
            //closes readable file

            foreach (int str in scores)
            {
                scorebox.Items.Add(str);
            }
            //adds items to the scorebox for everything in the score array

            highscore = Highest(scores);
            lowscore = Lowest(scores);
            avrscore = Average(scores);
            //assigns values of scores array through various methods to stated ints

            highlabel.Text = highscore.ToString();
            lowlabel.Text = lowscore.ToString();
            averagelabel.Text = avrscore.ToString();
            //strings values and puts them into text!
        }

        private void exit_Click(object sender, EventArgs e)
        {
            this.Close();
        }
    }
}


Code: [Select]
int index = 0;
            //keeps index at a cool 0

>//keeps index at a cool 0

at a cool 0

why did I do this


because of racial slurs

Hm, must have pieced the story together some more recently


England, France, Denmark, Holland, and Portugal

[color=pink]8.53973422267357[/color][/center]

Copied that from my BLF signature to paste into my signature on another forum.
e*pi colored pink. it's a pony-related math joke, sorry
also bump