Balloon Code
#include <stdio.h> #include <math.h> #define PI 3.141593 #define FILENAME "data.txt" int main(void) { /* Declare variables. */ double t; double inc_time; double altitude, velocity; int x =0; int i; int end, start, status; float al, vel; char m; printf("Enter start time (hrs) and end time\n "); scanf(" %i %i", &start, &end); printf("Enter time increment \n"); scanf(" %lf",&inc_time); while (start >48 || start<0 || end<0|| (end<=start) || end>48 || inc_time>48){ printf("Error: Please input within range 0-48 hrs, and endtime>starttime) \n"); printf("Enter start time (hrs) and end time\n "); scanf(" %i %i", &start, &end); printf("Enter time increment \n"); scanf(" %lf",&inc_time); } FILE *data; /* Open output file. */ data = fopen(FILENAME,"w...