Forum: C Apr 30th, 2006 |
| Replies: 1 Views: 2,660 Hi - The assignment is to write a C program that prompts the user to enter a line of text up to 69 chars, then convert the text to upper and lower case. The program is required to use pointer... |
Forum: C Oct 17th, 2005 |
| Replies: 7 Views: 1,974 [/I]
!I understand what you are saying however the instructor was clear that he wanted us to use the fflush statement after every scanf statement in this program. If I remove it I will lose... |
Forum: C Oct 17th, 2005 |
| Replies: 7 Views: 1,974 Nevermind about my follow up question regarding decimal places. I have figured it out! Thanks so much for the help.....:-) |
Forum: C Oct 17th, 2005 |
| Replies: 7 Views: 1,974 [QUOTE=Dave Sinkula]This is not a valid format specifier:scanf ("%.2f", &number_gallons);Just use %f.
Thanks so much for the help! I set it to be just %f and it worked. EXCEPT, my instructors'... |
Forum: C Oct 16th, 2005 |
| Replies: 7 Views: 1,974 I only get a result of "1.00" for each mileage calc and also for the overall average, regardless of numbers input. Can anyone see where the problem(s) is in my program below? Thanks in advance!
... |