文件名称:LAB10_E1
介绍说明--下载内容来自于网络,使用问题请自行百度
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
1999-2046 搜珍网 All Rights Reserved.
本站作为网络服务提供者,仅为网络服务对象提供信息存储空间,仅对用户上载内容的表现方式做保护处理,对上载内容本身不做任何修改或编辑。
