Well I posted that post pre-maturly I found the error. But the auctions are not adding up?
Type: Posts; User: calis1621
Well I posted that post pre-maturly I found the error. But the auctions are not adding up?
I'm getting a segmentation fault:11 after I run the code. I'm new to programming and not sure what the fault is. Any help would be appreciated.
My code is:
# include <stdio.h>
# include...
Yes you are correct about the investments. These are the what the option choices are.
Option 1:
Prompt the user for their donation amount. Add this amount to the balance of the fund.
Option...
Heres what a sample run should be...
Welcome!
What is the initial balance of the fund?
15000
What would you like to do?
1 - Make a donation
2 - Make an...
Hey I'm working on this program and the last thing I need to do is in case 3, adding how many investments would be made and how many donations would have been made. How do I do that?
int...
Well now I'm confused again. Checking the funds with:
if funds > PREFERRED_DISTRIBUTION_MINIMUM_FUNDS_REQUIRED
award preferred counts of BEST and MEDIUM
award as many scholarships...
Okay, this is working but I'm still not knowing how to only have 5 1000 10 500 and the rest of the funds go to 250. When i was dividing the 5000 it was working that way and only putting 5000 in...
No problem about the else. But I'm so close to this working 100%, I think. Right now the code that I have seems to just not do the equation for the 250 right. It will put the amount in 1000 and the...
[QUOTE=MutantJohn;1177344]You need to use else statements too. Did you know that if 123 > 100, it is also greater than 50 and 25?
So just write like this instead :
if ( ) {
/* Pro code...
I'm not sure what you mean by this. I'm new to programming and this is only the 3rd program I've done. I feel like I may be complicating it more then it needs to be. :frown:
I'm getting stuck with this problem. Which I'm sure will end up being a duh moment, but I'm stuck. I have also seen other people post the same problem and I could correct how they have it but I would...