请做我的作业-用C语言进行简单的公式计算 [英] Please do my homework - Simple formula computation in C language

查看:117
本文介绍了请做我的作业-用C语言进行简单的公式计算的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

编写一个程序,将地球内部的深度(以千米为单位)作为输入
数据;以摄氏度和华氏度为单位计算并显示该深度的温度.
相关公式为

Write a program to take a depth ( in kilometers) inside the earth as input
data; compute and display the temperature at this depth in Celsius and Fahrenheit degrees.
The relevant formulas are

Celsius = 10 (depth) + 20 ( celsius temperature at depth in km)
Fahrenheit= 1.8 ( celsius) +32


在程序中包括两个功能.功能celsius_at_depth应该
计算并返回在
中测得的深度处的摄氏温度 公里.
函数fahrenheit_at_depth应将摄氏度转换为


Include two functions in your program. Fuction celsius_at_depth should
compute and return the Celsius temperature at depth measured in
kilometers.
Function fahrenheit_at_depth should convert a Celsius
temperature to Fahrenheit.

推荐答案

我们仅在特定问题上提供帮助(即,您应该自己做家庭作业).

We help just on specific questions (i.e. you should do yourself your own homework).

viplantern写道:
viplantern wrote:

函数 fahrenheit_at_depth 应该转换为摄氏温度
温度达到华氏温度.

Function fahrenheit_at_depth should convert a Celsius
temperature to Fahrenheit.


将摄氏温度转换为华氏温度的函数的奇怪名称.
:)


Strange name for a function converting Celsius to Fahrenheit.
:)


这篇关于请做我的作业-用C语言进行简单的公式计算的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆