




已阅读5页,还剩3页未读, 继续免费阅读
版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
responsible for the development of company management, including the development of settlement and settlement standards of preparation, the business unit clearing work inspection and guidance, business settlement audit; 23, is in charge of the company business and costs calculation and analysis of new projects and to develop standards and provide the basis for decision-making and responsible for the comprehensive economic and technical indicators and statistics, analysis, summary and reporting; 24, the company responsible for audits of various types of business contracts, the principal of contract price (purchase price, freight, taxes, etc), payment method, payment, settlement, such as the reasonableness of the data, authenticity, accuracy; 25, strict enforcement of national tax policy, is responsible for the monthly reporting, including tax calculations, statistics, go through the relevant formalities, receive invoices; 26, the company responsible for all kinds of price (including product price, material prices,Freight, engineering machinery jobs price, price, price) s terms of market surveys, quotations, price exception report; 27, is responsible for the companys management, including conference organized by price, of historical prices, totals, etc; 28, according to the annual operating plan, annual costs and undergo decomposition, control, analysis and evaluation; responsible for costing and cost control, ensure accounting number is reasonable, correct, and complete accounting report and the companys other reports compiled and reported to work; 西 安 邮 电 大 学 (计算机学院)课内实验报告实验名称: 员工工资管理系统 专业名称: 计算机科学与技术班 级: 计 科 1103 学生姓名: 武 杨学号(8位): 指导教师: 张荣实验日期: 2013-11-15 -2013-12月13日一. 实验目的及实验环境通过本实验,深刻体会面向对象程序设计的思想,应用面向对象的概念和技术,掌握用Java进行程序设计的方法。学习和使用Java常用类,学会使用Java类库尽可能代码复用。综合运用Java语言程序设计B课程所学内容, 学会将知识应用于实际的方法,提高分析和 解决问题的能力。利用文件永久存储和管理员工信息;项目名称:员工工资管理系统;项目使用者:员工管理员;员工;Win764位,IDE:Myeclipse8.5控制台应用程序二. 实验内容实现简单的员工工资管理系统,实现员工个人信息的录入,查询,删除,修改等基本操作,用文件永久存储信息;三方案设计利用控制台显示简单提示信息,文件存储在E:filewage.txt,文件采用一条信息一行存储(便与后续操作),1、 需要编写一个类wage类用来表示员工,员工属性主要有员工号WID,姓名WName,性别WSex,工资WPayprivate String WID;private String WName;private String WSex;private String WPay;2、文件操作: 文件输出流FileOutputStream实现文件的写操作,字符缓冲类BufferedReader实现读入写入数据的一个缓冲3、主要操作: 增加:实现员工个人信息的添加,用回车表示一项信息的完成代码如下:public void Add() throws IOException System.out.println(请输入WID,WName,WSex,WPay(以回车隔开);Scanner sreader = new Scanner(System.in);FileOutputStream fs = new FileOutputStream(E:filewage.txt, true);if (sreader.hasNext() RandomAccessFile randomFile = new RandomAccessFile(E:filewage.txt, rw);/ 文件长度,字节数long fileLength = randomFile.length();/ 将写文件指针移到文件尾。randomFile.seek(fileLength);randomFile.writeBytes(rn);randomFile.writeBytes(sreader.next();randomFile.writeBytes(t + sreader.next();randomFile.writeBytes(t + sreader.next();randomFile.writeBytes(t + sreader.next();randomFile.close();删除:输入员工号,删除这个员工号对应的员工信息修改:输入员工号,修改这个员工号对应的员工信息查询:输入员工号,显示这个员工号对应的员工信息代码如下:public void Search() throws IOException System.out.println(请输入员工的员工号);Scanner sreader = new Scanner(System.in);File file = new File(E:filewage.txt);BufferedReader reader = new BufferedReader(new FileReader(file);String q = sreader.next();int line1 = 0;String line2 = null;int flag=0;while (line2 = (reader.readLine() != null) String str = line2.split(t);if (pareTo(q) = 0) System.out.println(line2);flag=1; line1+;if(flag=0)System.out.println(不存在);4、写一个play()函数 实现简单的用户提示语:四测试数据及运行结果1 正常测试数据(3组)及的运行结果;运行程序添加员工信息12yyangmale300013 qiqing female 300014malechenchen2000添加信息20 yyang male 5000删除某个员工信息13号删除后的wage.txt修改某个员工信息12号改为17 wuyang female 5000修改后的wage.txt查询某个员工信息17号文件内容退出系统:2 非正常测试数据(2组)及运行结果。查询一个不存在的员工信息添加一个大数据五总结1实验过程中遇到的问题及解决办法;实验中在ADD方法中一直存在一个末尾添加不知道怎么换行,最后采用一个回车换行的方式,因为在每一次输入完成后都会回车,因此当接收到回车时在写文件时换行;BufferedWriter buff.newLine();实现写入换行,也就是些一个空行,由于误用造成了很大的困扰,老是出现莫名其妙的换行; 2对设计及调试过程的心得体会。实验总的来说还是蛮成功的,查阅了很多资料,有关流的知识,一开始晕晕乎乎的,用过几次后就稍微熟悉了,对流也有了一
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 家长开家长会发言稿14篇
- 山西省临汾市侯马市2024-2025学年八年级下学期7月期末考试数学试卷(含答案)
- 黑龙江省哈尔滨市六校2024-2025学年高一上学期期末联考化学试卷(含答案)
- 北师大版四年级上册数学期中检测题(无答案)
- 新能源汽车技术发展与市场趋势分析
- 广播电视安全播出工作总结
- “药”您健康知到智慧树答案
- “煎炒烹炸”与中药疗效知到智慧树答案
- T-CVMA 228-2025 普通级实验兔饲养管理规范
- 2025租房合同范本大全
- 《西红柿移栽和管理》课件
- 《肺癌早期筛查与干预》课件
- 完整的离婚协议书打印电子版(2025年版)
- 自然科学类博物馆AI应用行业跨境出海战略研究报告
- 《小学科学课程标准》解读与教学设计
- 2025届高考新型题目“纠正错别字”新题模拟练习
- 2024年江苏省南京市中考数学试卷真题(含答案逐题解析)
- 儿童保健工作规范和技术规范
- 2025年区块链应用操作员职业技能竞赛理论参考试指导题库500题(含答案)
- 福建地区 绿色食品琯溪蜜柚生产操作规程
- 民办学校教职工学年度考核方案模版(3篇)
评论
0/150
提交评论