Question: please help with this for C++. how would i create a file to hold the data below? Q4 (25 Points) Write a program that reads
Q4 (25 Points) Write a program that reads data from a file specified by the user at runtime (i.e. your program should accept the filename as user input) and stores the output in the file Ch3_Ex5Output. dat. To test your program, use the Ch3_Ex5Data.txt file. Your program will not pass all checks if it does not accept a filename as input from the user. For each employee, the data must be output in the following form: firstName lastName updatedSalary. Format the output of decimal numbers to two decimal places. Since your program handles currency, make sure to use a data type that can store decimals. Create a file to hold this data Miller Andrew 65789.87 5 Green Sheila 75892.56 6 Sethi Amit 74900.50 6.1
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
