Thread: I have no idea where to start

  1. #1
    Registered User
    Join Date
    Jan 2019
    Posts
    8

    I have no idea where to start

    Hi everyone, i'm kind of new to programming and have no idea where to start on a problem like this. Any help would be appreciated.

    Screenshot - e0ce9c3331f4d4dcf68dd1e81e332dd1 - Gyazo
    Attached Images Attached Images I have no idea where to start-e0ce9c3331f4d4dcf68dd1e81e332dd1-png 

  2. #2
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,660
    Do you know these?
    https://wikimedia.org/api/rest_v1/me...f9f4100b1e7072

    > have no idea where to start on a problem like this.
    Well a printf/scanf of the input procedure would be a start.
    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
    Jan 2019
    Posts
    8
    Yeah I know I need to use those I just don't know how to imput them.

  4. #4
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,660
    Do you know which one?

    > I just don't know how to imput them.
    Code:
    double v, u = 10, a = 9.8, t = 5;
    v = u + a*t;
    It's that simple.
    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.

  5. #5
    Registered User
    Join Date
    Jan 2019
    Posts
    8
    So right now im working with Screenshot - 16ce6d87bfcaaf28d72ada5adf5f68e2 - Gyazo from the previous problem, where would i imput scan f and that?


    Code:
    #nclude <stdio.h>
    int
    main()
    {
    	printf("");
    	return 0;
    }

  6. #6
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,660
    How on earth did you manage problem #1?

    I mean, surely you could manage
    Code:
    printf("Enter launch speed (ft/s): ");
    scanf("%f",&lunchSpeed);  // I'll leave you to declare a suitable variable
    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.

  7. #7
    Registered User
    Join Date
    Jan 2019
    Posts
    8
    Problem 1 was just executing a program that pops up with a message "i'm the best programmer"

  8. #8
    Registered User
    Join Date
    Jan 2019
    Posts
    8
    Code:
    #include <stdio.h>
    int
    main()
    {
    	printf("Enter launch speed (ft/s): ");
    	scanf("%f", &launchSpeed); 130.5
    	return 0;
    }
    Its giving me syntax errors, I put the variable in the right place right?

  9. #9
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,660
    Because 130.5 is something you type into the running program, not the source code.

    And declare your variables.
    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.

  10. #10
    Registered User
    Join Date
    Jan 2019
    Posts
    8
    would declaring a variable be some like x=launch speed? in the line you said? or something like int?

  11. #11
    Registered User
    Join Date
    Jan 2019
    Posts
    8
    sorry im asking so many questions btw, my professor didn't teach us any of this, he just gave the assignment

  12. #12
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,660
    Do you have a book or anything?

    C Tutorial - Learn C - Cprogramming.com
    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.

  13. #13
    Registered User
    Join Date
    Jan 2019
    Posts
    8
    I should be getting a textbook on Monday.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. New to this and no idea where to start
    By brad_chap_5 in forum C Programming
    Replies: 2
    Last Post: 01-29-2014, 09:27 AM
  2. No idea where to start for this program
    By g3tb0mbed in forum C Programming
    Replies: 3
    Last Post: 09-10-2013, 10:36 PM
  3. No idea where to start with this program that needs loops...
    By Rockiroad278 in forum C Programming
    Replies: 2
    Last Post: 11-25-2007, 05:56 PM
  4. need a idea to start
    By keeper in forum Networking/Device Communication
    Replies: 1
    Last Post: 03-25-2006, 03:36 AM
  5. have no idea where to start (not a project)
    By misplaced in forum C++ Programming
    Replies: 2
    Last Post: 10-10-2004, 06:48 PM

Tags for this Thread