Thursday
May 23, 2013

Posts by gnozahs


Total # Posts: 48

C Programming
Also, what do you mean by set maxHeight to -1000; ?

C Programming
Ok, I changed all my floats to double floats and changed my scanfs to read in double floats. I'm looking at the code you posted and I have a question. What would go into "time"? Like when you say time=staringtime; time<=endingtime; Declare additional variables...

C Programming
I remember my instructor telling us that we couldn't use a for loop to create the table because for loops must use integers, and for us to use a while loop since the starting time, time increment, and ending time are floating point numbers, and not integers.

C Programming
I don't know what to do now. Below is my code I have so far but I have no idea what to do next. Here's the prompt for what the program should do: Welcome to the Weather Balloon Altitude and Velocity Program. Enter the Balloon's Starting Time: 1 Enter the Time Incre...

C Programming
Ah! Thanks. When I was doing my if and while statements, I kept doing (heading < 0.0 || > 360.0) and kept wondering why it wasn't working. It needs to be while (heading <= 0.0 || heading > 360.0);

C Programming
Hmm, code was too long for the post? Here's a second try. /* Directives */ #include <stdio.h> int main(void) { double heading; /*compass heading in degrees*/ /* Get compass heading */ printf("Enter a Compass Heading: "); scanf("%lf", &heading); /*...

C Programming
How do you reprompt after the user inputs a wrong number into the program in C Programming? Loop structure? i.e. I want my code to do this: Enter a Compass Heading: 500.7 Please Input a Compass Heading between 0 and 360 Degrees. Enter a Compass Heading: 360.0 If the user puts ...

C Programming
Yeah! I keep forgetting to write comments for each part of my code. But I'll make sure I write up good comments for the code.

C Programming
Yes, I have learned the if else statements. I made another switch statement within the first switch statement to account for the F to F and C to C and that did the trick. Thanks.

C Programming
MathMate was helping me with it the other day. Everything works correctly except for when I convert it from Celsius to Celsius (same thing), I'm wondering how I would make a code to make it output the same input number since it's going to be the same temperature.

Pages: 1 | 2 | 3 | 4 | 5 | Next>>

For Further Reading

Search
Members
Community