This topic is locked from further discussion.
It seems that you are missing information. How do we know what percentage of time the sub spent on the surface and under water? We can only guess.FragStains
that's the point ;)
Â
its basicly a guess and check problemÂ
Okay don't take my word on this cause I suck at algebra.
Â
What I think you do is set up an equation.
x=time travelled underwater
(12.5-x) = time traveled above water (both of these are interchangable, you could use either one to represent one of the times, it doesn't matter)
Â
so now set up an equation
10x + 16(12.5-x) = 160
10x + 200 -16x = 160
40 = 6x
x = 40/6
Â
Now plug it back into the times. (x and 12.5-x)
Â
40/6 = 6 2/3 hr travelled under water = 6 hr 40 min
12.5-40/6 = 5.83333 hr travelled above water = 5 hr 50 min
Â
Ta da!
[QUOTE="FragStains"]It seems that you are missing information. How do we know what percentage of time the sub spent on the surface and under water? We can only guess.chip_money
that's the point ;)
Â
its basicly a guess and check problemÂ
~-~Hm, I may know how to make a program do this for me. Assuming this problem consists of trying things until one works. You know the math formula you need to follow? (I'm too lazy to do any of it)~-~ ~-~Edit: Never mind, ^^^ he looks like he got it pretty good.~-~It's not a guess an check problem, it's just a system of equasions/substitution problemjerami
for me its guess and check :P I'm too lazy to look up a formulaÂ
It's not a guess an check problem, it's just a system of equasions/substitution problemjerami~-~Aw.:( *walks away disappointed*~-~ ~-~Added: Anyone want to know all the prime numbers from x to y? (you get to pick x and y. Just leave it below... oh... about 30,000,000.)~-~ ~-~Edit again: ARGH! It's with time anyways. I don't know how to do time in C++.:( (I can make it go by 8s and 16s bu not 6s. I don't really know how those will help you but whatever.)~-~
I went and checked my answer, I'm positive it's right (my process, I always could've made an arithmetic error). That's how you do it.
Please Log In to post.
Log in to comment