- Upvotes Received
- 1
- Posts with Upvotes
- 1
- Upvoting Members
- 1
- Downvotes Received
- 0
- Posts with Downvotes
- 0
- Downvoting Members
- 0
Electrical and Electronics Lecturer
Hello, I am looking some help with a program. I am trying to parse the following file into a dynamic Array "Database[8][5]". Device ,Gain (beta),Power Pd(W) ,Current Ic(A) ,BVceo(V) 2N3904 ,150,0.35,0.2,40 2N2202 ,120,0.5,0.3,35 2N3055 ,60,120,10,90 2N1013 ,95,50,4,110 MPE106 ,140,15,1.5,35 MC1301 ,80,10,0.9,200 ECG1201 ,130,1.3,1.1,55 I seem to beable to parse the … |
|
I am trying to ask for a float input and valididate if it is a float if it is... continue, and if it is not ask for another input. My program tells me my input is invalid, which is correct... it then prints the two statements but it skips the … |
|
Iam having trouble writing my results to a CSV file.The results i have are as follows -0.025 0.15 0.15 0.4 0.5 -0.05 0.1333333 0.2 0.4 0.5 -0.05 0.1333333 0.2 0.4 0.5 -0.05 0.1333333 0.2 0.4 0.5 -0.05 0.1333333 0.2 0.4 0.5 When i am writing them to the file it … |
|
Hay im trying to find the average of the columns. but i can onli get the average of the rows. my code is like so . . [CODE] for (int l = 0; l < list1.Count; l++) { float sum = 0.0F; float average = 0.0F; string[] list1Values = list1[l].Split(','); … |
|
I HAVE TWO LISTS AND I AM LOOKING TO SUM THE VALUES IN THEM. I HAVE TRIED SO MANY DIFFERENT WAYS. THIS IS WHAT I HAVE SO FAR: [CODE] for (int l = 1; l < list1.Count; l++) { string[] lineValues = list1[l].Split(','); float intValue = float.Parse(lineValues[l]); for (int k … |
|
I am running a function and when it does it for the first column 0 i want to write those results to a csv file.Then run it for column 1 and save it in the same csv file but in the next column.So . . Result 1 = csv file … |
|
Ok so does any body have any ideas or hints on how to select a range of values from an array??? say: Array1[1,0] to Array1[10,0] so that would be the first values in each row from 1 to 10. ANy ideas? |
|
HAY people ive created the code as below but when i run the program it is displaying: system.Array[] or somthing like that instead of the value in the array. I though it mite be a problem when converting the string[] to string but i cant seem to find a solution. … |
|
im looking to check a binary value at a certin bit and determin if that bit is a 1 or a 0. For example: A = 10000000 B = 01111111 I want to check the first bit and if it is a 1 load it into one array and if … |
|
The dictionary part isnt working. can anybody help?? [CODE] string path = @"C:\1\"; string[] file1_Lines = File.ReadAllLines(path + @"TraceSet.csv"); string file2 = File.ReadAllText(path + @"SBoxOutput.csv"); string[] file2_Lines = file2.Split(new string[]{"\r\n"}, StringSplitOptions.RemoveEmptyEntries); //creating 2 lists for average values of file1 and file2: List<float> averageFile1 = new List<float>(); List<float> averageFile2 = new … |
|
Hello im a newbie having problems. I have got two arraylist with values in them. I want to subtract each value from the oposite value in the second array list to get a new list C which i am going to plot on a graph. For example ArrayLists A,B A … |
|
Anyone got any idea how to sum values of a column instead of a row??? ie 1 2 3 4 2 3 4 5 4 3 2 1 [B]7 8 9 10[/B] |
|
I want to use the code i have and turn it into a function that i can call in the main program. I have to do a similar function a second time and want to be able to call them into the main program instead of having one big long … |
|
Hi guys im having a lot of problems trying to code. I have opened a csv file and have read it using strings.I have splitted the strings by the ','. I want to load each of these values into a 2 dimensional array! but im having problems. Ultimatly i want … |