Question: 2. Write a program to read 10 double numbers from file value.txt into an array of size 10, calculate the summation and find out the
2. Write a program to read 10 double numbers from file "value.txt" into an array of size 10, calculate the summation and find out the smallest value. (10 marks) 1) The program should include three more functions, ReadFile(double", int), Smallest(double",int), Summation(double*,int). 2) These three functions should be called in the main function. 3) ReadFile is implemented to read data from "value.txt" into the array. 4) Summation is implemented to calculate the summation value from the array, 5) Smallest is implemented to find out the smallest value from the array
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
