用cobol语言解答从第一个文件进,从另一个文件出 115
ALPHADEPARTMENTSTOREPAGE1PAYROLLFORTHEWEEKOF10/26/2011DEPARTMENT-01TERRITORY-01EMPLOY...
A L P H A D E P A R T M E N T S T O R E PAGE 1
PAYROLL FOR THE WEEK OF 10/26/2011
DEPARTMENT - 01
TERRITORY - 01
EMPLOYEE NUMBER EMPLOYEE NAME ANNUAL SALARY
001 PAUL NEWMAN $31,000.00
005 ROBERT REDFORD $42,000.00
TOTAL SALARY FOR TERRITORY IS $73,000.00
A L P H A D E P A R T M E N T S T O R E PAGE 2
PAYROLL FOR THE WEEK OF 10/26/2011
DEPARTMENT - 01
TERRITORY - 02
EMPLOYEE NUMBER EMPLOYEE NAME ANNUAL SALARY
007 DIANA ROSS $41,000.00
009 BILL SMITH $15,000.00
TOTAL SALARY FOR TERRITORY IS $56,000.00
TOTAL SALARY FOR DEPARTMENT IS $129,000.00
A L P H A D E P A R T M E N T S T O R E PAGE 3
PAYROLL FOR THE WEEK OF 10/26/2011
DEPARTMENT - 02
TERRITORY - 07
EMPLOYEE NUMBER EMPLOYEE NAME ANNUAL SALARY
023 JOHN DOE $27,000.00
036 JOHN BROWN $52,000.00
TOTAL SALARY FOR TERRITORY IS $79,000.00
TOTAL SALARY FOR DEPARTMENT IS $79,000.00
A L P H A D E P A R T M E N T S T O R E PAGE 4
PAYROLL FOR THE WEEK OF 10/26/2011
DEPARTMENT - 03
TERRITORY - 09
EMPLOYEE NUMBER EMPLOYEE NAME ANNUAL SALARY
054 NANCY STERN $99,999.00
TOTAL SALARY FOR TERRITORY IS $99,999.00
TOTAL SALARY FOR DEPARTMENT IS $99,999.00
TOTAL OF ALL SALARIES IS $307,999.00
END OF REPORT
第二个文件
0101001PAUL NEWMAN 31000
0101005ROBERT REDFORD 42000
0102007DIANA ROSS 41000
0102009BILL SMITH 15000
0207023JOHN DOE 27000
0207036JOHN BROWN 52000
0309054NANCY STERN 99999
两个文件夹整合,第二个文件夹中得如0101001是员工编号,PAUL NEWMAN 是员工名称,31000是年薪急求 从第二个文件进,第一个文件出,急求!!! 展开
PAYROLL FOR THE WEEK OF 10/26/2011
DEPARTMENT - 01
TERRITORY - 01
EMPLOYEE NUMBER EMPLOYEE NAME ANNUAL SALARY
001 PAUL NEWMAN $31,000.00
005 ROBERT REDFORD $42,000.00
TOTAL SALARY FOR TERRITORY IS $73,000.00
A L P H A D E P A R T M E N T S T O R E PAGE 2
PAYROLL FOR THE WEEK OF 10/26/2011
DEPARTMENT - 01
TERRITORY - 02
EMPLOYEE NUMBER EMPLOYEE NAME ANNUAL SALARY
007 DIANA ROSS $41,000.00
009 BILL SMITH $15,000.00
TOTAL SALARY FOR TERRITORY IS $56,000.00
TOTAL SALARY FOR DEPARTMENT IS $129,000.00
A L P H A D E P A R T M E N T S T O R E PAGE 3
PAYROLL FOR THE WEEK OF 10/26/2011
DEPARTMENT - 02
TERRITORY - 07
EMPLOYEE NUMBER EMPLOYEE NAME ANNUAL SALARY
023 JOHN DOE $27,000.00
036 JOHN BROWN $52,000.00
TOTAL SALARY FOR TERRITORY IS $79,000.00
TOTAL SALARY FOR DEPARTMENT IS $79,000.00
A L P H A D E P A R T M E N T S T O R E PAGE 4
PAYROLL FOR THE WEEK OF 10/26/2011
DEPARTMENT - 03
TERRITORY - 09
EMPLOYEE NUMBER EMPLOYEE NAME ANNUAL SALARY
054 NANCY STERN $99,999.00
TOTAL SALARY FOR TERRITORY IS $99,999.00
TOTAL SALARY FOR DEPARTMENT IS $99,999.00
TOTAL OF ALL SALARIES IS $307,999.00
END OF REPORT
第二个文件
0101001PAUL NEWMAN 31000
0101005ROBERT REDFORD 42000
0102007DIANA ROSS 41000
0102009BILL SMITH 15000
0207023JOHN DOE 27000
0207036JOHN BROWN 52000
0309054NANCY STERN 99999
两个文件夹整合,第二个文件夹中得如0101001是员工编号,PAUL NEWMAN 是员工名称,31000是年薪急求 从第二个文件进,第一个文件出,急求!!! 展开
5个回答
展开全部
最近公司没啥事情,在学cobol.刚起步,看你的问题应该不难,我在探究几天看能不能回答你。
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
展开全部
不懂,要做对日的cobol项目了。刚学。上面的程序没看出个所以然来。
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
展开全部
你这写的有点乱呀,如果你能描述清楚你想要的式样,或许我能解决
追问
具体的我也没有看懂,是英文的题目。。。,大概就是从一个文件夹到另一个文件夹,前面一堆是第一个文件夹,后面是第二个
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
展开全部
有点乱,看着费劲!
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
展开全部
你的问题是否要实现如下功能:从第二个文件读入记录,根据不同的部门下的TERRITORY,计算出它的总的年薪,然后写入第一个文件?如需帮助请qq463990323
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询