文件名称: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
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.