I want to increase my basePremium(=200) by a certain percentage, the percentages are stored in rows of the second column in my csv file. the percentage will be determined by the selection the user makes from a drop-down list that has the values from the first column stored in it.
I want to store this calculation in a method in a class that I can use in different forms.
public void premiumCalc()
{
StreamReader reader = File.OpenText("JobList.csv");
while (!reader.EndOfStream)
{
String line = reader.ReadLine();
String[] values = line.Split(',');
}
reader.Close(); //close the csv file
}
double basePremium = 200.00;
}
}