Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8288211
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T12:14:11+00:00 2026-06-08T12:14:11+00:00

I am building a program that will run 10000 iterations on a 6 sets

  • 0

I am building a program that will run 10000 iterations on a 6 sets of numbers. These numbers after being put through the iterations and calculated out and sorted in the following fashion.

*_Set1_****_Set2_****_Set3_****_Set4_****_Set5****_Set6_*
*********************************************************
**DESC******DESC******DESC******DESC******DESC*****DESC**
*********************************************************

Where Set(n) is the set of numbers and DESC is descending order of the numbers.

I have tried doing a LIST. But I am very unfamiliar with LIST and I’m not even sure it’s what I’m looking for. I’ll give you an example of what I was doing with the LIST

//Created a Output Class for Sim
 public class MC_OUT
    {

       public double output;
       public double OOIP;
       public double OGIP;
       public double EURO;
       public double EURG;
       public double rAREA;
       public double calcEURO;
       public double calcEURG;

        public MC_OUT(double output, double OOIP, double OGIP, double EURO, double EURG, double rAREA, double calcEURO, double calcEURG) { 
        this.output = output;
        this.OOIP = OOIP;
        this.OGIP = OGIP;
        this.EURO = EURO;
        this.EURG = EURG;
        this.rAREA = rAREA;
        this.calcEURO = calcEURO;
        this.calcEURG = calcEURG;


        }

//Declared list before Monte Carlo Sim.
List<MC_OUT> mcout = new List<MC_OUT>();


//Ran Code to Perform Calculations
//Then Executed this at End
 if (OOIP >= 0 && OGIP >= 0)
        {
            mcout.Add(new MC_OUT(NormSInv((i - .5) / iter), OOIP, OGIP, EURO, EURG, rAREA, EURO / (rAREA * rNET_H * rGCF) * 1000, EURG / (rAREA * rNET_H * rGCF) * 1000));
        }
//Then I got confused and couldn't figure out how to sort and then access the needed
 //information

So I guess after all this junk my main question would be What is the most effective way to store this information and could someone please direct me to an appropriate tutorial?!

Thanks!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-08T12:14:12+00:00Added an answer on June 8, 2026 at 12:14 pm

    Now that you have created a list you can access the data by an index. For Example:

    var firstRecord = mcout[0];
    var firstEURO = firstRecord.EURO;
    

    Or:

    var firstEURO = mcout[0].EURO
    

    If you want to sort the data it can be as simple as this.

    var sortedData = mcout.Orderby(x => x.OOIP);
    

    The above will sort the data based on one of the current properties you have. If you need to sort it differently you may need to think about adding another property to your object that would be better suited for sorting.

    It is also easy to enumerate through the data with a foreach loop, or a for loop.

    foreach (var mc in mcout)
    {
        var euro = mc.EURO;
    }
    
    for (int i = 0; i < mcout.Count; i++)
    {
        var euro = mcout[i].EURO;
    }
    

    Collections are something very widely used, and there are numerous types!! You will want to get to know them, and how to use them. If you google C# collections you will get a lot of information/tutorials. Here’s an MSDN tutorial on collections. I could keep going on about how to access and use them, but there is really so much that you will need to dive in and start learning it through the information on the web. Hopefully the above examples, and links I have given you can get you started! Cheers!

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm building a Java program that will automatically run a hundred or so tests.
I am building a program that will update an early voted column in my
I'm building a JFrame that will eventually display the output of a program that
I'm building a graphical program that will need to show files on both the
I am building a program that takes an input file in this format: title
I am building a C# program that unzips a file, and work on this
I'm building a site in django that interfaces with a large program written in
I'm building a application that sends a test message to another email, the program
I am building a program which reads text files, containing a list of numbers.
Hi I'm building a program that uses a signal handler shown below ... struct

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.