Question: Algorithm Development Assume you are provided with a file formatted like the example below with Groups and Wages, but the total length of the file
Algorithm Development
Assume you are provided with a file formatted like the example below with Groups and Wages, but the total length of the file number of lines is not known. Create a flow chart or pseudocode that will define a void function, sumGroups, that calculates the average of the wages for each group The function should include one input parameter, ifstream iFile. The sum for each group should be displayed to the console. You can assume all preprocessor directives are correctly listed outside the function.
You can assume the file holding the data is opened and ready to read.
tableGroupWagesACABBC
Please use pseudocode or a flowchart.
Note: If choosing to create a flowchart instead of pseudocode, please write 'flowchart' as your response. Then proceed to drawwrite your flowchart on paper, take a clear picture, and upload the response to:
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
