欢迎来到得力文库 - 分享文档赚钱的网站! | 帮助中心 好文档才是您的得力助手!
得力文库 - 分享文档赚钱的网站
全部分类
  • 研究报告>
  • 管理文献>
  • 标准材料>
  • 技术资料>
  • 教育专区>
  • 应用文书>
  • 生活休闲>
  • 考试试题>
  • pptx模板>
  • 工商注册>
  • 期刊短文>
  • 图片设计>
  • ImageVerifierCode 换一换

    2021-2022收藏的精品资料C语言职工工资管理系统.doc

    • 资源ID:30706281       资源大小:779KB        全文页数:13页
    • 资源格式: DOC        下载积分:8金币
    快捷下载 游客一键下载
    会员登录下载
    微信登录下载
    三方登录下载: 微信开放平台登录   QQ登录  
    二维码
    微信扫一扫登录
    下载资源需要8金币
    邮箱/手机:
    温馨提示:
    快捷下载时,用户名和密码都是您填写的邮箱或者手机号,方便查询和重复下载(系统自动生成)。
    如填写123,账号就是123,密码也是123。
    支付方式: 支付宝    微信支付   
    验证码:   换一换

     
    账号:
    密码:
    验证码:   换一换
      忘记密码?
        
    友情提示
    2、PDF文件下载后,可能会被浏览器默认打开,此种情况可以点击浏览器菜单,保存网页到桌面,就可以正常下载了。
    3、本站不支持迅雷下载,请使用电脑自带的IE浏览器,或者360浏览器、谷歌浏览器下载即可。
    4、本站资源下载后的文档和图纸-无水印,预览文档经过压缩,下载后原文更清晰。
    5、试题试卷类文档,如果标题没有明确说明有答案则都视为没有答案,请知晓。

    2021-2022收藏的精品资料C语言职工工资管理系统.doc

    Building industry opens up new world of entrepreneurial struggle to build a three provinces of regional central cities-in the Communist x counties the six plenary session members and comrades: today, I was commissioned by the County party Committee Standing Committee, reports to the General Assembly. Consideration of all members and alternates, and comrades attending advice. A, and this year yilai of work recalled this year yilai, in municipal of right led Xia, County solidarity led County people, to science development views for guide, to good activities for mainline, according to "a city four modernizations three more" of development thought, concentrated poly force, work hard, political, and economic, and culture, and social and party of construction are made has new progress, County rendering out wind fresh are, and career prosperity, and social settled, and people mind into of good situation. (A) facilitating the construction of the project. Firmly establish the "scratch project is economic, grasping development project is to hold" philosophy, to extraordinary efforts to promoting the construction of key projects. Plot 108 key projects for the year, with a total investment of 29.3 billion yuan, iron plate, Josh stone cement waste heat power generation and 13 projects completed, worship of 1.2 million tons of pellets, Hua Yu 80,000 sets of grandparent chicken farming, 47 projects under construction, completed investment of 3.95 billion yuan, annual plan of 69.3%. The first half of the County's gross domestic product is expected to reached 8.5 billion yuan, and total revenue of 943 million Yuan. (B) structural adjustment achieved remarkable results. Actively transforming the pattern of economic development, industrial ecology, and agricultural modernization and industrialization of services. High x-County &#8226; Tin iron circular economy demonstration area, and further expand economic development zone Jing Dian recycle economy ecology industry Park, Park, circular economy and rapid economic development. Focus more on the dialectical relationship between development and environmental protection, energy saving and emission reduction projects play an important role. Vigorously developing agriculture, ecological agriculture, agriculture, modern agricultural clearing along the River Promenade begins to take shape. Key tourism projects is going well, WA Palace area was named "top ten most influential cultural relics in Hebei province landscape". Develop new services, and services with new developments. (C) urban-rural integration process. Promoting "three-year difference" campaign, battle of two large demolition completed 32 days of 530,000 square meters, exceeded the annual Task 7 months in advance. General big building jiangjun road, bridge and highway bridges, the green heart of the city and other urban construction projects, and focus on building new countryside and new housing model villages, urban and rural areas improve. Highway opened to traffic, Liu Zhang, Qing LAN high-speed x-County section completed by the end of August. Urban and rural昆明理工大学 程序设计基础课程综合设计实践教学课题报告课程名称: c语言程序设计 课题名称: 职工工资管理程序设计 组 长: 学号 1姓名李双江组 员: 学号 6姓名王洪雨学 院: 电力工程学院 专业班级: 水文与水资源工程 指导教师: 张启富 昆明理工大学计算中心2006 年 6 月 12 日昆明理工大学计算中心程序设计基础课程综合设计实践教学课题考核表课题名称:职工工资管理程序设计 学院:电力工程学院 专业班级:水文051 学号姓名小组编号题号承担及完成的内容成绩备注小组自评教师评定1李双江1. 选项菜单集成各功能函数模块2 . 职工工资进行排序并存入文件80926王洪雨1 录入职工工资信息2. 将排序后的文件输出并显示在屏幕上7575设计说明与功能描述(基本思路及关键语句说明)该程序首先是对程序中要产生的一些函数的定义,再在主函数中对它们进行调用。从而形成一套有条理的程序设计,并且能够很好的达到程序设计的目的。程序中,我们运用了语句,极其指针、文件等,方便的执行了对数据的操作。职工信息管理系统提供以下几个功能:1录入职工基本信息:录入要管理统计的职工信息。2汇总职工信息:计算职工的总工资。3排序并将数据存入文件:按总工资降序排列并将数据存入D盘空间。4输出数据表:将录入的职工数据输出。 组长签名: 200 6 年 6 月 12 日教师评语:按要求完成综合设计课题,符合教学要求,应用能力与实践能力有明显提高 教师签名:张启富 2006 年 6 月 16 日 第一部分 系统概述一、程序功能: 随着社会的发展,中小型企业在我国得到迅速发展,工资管理系统对企业的资金管理,起着越来越重要的作用。本程序就是为了更好更快的管理职建立的工工资而。它从标准输入设备(键盘)上输入一批职工工资信息,计算总工资,并按工资降序排序,最后输出到文件中,并将其显示到显示器上。二、程序算法:从主菜单中选择相对应的数字,使程序进入不同的程序模块,用switch实现其功能,程序共分为五个模块,分别为:主函数、Input( )函数(输入函数)、Paixu_fout(rs)函数(计算职工工资信息并输入文件)、Output(rs)输出函数(从文件中读入信息并将其输出到显示器)。各函数主要算法见个流程图第二部分 数据结构设计三、定义结构体: 定义一个包括职工信息极其工资基本信息,包括基本工资、奖金及其津贴,以及总工资的结构体。如下面所所示:structXSchar gh10;char name10;int salary;intreward;intjintie;intsum;cjRS,jd;四、数组设计: 程序中定义是两个字符型数组结构和一个结构体数组: 字符数组gh10在结构体中用于保存职工工号,name10用于保存职工姓名,结构体数组cjRS保存学生的所有信息。五、函数定义: 程序中定义了3个功能函数,它们是输入职工信息输入函数Input();排序并将职工信息输入文件函数Paixu_fout(rs);输出学生信息函数Output(int rs)。最后是主函数main()来调用以上3个函数。主函数流程图程序结束输入数据排序并存档输出数据退出系统出错判断客户选择主函数入口第三部分 使用程序说明八、调试:错误:原因:main()函数当中循环次数多了一个getchar(),导致必须输入两次数字才可以返回case 1:rs=Input();js(rs);break;case 2:Paixu_fout(rs);printf("t排序后的职工信息已存入D盘中的tlj.txt中n"); getchar();printf("t按任意键返回!n");getchar();break;for(i=0;i<rs-1;i+)fprintf(stdout,"%-10s%-10st%4dtt%4dt%4dt%-5dt%4.1fn",cji.xh,cji.name,cji.zd,cji.js,cji.xx,cji.sum,cji.ave);修改:case 1:rs=Input();js(rs);break;case 2:Paixu_fout(rs);printf("t排序后的职工信息已存入D盘中的tlj.txt中n"); printf("t按任意键返回!n");getchar();break;九、程序测试:1、 进入信息管理界面: 2、输入职工基本工资信息 3、利用文件将数据保存入盘内4、输出职工数据5、输入错误,直接返回选择菜单:6、退出系统第四部分、总结和体会组长: 李双江 一个学期的学习,让我见识到了苦,还有些许的甜。在懵懂之中,我慢慢的摸索,慢慢的实践,我不怕失败,勇往直前。正是有了这样的初生牛犊的精神,让我感到了 很多乐趣。 开始的时候,真的是什么的不懂,看着天书一般的程序,头皮都发麻。有时候,看着别人顺利的读出程序,写出自己的小设计,那种羡慕和失落,那种无奈叫人无法承受。不甘的学习,不停的努力,我不想放弃! 慢慢的,我能读程序了,渐渐的,我也不再恐惧和失落了。天书一般的程序,也渐渐的向我展示出它的内蕴。老师不怕我底子薄,不怕麻烦,将每一道题都讲的仔仔细细,我照着老师的话去做,不断地去学习,多花时间去看。很多的概念性问题,我都一一克服了,于是,在上机考试中,我顺利的答出了题目。 可是,在这次的程序设计中,我又感觉到那种失败的感觉。刚开始我并不是写的这个题目。我和组员一起,写了一个运动会成绩管理,好长好长的时间,我都泡在里面,我不断的发现着错误,不断的进步。可是到最后,我的程序还是没能运行,手忙脚乱的做了个小程序,就想您上面所见的,功能很不齐全,远没有我原先预想的那样很失落,不过最后我终于认识到一点:结果很重要,但是过程更需重视,我成长了,我也就获得了。 我希望,在下学期的等考中,我的成长可以得到体现,我的付出不会落空! 组员:王洪雨: 这次编程作业虽然对我们来说比较困难,但是值得高兴的,我们努力了,并基本完成了任务。这次做C语言程序让我感触颇深。是首先是由于对基础知识掌握不扎实,以至于刚开始拿着不知道从何下手,这就让我明白了学习的重要性。其次让我明白的是合作的重要性,我们小组只有两个人,设计时的分工就极其重要了,虽然这次我们没有做好这次题目,但是,不管是在知识的汲取上,还是我们在合作和团队意识上都有了很大的收获。为了做好这次作业,我们查阅了大量关于C语言编程的书籍,并接受了很多同学建议,以求做到精益求精。付出总有回报,即使它不能在现在,也将在不远的将来!第五部分、程序源代码:#include "stdio.h"#define RS 100/定义宏RSstructXSchar gh10;/定义结构体char name10;int salary;intreward;intjintie;intsum;cjRS,jd;/cj用来保存职工工资的基本信息,jd用来检验输入成绩的范围和做交换中间变量/输入图书馆人员的基本信息Input()int i=0;printf("t入职工工资信息:(若要结束输入over)n");while(1)/循环次数未知,用while来控制printf("t第%d位职工的编号:",i+1);/输入职工的编号gets(jd.gh);if(strcmp(jd.gh,"over")=0) return(i+1);break;/检验输入值是否为over,若是返回rs=i+1;printf("t工号为%s职工的姓名:",jd.gh);/用jd来暂时保存人员信息gets(jd.name);if(strcmp(jd.name,"END")=0) return(i+1);break;/检验输入值是否为over,若是返回rs=i+1;printf("t%s职工基本工资:",jd.name);while(1) scanf("%d",&jd.salary);/输入职工的基本工资 if(jd.salary>=0)break;/检验输入值合法性 else printf("t输入错误,请重试:"); printf("t%s职工的奖金:",jd.name);/输入职工的奖金while(1)scanf("%d",&jd.reward); if(jd.reward>=0)break;/检验输入值合法性 else printf("t输入错误,请重试:");printf("t%s职工的津贴:",jd.name);/职工的津贴while(1) scanf("%d",&jd.jintie); if(jd.jintie>=0)break;/检验输入值合法性 else printf("t输入错误,请重输:");cji=jd;i+;getchar();/计算职工工资基本信息函数js(int rs) int i;FILE *pk;if(pk=fopen("D:tj.txt","w")=NULL)/打开文件printf("文件打开失败!");exit(0);for(i=0;i<rs-1;i+)/计算总和 cji.sum=cji.salary+cji.reward+cji.jintie;fprintf(pk,"%-10s%-10s%4d%4d%4d%4dtn",cji.gh,cji.name,cji.salary,cji.reward,cji.jintie,cji.sum);fclose(pk);/排序并将人员信息输入文件Paixu_fout(int rs)FILE *pk;int i,j;if(pk=fopen("G:tlj.txt","w")=NULL)printf("文件打开失败!");exit(0);for(i=0;i<rs;i+)for(j=0;j<rs-i;j+)if(cjj.sum<=cjj+1.sum)jd=cjj+1;cjj+1=cjj;cjj=jd;fprintf(pk,"%-10s%-20s%4d%4d%4d%4dn",cji.gh,cji.name,cji.salary,cji.reward,cji.jintie,cji.sum);fclose(pk);Output(int rs)int i;FILE *pk;if(pk=fopen("D:tlj.txt","r")=NULL)printf("文件打开失败!");exit(0);printf("ntt职工工资排名如下:nn"); printf("t编号 t 姓名t 基本工资 t 奖金 津贴 总和 n");for(i=0;i<rs;i+)fscanf(pk,"%-10s%-20s%4c%4d%4d%4dt%4dn",cji.gh,cji.name,&cji.salary,&cji.reward,&cji.jintie,&cji.sum);fprintf(stdout,"%-10s%-8st%-10d%-10d%-10d%-10dtn",cji.gh,cji.name,cji.salary,cji.reward,cji.jintie,cji.sum);fclose(pk);main() int rs,c,t=1;while(t) printf("t*本系统为职工工资管理系统* n"); printf("t*欢迎使用本系统* n"); printf("tt 1.录入员工及工资信息 n");printf("tt 2.职工工资进行排序并存入文件 n");printf("tt 3.将排序后的文件输出并显示在屏幕上 n");printf("tt 4.退出程序。 n");printf("t* n"); printf("tt请选择对应编号(1,2,3, 4)");scanf("%d",&c);getchar();if(c<1|4<c)printf("t输入错误!请重输:n");continue;switch(c)case 1:rs=Input();js(rs);break;case 2:Paixu_fout(rs);printf("t排序后的职工信息已存入D盘中的tlj.txt中n"); getchar();printf("t按任意键返回!n");getchar();break;case 3:Output(rs);printf("t按任意键返回!n");break;case 4:t=0;printf("t*!谢谢使用!*n");printf("ttt按任意键返回!n");break; 社会关注的重要事项,全部实行三公开,保证了人民群众的知情权、参与权和监督权认真落实党风廉政建设责任制,积极参与廉政教育,自觉杜绝腐败现象发生,全力维护机关干部的正派形象。development work steadily in the pilot counties, to build peace neighborhood offices approved, "change", urban and rural communities (Center), immigrant communities, pilot projects such as integrated management of urban and rural sanitation in order. (D) maintain social harmony and stability. In the case of tight financial situation, continue to increase the input of people, happy people battle. Urban central heating and upgrade rural power grids, rural reconstruction of shabby housing ten major projects being delivered, has been overfulfilled ahead. Strengthening of social programs, college entrance examination to record heights; new rural insurance coverage rate of the city's first, launched in new rural cooperative medical clinic co-ordination; . Perfect Park catering, accommodation, education, recreation and other tertiary industries supporting, improving socialization service level, for industries, businesses and create a good environment for development. 3, flexible investment, enhance the industry. Construction of industrial parks, just set up a platform for the development of only attract more projects into the district, to form agglomeration advantages. A innovation project. To be purposeful, targeted investment, will have a basis of the County's industrial packaged bundles, overall publicity and promotion. Initiative going, please come in and carry out all-round, multi-level and wide-range of investment activities. The Township industrial projects, in principle, to put to the West industrial parks. What town project, is that the output value of the Township. Second, we must grasp the standards selected items. Full account of extend the industry chain and the integration of factors of production, not only efforts to introduce a number of scientific and technological content and high added value, growth and strong driving force of large projects and large enterprises, but also on domestic-funded enterprises and in accordance with the direction of industrial development of small and medium projects, project man, small project overwhelming. Meet the area of the County's new industrial projects and city back into rural enterprises, in principle, all stationed in industrial parks. Meanwhile, strict control of excess capacity and high energy consumption, high emission enterprises to enter. Thirdly, increased incentives on the project. Investment of the whole society, the Township and County units go out and draft project. To establish investment incentives for successful introduction of significant project gives awards to units and individuals, the introduction of tax for the implementation of the project, to introduce organization into rewards. 4, preferential policies, and security industries. In terms of project examination and approval, by area Administrative Committee in conjunction with the development, planning, land, industry and commerce, quality control and other departments, "one-stop reception, one-stop service", the simplified procedures, the time limit originally. In the management of EIA in accordance with the

    注意事项

    本文(2021-2022收藏的精品资料C语言职工工资管理系统.doc)为本站会员(可****阿)主动上传,得力文库 - 分享文档赚钱的网站仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对上载内容本身不做任何修改或编辑。 若此文所含内容侵犯了您的版权或隐私,请立即通知得力文库 - 分享文档赚钱的网站(点击联系客服),我们立即给予删除!

    温馨提示:如果因为网速或其他原因下载失败请重新下载,重复下载不扣分。




    关于得利文库 - 版权申诉 - 用户使用规则 - 积分规则 - 联系我们

    本站为文档C TO C交易模式,本站只提供存储空间、用户上传的文档直接被用户下载,本站只是中间服务平台,本站所有文档下载所得的收益归上传人(含作者)所有。本站仅对用户上传内容的表现方式做保护处理,对上载内容本身不做任何修改或编辑。若文档所含内容侵犯了您的版权或隐私,请立即通知得利文库网,我们立即给予删除!客服QQ:136780468 微信:18945177775 电话:18904686070

    工信部备案号:黑ICP备15003705号-8 |  经营许可证:黑B2-20190332号 |   黑公网安备:91230400333293403D

    © 2020-2023 www.deliwenku.com 得利文库. All Rights Reserved 黑龙江转换宝科技有限公司 

    黑龙江省互联网违法和不良信息举报
    举报电话:0468-3380021 邮箱:hgswwxb@163.com  

    收起
    展开