Thread: c program problem plz help

  1. #1
    Registered User
    Join Date
    Mar 2016
    Posts
    4

    Exclamation c program problem plz help

    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

  2. #2
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,661
    Announcements - C Programming
    This isn't homework on demand.

    You need to show some actual effort.
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.

  3. #3
    Registered User
    Join Date
    Mar 2016
    Posts
    4

    dear saleem

    im not asking for the homework
    i need help to create i you so, will be thanks full to you

  4. #4
    Registered User
    Join Date
    Jun 2011
    Posts
    4,513
    Quote Originally Posted by cinta shavi View Post
    im not asking for the homework
    i need help to create i you so, will be thanks full to you
    Regardless of whether this is "homework" assigned by an educational institution, it is still your project, so it is up to you to do the necessary research and determine where to start.

    How much programming experience do you have?

  5. #5
    Registered User
    Join Date
    Dec 2015
    Posts
    68
    Have you done any programming before, like in BASIC?
    What you're asking for is pretty much two: if (speed >130) printf warning.

  6. #6
    Registered User
    Join Date
    Mar 2016
    Posts
    4
    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

  7. #7
    Registered User
    Join Date
    Mar 2016
    Posts
    4
    some plz help me

  8. #8
    Registered User
    Join Date
    Jun 2011
    Posts
    4,513
    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.

  9. #9
    Registered User
    Join Date
    Dec 2015
    Posts
    68
    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.

  10. #10
    Registered User
    Join Date
    Sep 2010
    Location
    Europe
    Posts
    87
    Here is how to do if statements in C:

    if...else statement in C

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. what is the problem in this program ?
    By mysterious in forum C Programming
    Replies: 8
    Last Post: 10-28-2012, 06:39 AM
  2. CS1 Program (New Problem)
    By DaNxTh3xMaNx in forum C Programming
    Replies: 3
    Last Post: 09-30-2010, 02:04 AM
  3. Replies: 4
    Last Post: 10-16-2008, 07:30 PM
  4. Math Equation Program (I can't find the problem with my program!)
    By masked_blueberr in forum C Programming
    Replies: 14
    Last Post: 07-06-2005, 11:53 AM
  5. program problem
    By stormswift in forum C Programming
    Replies: 4
    Last Post: 06-11-2002, 12:49 PM