| 网站首页 | 业界新闻 | 小组 | 威客 | 人才 | 下载频道 | 博客 | 代码贴 | 在线编程 | 编程论坛
欢迎加入我们,一同切磋技术
用户名:   
 
密 码:  
共有 634 人关注过本帖
标题:想测试下你的英文吗?看你能否解决这些编程 想挑战的进来
取消只看楼主 加入收藏
wu47589791
Rank: 1
等 级:新手上路
帖 子:7
专家分:0
注 册:2009-10-12
结帖率:66.67%
收藏
已结贴  问题点数:20 回复次数:3 
想测试下你的英文吗?看你能否解决这些编程 想挑战的进来
a) The conversion ratios are predefined and stored in variables of the type
double. For example:
double FtoM = 0.3048; // Ratio for converting feet into meter
double MtoKM = 1.852; // Ratio for converting mile into kilometer

b) User inputs a conversion request which consists of a code representing the
type of conversion and an amount to be converted.
For example: 1 2000 represents a request to convert 2,000 feet into its
equivalence in meters.

c) Your program will perform the conversion based on the predefined ratios and
prints the converted amount (to 2 decimal places) on the screen.

提示:
最终输入 : 1 2000  会显示609.60


挑战成功继续追加问题

[ 本帖最后由 wu47589791 于 2009-10-12 00:24 编辑 ]
搜索更多相关主题的帖子: 英文 挑战 
2009-10-12 00:23
wu47589791
Rank: 1
等 级:新手上路
帖 子:7
专家分:0
注 册:2009-10-12
收藏
得分:0 
以下是引用flyingcloude在2009-10-12 00:48:35的发言:

printf("%.2lf\n",2000*0.3048);
?
你还没写完吧?
请详细点
2009-10-12 00:54
wu47589791
Rank: 1
等 级:新手上路
帖 子:7
专家分:0
注 册:2009-10-12
收藏
得分:0 
以下是引用flyingcloude在2009-10-12 01:00:44的发言:

网络真卡,不小心就发了这么多
哈哈..
你最好全部写出来...因为接下来的问题要用到的阿。。
#include<stdio.h>
...
..
.
2009-10-12 01:04
wu47589791
Rank: 1
等 级:新手上路
帖 子:7
专家分:0
注 册:2009-10-12
收藏
得分:0 
接连还有3 4个问题给你挑战  要一步一步来
2009-10-12 01:06
快速回复:想测试下你的英文吗?看你能否解决这些编程 想挑战的进来
数据加载中...
 
   



关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.012206 second(s), 8 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved