help about converting to time

hello ..
i am new student in CS and i hope u all help me with this problem ..
i want to know how to make the user input the time as (hh:mm:ss)

thank you...
thanks for helping
but i couldn't understand anything ... i am beginner .. and we didnt learn about string yet...

so if you can help me to do it with function it will be better ...

i want it to convert the time to (hh:mm:ss) and i can multiplied with any number

like .. to find velocity we have to multiply the time with speed ??
i want it to convert the time to (hh:mm:ss)


A minute ago you said you wanted to make the user enter the time as (hh:mm:ss) , but now you've changed your mind and you want to convert time from some other system into hh:mm:ss?

You need to work out now, before you start coding, what you want to do. I suggest you literally write down something like:

1) Ask user for input
2) Get user input
3) Check user input is in correct format - if not, go back to 1

This is the difficultly in coding. Working out how to solve the actual problem. The rest is just syntax. So first, work out what the problem is, and then work out how to solve it. Only then should you start code.
oooh no no ...
its the same all i want is to make the user enter the time as (hh:mm:ss)

this is the question " Write a program to ask user to input an acceleration (km/hour) and the riding time (hh:mm:ss) and calculate the velocity "



i did all your step and my programe is almost ready ...

sorry for make u suffering
input an acceleration (km/hour)


That's a nonsense. km/hour is a velocity, not an acceleration. Is that really the question?
IT IS !!!

U CAN ASK MY TEACHER IF YOU WANT !!!
I believe you. Now you know that your teacher doesn't understand acceleration. Hopefully they understand programming.
Topic archived. No new replies allowed.