Thank you :)
Type: Posts; User: paulntysmom
Thank you :)
Answered Thanks
Thanks everyone for all your help. I finally understand functions :)
This is what I have fixed now, everything seems to work (name and correct message gets displayed) so I am assuming I finally did it right?
#include <stdio.h>
void print_comment (float amount,...
Ok I updated the my code which is above in my previous post (the second code I posted, sorry didn't know I wasn't suppose to that) with my most recent change to the code. I only have one function in...
Still confused and I have no clue why?? Can you maybe give me an example where I used the void print_comment (float amount); and show me how it suppose to be set up in my code? Then I might be able...
I re-read your post many times the problem is I don't understand what I am doing wrong??? :( I am so lost. Will I ever get this?
Newest update to code
#include <stdio.h>
void print_comment ( current_balance, first_name) //to print comment based on amount
{
printf ("*** The closing balance is $%.2f ***\n",...
Still trying to learn functions and I am not sure if I am doing it right. Can someone take a look at my code (Please) I added two functions into it. Did I do them right?
#include <stdio.h>...
Thanks for the link and I will definately read up on functions some more. For the first function I did I know I did it wrong, but I have no clue what I did wrong and how it's suppose to be right. ...
I am starting to learn functions now (self teaching) and I am really confused and lost. Although I have incorporated one function so far into my program, could someone give me an example of another...
Thanks swoopy :)
Thank you :) question answered.
Ok from everyones help. I should be writing it like this?
/*If balance goes to zero, no more withdrawals should be made*/
...
I actually updated it to this before even seeing your post, after reading more in the four books I have. Trying to self teach myself.
you should probably use the comparison ==, not the assignment...
I want it that if the withdrawal amount exceeds the current balance (including new deposits) it should output the following " Withdrawal amount exceeds current balance, it should then reprompt the...
I have this whole program working except for the following:
If the current balance goes to zero, then no more withdrawals should be made and it should output a message " Sorry you have no money to...
Thank you :) That clears it up for me :)
Question:
What is the fundamental difference between the do loop and the while loop?
Thanks :)
Thank you so much :) I now understand what I was missing. I am happy to know I was almost there. It's all still a learning process for me. I am a newbie, but hope to someday become a programmer. I...
ok I am confused??? Sorry I am a newbie trying to teach myself.
You want to save gallons_used rather then total_gal and total_miles
The average at the end will be gallons_used/3.0
So I...
Thanks for the help :) I set the total_miles to 0 but I am still coming up with 26.2 instead of the required 21.5??? Any idea's why?
I have been working on this one program for 3 weeks now and can't figure out for the life of me what I am doing wrong.
I can't calculate the overall average for (total miles divided by total...
Thank you crazedbrit I finally got it to work :) I appreciate everyones help :)
I just got your pm and I think I know what I am doing wrong now :) I will work on it and let you know :)