Search:

Type: Posts; User: Kyeong

Search: Search took 0.01 seconds.

  1. Replies
    2
    Views
    2,460

    Palindrome, problem with isalpha (solved)

    I don't know if I am implementing isalpha() correctly and doing something else wrong or it's in the wrong place. Where I have the isalpha now, once I compile and run it, it say everything is...
  2. Replies
    1
    Views
    2,097

    How do I validate these inputs?

    This is another GCD program. Everything is working correctly besides validating the inputs correctly.

    My goal:



    Here's the code:


    #include <stdio.h>
  3. Replies
    9
    Views
    5,435

    It doesn't matter if it's back in time or...

    It doesn't matter if it's back in time or forward. Whichever is the closest, that will be displayed. At least that's how the sample output looked like.
  4. Replies
    9
    Views
    5,435

    In my textbook, the example given is: int abs(int...

    In my textbook, the example given is: int abs(int j). So I tried int abs(int small), but that didn't work because it's an invalid assignment. So I tried "small = abs();" in the if statement, but that...
  5. Replies
    9
    Views
    5,435

    Ok, I'm starting to understand this now, at least...

    Ok, I'm starting to understand this now, at least I think I am. I calculated each slot in the array to determine the smallest difference, but got a negative number. Now, I'm trying to use the abs()...
  6. Replies
    9
    Views
    5,435

    Yes. Sort of, I read through this thread ...

    Yes.

    Sort of, I read through this thread and kind of got the idea of how to get find the smallest.

    Nope. Still iffy with the arrays.
  7. Replies
    9
    Views
    5,435

    Determine the closest departure time

    I have to use arrays for this projects and I only understand the basics of arrays. I have no clue how to implement it into the loop and am stuck right now. Oh yeah, I did a search and couldn't find a...
  8. Replies
    11
    Views
    9,522

    Thanks for the examples. I was able to do it with...

    Thanks for the examples. I was able to do it with the while statement too, so I just kept it that way. I had the same exact idea in my head from looking at your examples, but I was missing the...
  9. Replies
    11
    Views
    9,522

    Ok, I guess I need to re-write my question. ...

    Ok, I guess I need to re-write my question.

    This is a program which would ask for user input. So how would I know how much of each bill and coin would be needed to give out to the customer? How...
  10. Replies
    11
    Views
    9,522

    Did you even read my whole post or looked at my...

    Did you even read my whole post or looked at my code? I'm not asking how to get change from a $20 bill. I'm asking how I would go about printing the amount of each bill and coins needed to give out...
  11. Replies
    11
    Views
    9,522

    Determing the amount of change(money)

    The output of the program should look like this:



    I was able to get the inputs to work correctly by using if and else statements. The part I'm having trouble with is how to determine and print...
  12. Replies
    8
    Views
    2,487

    I do know I need good indentations, my professor...

    I do know I need good indentations, my professor wants it that way. I intended to do that right before turning it in. It's just the way I have been doing things. Also, I was in a rush at the time of...
  13. Replies
    8
    Views
    2,487

    I was asking about the problem, not the...

    I was asking about the problem, not the format/indentations.

    Thanks for tips anyways.
  14. Replies
    8
    Views
    2,487

    Loop and standard deviation problem

    I get an undefined error when compiling this. Everything else works when I take out the standard deviation, but I get the error when I put it back in.

    I also need help with the user input. My...
Results 1 to 14 of 15