regressive tax

Questions

regressive tаx

Write а prоgrаm thаt takes a set оf test scоres of a student as a file. It then uses two functions calculateSum() and calculateAverage() to calculate the sum and average of the data set.Your program must use the following functions:1.    A value-returning function, calculateSum(), to determine the sum of the test scores. Use a loop to read and sum the test scores. The function does not output the sum of the test scores. This task must be done in the main function.2.    A void function, calculateAverage(), to determine the average of the test scores. The func- tion does not output the average test score. This task must be done in the main function. Hint: Use pass by reference for average variable.