请大神们看看这两道c语言题题目一Velocity = 0.00001 * time3 - 0.00488 * time2 +0.75795 * time + 181.3566Acceleration = 3 - 0.000062 * velocity23.Discuss about how many bits are used in exponent part and fraction part of data type float.N

来源:学生作业帮助网 编辑:六六作业网 时间:2024/11/17 16:47:24
请大神们看看这两道c语言题题目一Velocity=0.00001*time3-0.00488*time2+0.75795*time+181.3566Acceleration=3-0.000062*ve

请大神们看看这两道c语言题题目一Velocity = 0.00001 * time3 - 0.00488 * time2 +0.75795 * time + 181.3566Acceleration = 3 - 0.000062 * velocity23.Discuss about how many bits are used in exponent part and fraction part of data type float.N
请大神们看看这两道c语言题
题目一Velocity = 0.00001 * time3 - 0.00488 * time2 +0.75795 * time + 181.3566Acceleration = 3 - 0.000062 * velocity23.Discuss about how many bits are used in exponent part and fraction part of data type float.Note.you can use comments to answer Q2 and Q3.
因为本人刚开始学c语言

请大神们看看这两道c语言题题目一Velocity = 0.00001 * time3 - 0.00488 * time2 +0.75795 * time + 181.3566Acceleration = 3 - 0.000062 * velocity23.Discuss about how many bits are used in exponent part and fraction part of data type float.N
#include
int main()
{
double tim, Velocity, Acceleration;
printf("Enter new time value in seconds: \n");
scanf("%lf", &tim);
/* Compute Velocity and acceleration */
Velocity = 0.00001 * tim - 0.00488 * tim +0.75795 * tim + 181.3566;
Acceleration = 3.0 - 0.000062 * Velocity;
printf("Velocity = %.3lf m/s\n", Velocity);
printf("Acceleration =%.3lf m/s\n", Acceleration);
return 0;
}
第一题