+ 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"

32 Answers

+ 3

You just need cout, cin and variables

+ 2

First module in Sololearn course is enough

+ 1

You want explanation how to solve this or you want code to solve this?

+ 1

Well if u can solving it would be appreciated, thanks

+ 1

And your effort to do so?
I can help you, but not do it all.

+ 1

Ain't asking you to finish it just want some basic explanation

+ 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?

+ 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

+ 1

So you are older than me :D

+ 1

Well i started today

+ 1

I said first course not fully

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

0

I'm confused 😂

0

I've been struggling for half n hour

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

0

Just what i needed thanks
P. S. Tried on paper and i did it i needed algorithms because i don't know any :/

0

Actually not an algorithm i said wrong meant commands

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

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

0

Btw. Smh like this
https://code.sololearn.com/cJQLRqQYt3ZA/?ref=app