HW day 11 10/4/2018 1 Write a program that will print a table of the altitude and the velocity for this weather balloon using units of meters and meters per second. Let the user enter the start time, the increment in time between lines of the table, and the ending time, where all the time values must be less than 48 hours. Use the program to generate a table showing the weather balloon information every 10 minutes over a 2-hour period, starting 4 hours after the balloon was launched. #include<stdio.h> #include<math.h> int main(void) { // declare the variables double ini_time, inc_time, Ed_time, time, h, v; // for question 2 double max_h=0, max_time=0; do{ // read the input printf(" \nEnter the values of the table \n"); printf("\n Enter start time \n"); scanf("%lf",&ini_time); printf(" Enter incresement time \n"); scanf("%lf",&inc_time); printf(" Enter ending time \n...
Comments
Post a Comment