dvbbs
收藏本页
联系我们
论坛帮助
dvbbs

>> Fortran语言使用经验交流
搜一搜更多此类问题 
Fortran中文网Fortran中文网—Fortran语言经验交流Fortran语言使用经验交流 → [求助]各位大哥帮忙看看程序怎么写,急着要交

您是本帖的第 3226 个阅读者
树形 打印
标题:
[求助]各位大哥帮忙看看程序怎么写,急着要交
hynm2011
帅哥哟,离线,有人找我吗?
等级:新手上路
文章:3
积分:255
门派:无门无派
注册:2011年9月28日
楼主
 用支付宝给hynm2011付款或购买其商品,支付宝交易免手续费、安全、快捷! 点击这里发送电子邮件给hynm2011

发贴心情
[求助]各位大哥帮忙看看程序怎么写,急着要交
跪求各位大哥帮忙看看程序怎么写,小弟要交,不然这学期这门课就过不了
ip地址已设置保密
2011/10/23 9:07:52
hynm2011
帅哥哟,离线,有人找我吗?
等级:新手上路
文章:3
积分:255
门派:无门无派
注册:2011年9月28日
2
 用支付宝给hynm2011付款或购买其商品,支付宝交易免手续费、安全、快捷! 点击这里发送电子邮件给hynm2011

发贴心情
Key Concepts: file output, formatting

One model of population growth gives the current population, P, in terms of an initial population P0, a constant k, and a time t in years (measured from t = 0, when P0 was measured). The equation for this model is as follows:

P = P0ekt

This model reasonably estimated the U.S. population from 1790 to 1860 with k = 0.0298. The 1790 population was 3.9 million.

Your task is to write a program to generate a .csv file that has a line for each year the above model can reasonably estimate. Each line should have the year, a comma, and the estimated population in that year formatted with three decimal places. The first few lines should look like this:

1790,      3.900
1791,      4.018
1792,      4.140
1793,      4.265
1794,      4.394
1795,      4.527

Once you've successfully generated this file, wirte fortran code to generate a graph of the data. The graph should be properly labeled.

Then change the program to generate a second CSV file and generate a new graph. This time, change the 1790 population to a value of your choosing and change the growth constant to -0.03.

Report

Prepare a report with the following sections (use the headings provided and add more sections in the same style as necessary):

·         Code

·         Original output file

·         Graph from the original file

·         Second output file

·         Graph for the second file

先帮忙看看这个,星期一要交,跪求各位大侠

ip地址已设置保密
2011/10/23 9:42:47

 2   2   1/1页      1    
网上贸易 创造奇迹! 阿里巴巴 Alibaba
Powered By Dvbbs Version 7.1.0 Sp1
Copyright ©2005 - 2008 www.fortran.cn
页面执行时间 0.04688 秒, 3 次数据查询
京ICP备05056801号