帮忙做三道cobol题

jjstar 2004-07-29 01:46:43
1
A1_Main.CBL
a main program which displays a main menu to the user,prompts then to chose a menu option,and performs the required activities by invoking one or more of the sub-programs below.

2
Cust-Add.CBL
a sub-program which makes sure that the CUSTOMER.DAT file exists (and creates it if it doesn't exist),determinesthe highest Customer-ID used so far in the CUSTOMER.DAT file and increments this by 1,and then prompts the user to enter the customer's details.All input data should be validated,the user should be able to confirm the data,and when this occurs,the customer data should be appended to the CUSTOMER.DAT file.A success message should be displayed to the user,and then they should then be returned to the main menu.

3
Cust-Sel.CBL
a sub-program which loads all of the data from the CUSTOMER.DAT into an array,and then allows the user to view this data and select a customer.The program should cater for many pages of data)or back to a previous page(if they aren't already on the first page of data)or back to a previous page(if they aren't already on the first page of data). In addition,the user should be able to quit without selecting a customer.If the user selects a customer,then this should be returned to the calling program.
...全文
144 5 打赏 收藏 转发到动态 举报
写回复
用AI写文章
5 条回复
切换为时间正序
请发表友善的回复…
发表回复
litail 2004-08-08
  • 打赏
  • 举报
回复
up,真可惜我不会
yxg3529 2004-08-05
  • 打赏
  • 举报
回复
你英文这么好,还不会这写COBOL就象写英文句子一样,但却比较繁!chose a menu option,简单把,然后定义 A WRITE FILE 和 A READ FILE,利用对数据库的五部操作,把记录WRITE TO DB,然后就简单了把>
sinkinka 2004-08-04
  • 打赏
  • 举报
回复
DB->File
File->DB
It's easy!
得到数据后用WRITE写进指定的目录文件就行了
另外一个是READ
学习COBOL的基本操作
自己看看就会了
klbt 2004-07-31
  • 打赏
  • 举报
回复
英文不好,帮你up.
ttlb 2004-07-29
  • 打赏
  • 举报
回复
up

3,424

社区成员

发帖
与我相关
我的任务
社区描述
其他开发语言 其他开发语言
社区管理员
  • 其他开发语言社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧