Array File

Download Category:

Array_File_CPP.zip - (5.42 MB)
[
Array_File_CPP/Array_File_CPP.cpp
Array_File_CPP/Array_File_CPP.sdf
Array_File_CPP/Array_File_CPP.sln
Array_File_CPP/Array_File_CPP.suo
Array_File_CPP/Array_File_CPP.vcxproj
Array_File_CPP/Array_File_CPP.vcxproj.filters
Array_File_CPP/Array_File_CPP.vcxproj.user
Array_File_CPP/data1.txt
Array_File_CPP/data2.txt
Array_File_CPP/Debug/
Array_File_CPP/Debug/Array_File_CPP.exe
Array_File_CPP/Debug/Array_File_CPP.exe.embed.manifest
Array_File_CPP/Debug/Array_File_CPP.exe.embed.manifest.res
Array_File_CPP/Debug/Array_File_CPP.exe.intermediate.manifest
Array_File_CPP/Debug/Array_File_CPP.ilk
Array_File_CPP/Debug/Array_File_CPP.lastbuildstate
Array_File_CPP/Debug/Array_File_CPP.log
Array_File_CPP/Debug/Array_File_CPP.obj
Array_File_CPP/Debug/Array_File_CPP.pdb
Array_File_CPP/Debug/Array_File_CPP_manifest.rc
Array_File_CPP/Debug/cl.command.1.tlog
Array_File_CPP/Debug/CL.read.1.tlog
Array_File_CPP/Debug/CL.write.1.tlog
Array_File_CPP/Debug/link.2808.read.1.tlog
Array_File_CPP/Debug/link.2808.write.1.tlog
Array_File_CPP/Debug/link.2808-cvtres.read.1.tlog
Array_File_CPP/Debug/link.2808-cvtres.write.1.tlog
Array_File_CPP/Debug/link.command.1.tlog
Array_File_CPP/Debug/link.read.1.tlog
Array_File_CPP/Debug/link.write.1.tlog
Array_File_CPP/Debug/link-cvtres.read.1.tlog
Array_File_CPP/Debug/link-cvtres.write.1.tlog
Array_File_CPP/Debug/mt.command.1.tlog
Array_File_CPP/Debug/mt.read.1.tlog
Array_File_CPP/Debug/mt.write.1.tlog
Array_File_CPP/Debug/rc.command.1.tlog
Array_File_CPP/Debug/rc.read.1.tlog
Array_File_CPP/Debug/rc.write.1.tlog
Array_File_CPP/Debug/vc100.idb
Array_File_CPP/Debug/vc100.pdb
Array_File_CPP/ipch/
Array_File_CPP/ipch/array_file_cpp-c5c37d2e/
Array_File_CPP/ipch/array_file_cpp-c5c37d2e/array_file_cpp-2e48cfec.ipch
Array_File_CPP/Question.txt
Array_File_CPP/Screenshot.png
]

Write a C++ program that reads data from a file into an integer array that will hold a maximum of 100 components. Write the following void or value-returning functions:
a. initialize all elements of the array to zero
b. read the data from a file and store it in the array
c. find the index of the component that holds the smallest value
d. find the average value stored in the array
e. print all of the elements in the array
f. print the index of the smallest value, the smallest value, the average and all of the components that are greater than the average (Make sure that all of the values printed are properly labeled.)

Don’t forget to put the statement in your program.

Save a copy of the program and the output from data1.txt and data2.txt

Write a Review

Get a fresh solution of this question. Ask it now to our experts.
doubt

Ask Your Question

We have verified professionals who are ready to answer your question.

time

Save Time and Money

We choose experts who can quickly answer your question and that suit your budget.

download

Get Your Answer

Your satisfaction is 100% guaranteed. You can keep on asking questions until you get the answer you need.