作业帮 > 综合 > 作业

请大神们看看这两道c语言题

来源:学生作业帮 编辑:拍题作业网作业帮 分类:综合作业 时间:2024/04/26 04:03:42
请大神们看看这两道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语言

#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;
}
第一题
再问: 谢谢大神!~^ ^在帮我看看第二题吧~~