![](https://csdnimg.cn/release/download_crawler_static/86355467/bg1.jpg)
需求分析报告
1 引言
� 编写目的(阐明编写需求分析报告的目的)
- 完成 CS 1B Programming Assignment #2
� 名词解释(列出文档中所用到的专门术语的定义和缩写词的原文。)
- TestCelluarData: 测试类
- CellularData:主类
- Programming Style: 在 sysllbus 内规定程序规则
2 任务概述
� 目标
叙述该项软件开发的意图、应用目标、作用范围以及该软件的背景资料。解释被开
发软件与其他有关软件之间的关系。如果本软件是一个独立的软件,而且全部内容
自含,则说明这一点。如果定义的产品是一个更大系统的一个组成部分,则应说明
本产品与该系统中其他各组成部分之间的关系。
CellularData 类:
1. 有 2 维数组 table(NS(number of suscrptions for a specific year),
country(#))
2. 每一个类里有数组存储 country 名: 数组(country name)
3. 年份必须单独贮存,数组(year)
4. Constructor 方法(country number, subscriptions number, 起始年份)
a) 创建数组 table
b) 创建数组 country name
c) 创建数组 year num
5. 方 法 GetNumSubscriptionsInCountryForPeriod(,,): 求 和 (start
year, end year)
a) 当年份有问题时: 1). 显示警告 2).求和在给入可用范围内所有数(如没有任
评论0