Spire.XLS for .NET is a professional Excel .NET library that can be used to any type of .NET( C#, VB.NET, ASP.NET, .NET Core) application and Java (J2SE and J2EE) application.

Wed Dec 22, 2010 3:27 am

What i have to do is a short program that averages the sales amounts of up to 20 employees(Each employees has 4 quarterly amounts that get averaged) in an array. I need write a loop that counts each quarter each employee's averages, and if an employee is found to have 3 out of 4 above average sales(compared to the quarterly sales of the other emplyees), I have to add that employee to a listbox. The problem is... What kind of loop i need and where would I start?

Posts: 4
Joined: Tue Dec 21, 2010 3:54 am

Wed Dec 22, 2010 9:13 am

Q:What kind of loop?
A:Any loop will do. which ever you know how to or want to handle.

Q:where to start?
A:Break it down; think it through. :lol:
e-iceblue support
User avatar

iceblue support
Posts: 240
Joined: Tue Dec 21, 2010 2:56 am

Return to Spire.XLS