c语言编程题目求大神帮 急求

WriteaprogramthatconvertsauserenteredtemperatureinFahrenheittoCelsiusincorporatingthr... Write a program that converts a user entered temperature in Fahrenheit to Celsius incorporating three modules and functions named as identified below. The user entered Fahrenheit temperature is to be passed as an argument to the function named convert( ) in the module "conversion.c". The calculated Celsius value is to be return by the function and the result displayed to the user in the function main( ) :

convert_driver.c - contains the function main( ) and the user interface
conversion.h - contains the prototype for a function named convert( )
convertsion.c - contains the function definition for convert( )
展开
 我来答
smile一路清新
2016-08-23 · TA获得超过595个赞
知道小有建树答主
回答量:493
采纳率:33%
帮助的人:50.5万
展开全部
convert_driver.c
#include "conversion.h"

void mian(void)
{
float temp_fah;
scanf("%fd "&temp_fah);
printf("Celsius
is %fd",temp_fah_to_celsius(tem_fah));

}
////////////////////////////////////////////////////////////////////////

conversion.h
#include <stdio.h>
#include <string.h>
float temp_fah_to_celsius(float valum);
///////////////////////////////////////////////////////////////

convertsion.c

float temp_fah_to_celsius(float valum)
{
return (valum - 32) / 1.8
}
推荐律师服务: 若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询

为你推荐:

下载百度知道APP,抢鲜体验
使用百度知道APP,立即抢鲜体验。你的手机镜头里或许有别人想知道的答案。
扫描二维码下载
×

类别

我们会通过消息、邮箱等方式尽快将举报结果通知您。

说明

0/200

提交
取消

辅 助

模 式