+ 1

Volume exercise

Well i need someone to explain how to make algorithm for one task. Probably easy for you well task is During the storm it fell "n" liters of water per square meter and i need program that determines how many centimeters the water level raised in the open pool of given dimensions, if we know that the water did not spill out. Lenght "a" width "b" depth "c"

5th Jan 2019, 7:51 PM
Luka Racić
Luka Racić - avatar
32 ответов
+ 3
You just need cout, cin and variables
5th Jan 2019, 11:28 PM
Maneren
Maneren - avatar
+ 2
First module in Sololearn course is enough
5th Jan 2019, 11:29 PM
Maneren
Maneren - avatar
+ 1
You want explanation how to solve this or you want code to solve this?
5th Jan 2019, 10:57 PM
Maneren
Maneren - avatar
+ 1
Well if u can solving it would be appreciated, thanks
5th Jan 2019, 10:58 PM
Luka Racić
Luka Racić - avatar
+ 1
And your effort to do so? I can help you, but not do it all.
5th Jan 2019, 11:01 PM
Maneren
Maneren - avatar
+ 1
Ain't asking you to finish it just want some basic explanation
5th Jan 2019, 11:04 PM
Luka Racić
Luka Racić - avatar
+ 1
Luka Racić Sure, thats good. Use this formula: If on 1m^2 fells n meters of water. Then height (in meters) is equal to n / 1000. It is bacause volume is counted as a * a * h (generaly a * b * c) and if a == 1, volume == 1000 liters (1 m^3) then h = 1. Enough?
5th Jan 2019, 11:10 PM
Maneren
Maneren - avatar
+ 1
How to calculate a volum of a cube :) Try to make something from what you got until now and someone will help you on that, but give it a try first. AND finishing​ the c++ course probably will help. https://www.google.com/search?hl=en-US&source=android-browser&ei=dzoxXKPBDurqrgTPn43QBg&q=volume+of+a+cube&oq=volume+of+a+&gs_l=mobile-gws-wiz-serp.1.2.0i67l4j0.3038.4138..6162...0.0..0.964.1566.0j4j6-1......0....1.........0i71.lTIJRzVMY5Q
5th Jan 2019, 11:18 PM
derXred
derXred - avatar
+ 1
So you are older than me :D
5th Jan 2019, 11:39 PM
Maneren
Maneren - avatar
+ 1
Well i started today
5th Jan 2019, 11:51 PM
Luka Racić
Luka Racić - avatar
+ 1
I said first course not fully
5th Jan 2019, 11:55 PM
Luka Racić
Luka Racić - avatar
0
Luka Racić sounds like a homework :) buut, lets try it If you have 1000 liters on an square meter means that the volume is 1m^3. My question for you is IF n=1000, a=100, b=100, THEN what's the value of c (and in this particular case it is = to the number of the centimeters the water level) ? P.S. try to change the title "Help pls" :) you can try something like "volum exercise", maybe someone else its interested in the same problem and its esyer for them to find it
5th Jan 2019, 10:49 PM
derXred
derXred - avatar
0
I'm confused 😂
5th Jan 2019, 10:52 PM
Luka Racić
Luka Racić - avatar
0
I've been struggling for half n hour
5th Jan 2019, 11:02 PM
Luka Racić
Luka Racić - avatar
0
Have you tried to make a quick example and to solve it on a paper? :) Probably not, that's why I make one for you. If you can't solve an exercise first, then is pretty hard to make an algorithm for an issue
5th Jan 2019, 11:10 PM
derXred
derXred - avatar
0
Just what i needed thanks P. S. Tried on paper and i did it i needed algorithms because i don't know any :/
5th Jan 2019, 11:12 PM
Luka Racić
Luka Racić - avatar
0
Actually not an algorithm i said wrong meant commands
5th Jan 2019, 11:15 PM
Luka Racić
Luka Racić - avatar
0
I do know mathematical part with paper and pencil what makes barrier is commands and stuff like int cout and that i know just couple of them from hello world tutorial 😂 probably for solving this i need much complicated ones
5th Jan 2019, 11:23 PM
Luka Racić
Luka Racić - avatar
0
My first comment was with an example :) the answer was 100...only math over there(its a math exercise after all), not any programming involved
5th Jan 2019, 11:29 PM
derXred
derXred - avatar
5th Jan 2019, 11:30 PM
Maneren
Maneren - avatar