We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
Hi,
Am trying to develop a mathematical program to calculate time when speed and distance are given.
How can I get user input ie, the distance and speed.
How can I calculate time.
And then to calculate and display the results.
Please help.
Haven't your teacher already covered these basics?
How to enter input? That obviously depends on what hardware you have. Maybe using a serial port with a terminal application. Print prompt. Wait for digits + enter. Maybe LCD + keypad.
How to calculate? The C language do have support for + and * so what is the issue?
How to display the result? Wouldn't that also depend on your hardware? Print the result on the serial port or a connected LCD.
You really do have to follow what is teached at school. If not, you will only be further and further behind.
can anyone help.
With what? Doing your school assignment for you?
Where are you stuck?
Have you talked with your teacher yet?
Wanna bet his next reply is "can anyone help." ?