Never mind!
I got it. I don't even know what I did, but it works now.
I did set the avg profit to float. Maybe that was it.
thanks for your help
Type: Posts; User: scoketboy
Never mind!
I got it. I don't even know what I did, but it works now.
I did set the avg profit to float. Maybe that was it.
thanks for your help
Do you have to float things that will be using a decimal number even if the output isn't a decimal?
All of the correct outputs are integers except for average profit. So I will need to change that, but that shouldn't affect the other outputs
This is what the output is supposed to be ...
Ok here is my program
/*
Project 5 solution
11/14/2005
by Phil Pliuskonis
*/
Exactly what i am looking for. Thanks. :D
I think I need to start looking for other resources for coding (like the main part of this site) because I was going off of my book and it did not have...
Hi,
this is a school assignment and I am stuck.
I have 3 one dimensional arrays, I think 2 dimensional might be easier, but this is what the assignment calls for.
Now what I have is this:
...
Wow perfect. Thank you very much. I could have sworn that I had already tried that, but that must have been when I still had them declared under int, and not float.
Thanks again :)
Sorry am I missing something? I thought they were stored in float(s)?
Or am I just not seeing it?
Hi, this is only the second program I have ever done in C. It is for my college class, and it is driving me crazy. I think I got it all right, but for some reason on the first two imputs, it acts...