CSC 1100 Lecture Notes - Lecture 5: Gregg Marshall
Document Summary
Csc 1101 problem solving and programming laboratory. 25 points due september 20, end-of-class: save this document with your name and the lab assignment number somewhere in the file name, type/paste your answers into the document, submit this document to the blackboard. Three employees in a company had a pay increase and you need to calculate salary percent increase. You are given a file, say lab3_input. txt, with the following data: Each input line consists of an employee"s first name, last name, salary in the last month, and salary in the current month. For example, in the first input line, the first name of the employee is gregg, the last name is marshall, salary in the past month is 87236. 45, and salary in the current month is 96832. 46. Write a program that reads data from the specified file and stores the output in the file lab3_output. txt. For each employee, the data must be printed in the following form: firstname lastname percentincrease.