Menu
support@nursinghomework.org
+1 714-215-3097

(Solved) : Using Vla Arrays Functions Exercise Want Read X Number Integer Numbers Given Data File Ave Q35548888

Using VLA Arrays in functions

For this exercise, I want you to read X number of integernumbers from a given data file and average them. You must use anarray and 2 functions. The first function will load an array withthe data from the input file. The second function will average thedata in the file

Things to pay attention to:

  • We add a function to determine how big of an array to use.
  • FILE* and the naming and location(path) of the text file forinput.
  • The function declaration.
  • Ensure you close the input file.
  • Make sure the file opens in the correct mode.

given data file

12

23

45

43

65

76

88

23

34

53

97

45

65

14

32

1

0

77

99

22

Leave a Reply

Your email address will not be published. Required fields are marked *