Array Alpha

Download Category:

Array_Index_Square.zip - (5.1 MB)
[
Array_Index_Square/Array_Index_Square.sdf
Array_Index_Square/Array_Index_Square.sln
Array_Index_Square/Array_Index_Square.suo
Array_Index_Square/Array_Index_Square.vcxproj
Array_Index_Square/Array_Index_Square.vcxproj.filters
Array_Index_Square/Array_Index_Square.vcxproj.user
Array_Index_Square/Array_Index_Square_CPP.cpp
Array_Index_Square/Debug/
Array_Index_Square/Debug/Array_Index_Square.exe
Array_Index_Square/Debug/Array_Index_Square.exe.embed.manifest
Array_Index_Square/Debug/Array_Index_Square.exe.embed.manifest.res
Array_Index_Square/Debug/Array_Index_Square.exe.intermediate.manifest
Array_Index_Square/Debug/Array_Index_Square.ilk
Array_Index_Square/Debug/Array_Index_Square.lastbuildstate
Array_Index_Square/Debug/Array_Index_Square.log
Array_Index_Square/Debug/Array_Index_Square.pdb
Array_Index_Square/Debug/Array_Index_Square_CPP.obj
Array_Index_Square/Debug/Array_Index_Square_manifest.rc
Array_Index_Square/Debug/cl.command.1.tlog
Array_Index_Square/Debug/CL.read.1.tlog
Array_Index_Square/Debug/CL.write.1.tlog
Array_Index_Square/Debug/link.3848.read.1.tlog
Array_Index_Square/Debug/link.3848.write.1.tlog
Array_Index_Square/Debug/link.3848-cvtres.read.1.tlog
Array_Index_Square/Debug/link.3848-cvtres.write.1.tlog
Array_Index_Square/Debug/link.command.1.tlog
Array_Index_Square/Debug/link.read.1.tlog
Array_Index_Square/Debug/link.write.1.tlog
Array_Index_Square/Debug/link-cvtres.read.1.tlog
Array_Index_Square/Debug/link-cvtres.write.1.tlog
Array_Index_Square/Debug/mt.command.1.tlog
Array_Index_Square/Debug/mt.read.1.tlog
Array_Index_Square/Debug/mt.write.1.tlog
Array_Index_Square/Debug/rc.command.1.tlog
Array_Index_Square/Debug/rc.read.1.tlog
Array_Index_Square/Debug/rc.write.1.tlog
Array_Index_Square/Debug/vc100.idb
Array_Index_Square/Debug/vc100.pdb
Array_Index_Square/ipch/
Array_Index_Square/ipch/array_index_square-35f5cafa/
Array_Index_Square/ipch/array_index_square-35f5cafa/array_index_square-9931d332.ipch
Array_Index_Square/Question.txt
Array_Index_Square/Screenshot.png
]

Objectives: At the end of this lab you should be able to:
1. use one-dimensional arrays in a program
2. initialize an array and store data in the array
3. find the sum, print and find the smallest element in an array
4. pass arrays as parameters
5. determine when to use const and when not to use const

Lab A: Write a C++ program that declares an array alpha that has 50 double components. Write a function that stores the square of the index for the first 25 components and half of the index for the last 25 components. Write a function that prints the contents of the array with 10 elements per line.

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

Save a copy of the program and its output.

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.