0

Find resistivity by C++

A student wants to measure a resistivity of a material of certain wire of radius 2 mm, and length of 25 cm. He got the following data Voltage (V): 100, 90, 80, 70, 60, 50, 40, 30, 20,7 Current (A): 11, 8, 7, 6, 5.7,5, 3.9, 2.3, 2.1, 1.1. Find the resistivity?

12th Mar 2021, 8:04 AM
Oroob Mustafa
Oroob Mustafa - avatar
12 Respuestas
+ 3
Resistivity R = U / I
12th Mar 2021, 8:15 AM
JaScript
JaScript - avatar
+ 2
https://code.sololearn.com/c67fuNOJUv45/?ref=app I hope after you understand it try to write it from scratch 💪🏻
12th Mar 2021, 2:07 PM
**🇦🇪|🇦🇪**
**🇦🇪|🇦🇪** - avatar
+ 1
JaScript No, Resistivity=Resistance*area/length
12th Mar 2021, 8:19 AM
Oroob Mustafa
Oroob Mustafa - avatar
+ 1
Oroob Mustafa okay, this is due to my not so good English in the special terms. I would say a resistance‘s material constant. So is right: Resistance R = U / I and than you can calculate with the „Resistivity“ = U*area / length / I / 2 Where do you have problems with your code? By the way please provide link here to your code.
12th Mar 2021, 1:41 PM
JaScript
JaScript - avatar
+ 1
@Wedad Saleh instead of int r = 2 you need to use float r = 0.002 because of unit conversion from mm to m. @Oroob Mustafa Now the loop in Wedad Saleh's code doesn't increment so it only calculates the resistivity for the first pair of data. It can be used to calculate an average for the resistivity. But I think you can try to do that yourself and ask for more specific help.
14th Mar 2021, 5:14 AM
Eddy M
0
Oroob Mustafa You can find area and length and Resistance is Voltage / Current . Maybe all those voltages and currents need to be added.
12th Mar 2021, 9:06 AM
Abhay
Abhay - avatar
0
The resistivity also depends with the temperature (and higher currents mean higher temperature) but in this case the measurement errors seem to be too large for this kind of complication.
14th Mar 2021, 6:45 AM
Eddy M
0
It would be very unnatural to use a mix of two units of length in the result. It's like having one more step to the answer. So we need to preferably convert all values in SI units. The unit in SI for resistivity is ohm metre (that is ohm * metre).
16th Mar 2021, 3:01 AM
Eddy M
0
Oroob Mustafa if you need a small challenge while writing the program for yourself, from scratch, try to provide a correct numerical value followed by the unit in SI (ohm metre) and a measure of the accuracy of the measurements such as the standard deviation. Any physics teacher would be happy to see your answer.
16th Mar 2021, 3:09 AM
Eddy M
12th Mar 2021, 8:06 AM
Oroob Mustafa
Oroob Mustafa - avatar
- 1
Good
13th Mar 2021, 7:41 PM
FBI
FBI - avatar