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...
Type: Posts; User: Kyeong
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...
This is another GCD program. Everything is working correctly besides validating the inputs correctly.
My goal:
Here's the code:
#include <stdio.h>
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.
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...
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()...
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.
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...
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...
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...
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...
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...
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...
I was asking about the problem, not the format/indentations.
Thanks for tips anyways.
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...