文件名称:LAB10_E1
- 所属分类:
- 控制台(字符窗口)编程
- 资源属性:
- [C/C++] [源码]
- 上传时间:
- 2012-12-19
- 文件大小:
- 1kb
- 下载次数:
- 0次
- 提 供 者:
- Che***
- 相关连接:
- 无
- 下载说明:
- 别用迅雷下载,失败请重下,重下不扣分!
下载
别用迅雷、360浏览器下载。
如迅雷强制弹出,可右键点击选“另存为”。
失败请重下,重下不扣分。
如迅雷强制弹出,可右键点击选“另存为”。
失败请重下,重下不扣分。
介绍说明--下载内容均来自于网络,请自行研究使用
Calculate the salary of the employee by hours and save it as records, output the infomations, the total salary is calculated by the total hours and salary per hour.
Question:
1. Write a program to read FIVE (5) employees’ records from the keyboard that consists of the following data employeeNum (an integer), employeeName (a string literal), salaryPerHour (a floating-point number) and totalHours.( an integer). Then display them on the screen and store them in a file named “Employee.txt”. The program should calculate the totalPay which is salaryPerHour multiply totalHours for each employee. Then, write all of the employees’ records (including totalPay) to the output file. Use file “Employee.txt” for input and “EmployeeSalary.txt” for output.-Calculate the salary of the employee by hours and save it as records, output the infomations, the total salary is calculated by the total hours and salary per hour.
Question:
1. Write a program to read FIVE (5) employees’ records from the keyboard that consists of the following data employeeNum (an integer), employeeName (a string literal), salaryPerHour (a floating-point number) and totalHours.( an integer). Then display them on the screen and store them in a file named “Employee.txt”. The program should calculate the totalPay which is salaryPerHour multiply totalHours for each employee. Then, write all of the employees’ records (including totalPay) to the output file. Use file “Employee.txt” for input and “EmployeeSalary.txt” for output.
Question:
1. Write a program to read FIVE (5) employees’ records from the keyboard that consists of the following data employeeNum (an integer), employeeName (a string literal), salaryPerHour (a floating-point number) and totalHours.( an integer). Then display them on the screen and store them in a file named “Employee.txt”. The program should calculate the totalPay which is salaryPerHour multiply totalHours for each employee. Then, write all of the employees’ records (including totalPay) to the output file. Use file “Employee.txt” for input and “EmployeeSalary.txt” for output.-Calculate the salary of the employee by hours and save it as records, output the infomations, the total salary is calculated by the total hours and salary per hour.
Question:
1. Write a program to read FIVE (5) employees’ records from the keyboard that consists of the following data employeeNum (an integer), employeeName (a string literal), salaryPerHour (a floating-point number) and totalHours.( an integer). Then display them on the screen and store them in a file named “Employee.txt”. The program should calculate the totalPay which is salaryPerHour multiply totalHours for each employee. Then, write all of the employees’ records (including totalPay) to the output file. Use file “Employee.txt” for input and “EmployeeSalary.txt” for output.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
LAB10_E1.cpp