Homework Statement
The components of a circuit with a voltage source and 2 resistors ( series ) has the following values vs = 10V, R1 = 100 , R2 = 150. With i1 leaving the +ve vs and i2 leaving -ve vs ( i.e. i1 entering node A, i2 is entering in the opposite direction of i1 )
Find:
a)...
How do you make a robot wait?
I was thinking making a function called "Wait(time)", where "time" is 1/1000 of a second. Do you shut down a robot for that time to make it wait?
Thanks
Do you mean the robot must stop first then make a right turn?
this is a part of the right turn code
void turnRight(int stepNum){
int i = 0;
while(i<stepNum){
rotateCW(2); // Rotate motor two step
rotateCW(1); // Rotate motor one...
Homework Statement
I want a robot to roll in a path with 4 sides or in other words square, so I made a possible program but I am not sure if it will work. And how do you call 2 source codes into a different code like the one below? ( the 2 are right.hex and the other is DelaySpeed )
right -...
Homework Statement
A ball ( 2.7 g ) is launched at a 45 degree angle with a solenoid input of 50V. What is the initial speed of the ball?
Homework Equations
KE = 0.5mv^2
PE = mgh
dy = vy(0)t + 0.5at^2
dx = vx(0)t
The Attempt at a Solution
Voltage is potential energy and I...
r1 is the distance r, and 0.05 is the vector in y-direction. They both have the same values.
I tried the diagram that you showed me, and I get wire A in -y direction, while wire B will be +X direction. I'm not sure if I'm doing my right hand right with the diagram because of the rotating...
Homework Statement
Two infinitely long wires run parallel to the z-axis. Wire a is 5.0 cm along the y-direction from the z-axis and carries a current of 1.5 A out of the page. Wire b is 10.0 cm long along the x-direction from the z-axis carries a current of 0.5 A into the page.
a)...
Do I need to pick other numbers for x and y? Could someone please explain to me what ""least number of different test cases" means? Is it having various numbers for x and y and finding the similar number in them?
Homework Statement
Pseudocode:
if ( x is greater than y )
then return "hello"
else if ( x is less than y + 3 )
then return "bye"
What is the least number of different test cases that I would use to test this coude(eg. What would you use as values for x and y to fully test this piece of code...