help c++ | Sololearn: Learn to code for FREE!

-3

help c++

v1=6 v2=4 t1=2 t2=4 s-?

c++

12/7/2021 5:52:50 PM

Кинжакулов Арсен

39 Answers

New Answer

+1

* There is 1 closing } to many * remove the : * would outputting S only once be enough?

+4

"I was given math homework to solve this with c ++" Кинжакулов Арсен and your attempt? we want to see if you actually put some effort into doing it. even if you did it wrong or it is incomplete. although it looks more like a physics question than a mathematical one. "Rellot's screwdriver I don’t know what C ++ is. I don’t understand what it is." WHAAAAT "We had only one lesson in C ++ and I didn't understand anything. I wanted to see how problems are solved using C ++. And this was given to us for homework.Rellot's screwdriver" oh now it makes sense, although it's not so complicated for us to solve it but for you it's gonna be as confusing as you're a complete beginner

+2

Okay, what does S mean?

+1

Can you please link your code? It looks incomplete and it is unclear to me what you are trying to do...

+1

You can approach the task like this: * assign values to variables of appropriate data type * calculate s with the given formula * output s

+1

Did you test your own code? * you forgot to specify the type of S * I don't understand S: ? * How does the formula relate to the formulae that you wrote previously? (You can test your code here on sololearn playground)

+1

Great you could solve it now! :) Keep learning!

+1

Depends on what your formula is supposed to do ;) The difference between float and double is precision (number of bits to store the value)

+1

Кинжакулов Арсен it's just that doesn't make sense to me as what you were trying to get with (v1*t1)+(v1-v2)*t2 ? difference between two distances?

+1

Rellot's screwdriver yes

0

I was given math homework to solve this with c ++.

0

s is the distance v is speed t is the time s = t * v v = s: t t = s: v

0

i need to solve with c ++

0

Rellot's screwdriver I don’t know what C ++ is. I don’t understand what it is.

0

We had only one lesson in C ++ and I didn't understand anything. I wanted to see how problems are solved using C ++. And this was given to us for homework.Rellot's screwdriver Lisa

0

float t1=2,t2=4,v1=6,v2=4; S=(v1*t1)+(v1-v2)*t2; cout<<S:<<S; Rellot's screwdriver Lisa right?

0

https://code.sololearn.com/cJsl3O5TQ5ON/?ref=app Lisa

0

https://code.sololearn.com/cJsl3O5TQ5ON/?ref=app Lisa

0

I decided everything, I blunted myself ...

0

Lisa thank you,to solve this, I spent an hour and a half ...