Question: Program using C++ Write a program to find the average salary of the employees using a text file that looks like the one pictured here.
Program using C++
Write a program to find the average salary of the employees using a text file that looks like the one pictured here. The text file has a first name, last name, and then salary in the format of '$75000.00', all with a space in between. You HAVE to read all three parameters as a string and then convert them to c-strings. Then convert them to float variables. Display the average salary.
George Johnson $50000.00 Harry Styles $75000.75 Bob Joe $68500.50
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
