If You Know C#Post Date: 2016-04-13 |
Post Reply
|
Author | |
Caleb
Groupie Joined: 19 Jul 2009 Online Status: Offline Posts: 354 |
Quote Reply
Topic: If You Know C# Posted: 13 Apr 2016 at 5:49pm |
Hi,
I'm working on a C# project for school and I'm getting no where. What I'm doing is calculating the total, count, and average of a score that a user inputs into a arraylist. List<int> SavedScore = new List<int>(); // Creating of ArrayList private void btn_Add_Click(object sender, EventArgs e) { int score = Convert.ToInt32(txtBox_Score.Text); SavedScore.Add(score); } The code above does work to calculate the count (# of score entries into the array). But I cannot figure out total and average. Any help would be appreciated! Caleb |
|
Post Reply |
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You can vote in polls in this forum |