t = s/V
Since the body travels half the distance with the speed V then:
t1= (s/2)/V
For the second half of the distance the speed is 2v then:
t2= (s/2)/2V
But now I see that it would be easier to write t1=s/V and t2= s/2v and later, when calculating the average speed, to just use 2s...
So, I followed your advices and I got this for body 1:
t1= s/2/v
t2=s/2/2v
From that I got that:
Vav1= s/(s/2/v + s/2/2v) and then this somehow equals 4/3V. I don't understand how, but it does according to WolframAlpha.
For body 2 I got:
s1= v*t/2
s2= 2v*t/2
stotal = 3/2v*t
Vav2=...
The solution in my book is:
Vav1= s/s/2v + s/s/4v = 4/3V
Vav2= (V*t/2 + 2V*t/2)/t = 3/2V
What I don't understand is how s/s/2v + s/s/4v equals 4/3V... I checked with Wolframalpha and it's correct.
How? The values are not given in the problem statement.
Ahh, yes. Then what am I doing wrong? Perhaps the last division by 2 is unnecessary and the result would be 3/2*V for both?
Homework Statement
Two bodies travel the same distance. One body travels half of the distance with the speed V and the other half with the speed 2V. The second body travels half of the time with the speed V and the other half of the time with the speed 2V. Which of the bodies has the higher...
Well, I just read that Nikola Tesla could become a saint. It's in my native language so I translated it to English.
Here's the link to the English version: http://followscience.blogspot.com/2012/07/tesla-to-be-canonised.html
At the bottom of the post, you can find the link to the original text...
hahahahaha
It's a zero. I made some changes so it looks like this:
var values: array[1..5] of char ;
var i, total: integer;
var v:char;
begin
total:=0;
for i:=1 to 5 do
begin
v:=values[i];
if(v='D') then break;
total:=total+integer(v)-integer('0');
end;
writeln(total);
end.
When I copy your...
It's Windows and crtl-Z would completely eliminate the letter 'D' from the program. Anyway, it's not working either.
I'll post it a bit later, I'm not home at the moment.
Ugh: 'string expression expected' '; expected'
And even when I try to correct the ';' error, I get it again and again on the same spot.
Yes, I have. It's working great, I just can't stop the input with Ctrl-D.
I'm using Turbo Pascal for Windows. I understand what you're trying to say, but I can't get it to work in TPW.
Thanks for going to so much trouble just to help me. I'm using Turbo Pascal for Windows and this code doesn't work for me (nothing happens when I hit Ctrl-D). And yes, I am sure...
The exact statement of the problem, roughly translated, would be something like this:
Write a program in Pascal which calculates the sum of all the values of the array A. The length of the array is unknown and the input ends when A[i]= D. E.g.
1
2
3
D
S= 6
I have to program everything...