Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
100% Quality Score
Upvotes Received
1
Posts with Upvotes
1
Upvoting Members
1
Downvotes Received
0
Posts with Downvotes
0
Downvoting Members
0
0 Endorsements
~8K People Reached
About Me

Electrical and Electronics Lecturer

Favorite Forums
Favorite Tags
Member Avatar for Mark_48

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 …

Member Avatar for rproffitt
0
352
Member Avatar for Mark_48

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 …

0
131
Member Avatar for Mark_48

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 …

Member Avatar for abelLazm
1
684
Member Avatar for Mark_48

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(','); …

Member Avatar for Mark_48
0
92
Member Avatar for Mark_48

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 …

Member Avatar for abelLazm
0
128
Member Avatar for Mark_48

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 …

Member Avatar for Momerath
0
84
Member Avatar for Mark_48

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?

Member Avatar for Mark_48
0
92
Member Avatar for Mark_48

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. …

Member Avatar for Mark_48
0
137
Member Avatar for Mark_48

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 …

Member Avatar for Mark_48
0
123
Member Avatar for Mark_48

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 …

Member Avatar for Mitja Bonca
0
155
Member Avatar for Mark_48

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 …

Member Avatar for Mitja Bonca
0
6K
Member Avatar for Mark_48

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]

Member Avatar for Mark_48
0
107
Member Avatar for Mark_48

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 …

Member Avatar for RabidDog5150
0
149
Member Avatar for Mark_48

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 …

Member Avatar for Mark_48
0
153