write a program that traces the speed of car if speed were found above 130 then warn him to slow slow down if above 160 then fine the driver
Printable View
write a program that traces the speed of car if speed were found above 130 then warn him to slow slow down if above 160 then fine the driver
Announcements - C Programming
This isn't homework on demand.
You need to show some actual effort.
im not asking for the homework
i need help to create i you so, will be thanks full to you
Have you done any programming before, like in BASIC?
What you're asking for is pretty much two: if (speed >130) printf warning.
i have done basic but this one's the task has been given to me look difficult
question is to create
a program that runs digits from 1 to 130 just like the "stopwatch" when it reaches to 120 we have to warn for slow down the speed if it reaches continuesly to 130
fine the driver for high speed thats it bro
some plz help me
Can you write a program that simply counts upwards? That's a good place to start. Try your best, and post your attempt (in code tags) when you get stuck. We can go from there.
If you can't even do this much, I suggest you re-visit your learning material and work on the basics. After all, if someone gave you this task, they must expect you to have at least basic knowledge of C.
Where are these digits displayed? computer cmd window?, windows app, 7digits LED's on Arduino board etc?
The display is the hard part than to show if (speed>130)
So maybe you should use Arduino sketches as that is simpler.
Here is how to do if statements in C:
if...else statement in C