The tiny tots tee-ball league has 12 players who have jersey numbers 0 through 11.
The coach wants a program into which he can type a player’s number and the number
of bases the player got in a turn at bat (a number 0 through 4).
Write a program that allows the coach to continually enter the values until 999 is entered.
Store the statistics in a two dimensional array.
At the end of a data entry session, display each player’s number and the number of
0-bases, 1-base, 2-base, and 3-base, and 4-base turns the player had.
Display a separate count of the number of data-entry errors the coach makes
(a player number greater than 11 or a number of bases greater than 4).

So what's your problem? We do not do homework for you, you post the code you have written and ask specific questions. Just posting your assignment does nothing.

So true

Sorry got side tracked..Here is what I have so far. But I keep getting errors.. Thanks.

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace WindowsFormsApplication1
    public partial class Form1 : Form
        public Form1()

         int [,] tball = new int [12, 5]; 
        private void button1_Click(object sender, EventArgs e)
            string userInput, userInput2;

            int score,totals;
            int player;
            userInput = textBox.Text;
            player = Convert.ToInt32(userInput);
            userInput2 = textBox2.Text;
            score = Convert.ToInt32(userInput2);
             click####.clicks =+ 1 ;
            if (player!= 999);
        tball[player,score] += 1;


This article has been dead for over six months. Start a new discussion instead.