| 网站首页 | 业界新闻 | 小组 | 威客 | 人才 | 下载频道 | 博客 | 代码贴 | 在线编程 | 编程论坛
欢迎加入我们,一同切磋技术
用户名:   
 
密 码:  
共有 1463 人关注过本帖
标题:求教各位大侠:一个刚入美国大学的研究生的作业题,急!
只看楼主 加入收藏
Amylin
Rank: 1
等 级:新手上路
帖 子:1
专家分:0
注 册:2009-8-31
结帖率:0
收藏
已结贴  问题点数:30 回复次数:10 
求教各位大侠:一个刚入美国大学的研究生的作业题,急!
Homework Assignment 1
This assignment uses the workbook:  Assignment 1.xlsm
Date    Brazil Real    Australian Dollar    Euro    Bristish Pound    Mexican Peso    Canadian Dollar    Swiss Franc    Japanese Yen
6/23/2009    0.492          0.786           1.387    1.635               0.075         0.866                   0.921    0.010
6/24/2009    0.505          0.794           1.408    1.646               0.075         0.870                   0.937    0.011
6/25/2009    0.507          0.797           1.393    1.641               0.075         0.864                   0.911    0.010
6/26/2009    0.515          0.803           1.399    1.637               0.076         0.866                   0.914    0.010
6/29/2009    0.516          0.808           1.406    1.653                0.076        0.868                   0.923    0.011
6/30/2009    0.511          0.808           1.408    1.657                0.076        0.865                   0.924    0.010
7/1/2009    0.512           0.806           1.403    1.646                0.076        0.860                   0.921    0.010
7/2/2009    0.517           0.808           1.414    1.648                0.076        0.870                   0.930    0.010
7/3/2009    0.511           0.794           1.400    1.639                0.075        0.860                   0.922    0.010
7/6/2009    0.512           0.797           1.398    1.633                0.076        0.862                   0.920    0.010
7/7/2009    0.512           0.798           1.398    1.629                 0.076       0.863                   0.922    0.010
7/8/2009    0.501          0.789             1.392    1.614               0.075        0.857                   0.918    0.011
7/9/2009    0.499          0.779             1.388    1.607               0.074        0.857                   0.917    0.011
7/10/2009    0.498          0.783            1.402    1.634               0.074        0.860                   0.927    0.011
7/13/2009    0.501          0.779            1.394    1.621               0.073        0.859                   0.920    0.011
7/14/2009    0.506          0.783            1.398    1.623               0.073        0.869                   0.923    0.011
7/15/2009    0.510          0.793            1.397    1.631               0.073        0.883                   0.918    0.011
7/16/2009    0.517          0.803            1.411    1.642               0.074        0.899                   0.931    0.011
7/17/2009    0.518          0.806            1.415    1.644                0.074       0.895                   0.932    0.011
7/20/2009    0.519          0.802           1.410    1.634                0.075        0.898                   0.929    0.011
7/21/2009    0.526          0.817             1.423    1.655              0.075        0.904                   0.936    0.011
7/22/2009    0.527           0.818            1.423    1.646              0.075        0.906                   0.938    0.011
Here we have one month’s worth of data giving the price of 1 unit of a foreign currency in dollars.  For example, on June 23, 2009, one Euro cost 1.387 dollars.
You should write the VBA code (DO NOT DO THIS DIRECTLY IN EXCEL; YOU MUST DEVELOP VBA CODE) to do the following:
1.     Generate a column that has the sum of the foreign currency values for that row.  That is, it will tell you what it would cost in dollars to buy one unit of each of these currencies.
2.     Generate a row at the end of the data giving an average of the values of each currency for the month.  Thus, each currency will have an average value displaying.  Also calculate the average of the Sum column.
3.     Then, ask the user to enter the number of units of currency they want to buy.  Your code should calculate the product of the number of units they specify and the monthly average of all currencies.  You will then print out:
“To purchase ____ units of each foreign currency will cost you, on average, ______ dollars.”  The blanks here should have the appropriate numbers.
If the user enters a negative number then the program should print “You must enter a positive number of units” and NOT do a calculation.
After you have finished this code, add 2 buttons, one that runs the macro to add the information described, and one that clears out the data you have added.
Check that your code contains:
DIM statements with appropriate variables.
Comments to explain what is happening.
Appropriate loops.
A conditional statement.
A request for user input.
Statements that print to the Excel spreadsheet.
You may choose to use an array.

Have fun!
搜索更多相关主题的帖子: 美国 作业 研究生 大学 
2009-08-31 21:15
logan0279
Rank: 1
来 自:中州
等 级:新手上路
威 望:1
帖 子:15
专家分:6
注 册:2009-1-12
收藏
得分:6 
看不懂洋文。

希望与您一起学习、交流、进步!
2009-09-02 12:03
zhuiis
Rank: 4
等 级:业余侠客
威 望:1
帖 子:201
专家分:286
注 册:2008-11-8
收藏
得分:6 
这个洋文水平,在国内可你已达到最高境界了,我不懂!……
2009-09-03 13:56
wei855198
Rank: 8Rank: 8
等 级:蝙蝠侠
威 望:5
帖 子:228
专家分:944
注 册:2009-4-24
收藏
得分:6 
建议楼主直接把你的问题翻译成中文再发贴,
呵呵,也许问题还没有英文难解决。

护肤小店 http://mina2010.
靓装小店 http://liangliyizu2010.
2009-09-03 15:03
行者买刀
Rank: 2
等 级:新手上路
威 望:3
帖 子:116
专家分:6
注 册:2007-6-25
收藏
得分:6 
    洋文看起来吃力呀

2009-09-03 16:35
行者买刀
Rank: 2
等 级:新手上路
威 望:3
帖 子:116
专家分:6
注 册:2007-6-25
收藏
得分:0 
    洋文看起来吃力呀

2009-09-03 16:35
jack_xu2046
Rank: 2
等 级:论坛游民
帖 子:72
专家分:11
注 册:2008-10-1
收藏
得分:6 
题目意思大概这样:
Excel中列出了一个月中每天美元跟其它货币的汇率。
叫你用VBA写段代码
1:添加一列 算出每天所有货币的总和
2:添加一行 算出一个月内每一种货币的平均值
添加两按钮,一按钮运行宏 实现上面结果 然后跳出对话框 提示用户输入一数量这数量必须是正数
否则会提示“You must enter a positive number of units”
正常运行后就把运行结果 "数量*平均值" 显示在下面横线处。“To purchase ____ units of each foreign currency will cost you, on average, ______ dollars.”
不知楼主是不是这意思

菜鸟中的菜鸟
2009-09-05 01:28
yuning017
Rank: 1
等 级:新手上路
帖 子:12
专家分:6
注 册:2009-9-11
收藏
得分:0 
貌似这跟研究生作业没关系...
貌似除了是英语写的以外  是个人都能搞定..
2009-09-24 10:01
bczgvip
Rank: 14Rank: 14Rank: 14Rank: 14
等 级:贵宾
威 望:66
帖 子:1310
专家分:5312
注 册:2009-2-26
收藏
得分:0 
他要求用VBA 写,你转来这里干啥咧.!~
2009-09-25 05:04
suxin868
Rank: 4
等 级:业余侠客
威 望:1
帖 子:145
专家分:203
注 册:2008-12-31
收藏
得分:0 
    死了

--------------当你无力改变这个世界的时候,就让这个世界改变你-------------------
2009-09-25 12:31
快速回复:求教各位大侠:一个刚入美国大学的研究生的作业题,急!
数据加载中...
 
   



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

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