akosiraff

Array Alpha C++

May 6th, 2013
142
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.81 KB | None | 0 0
  1.  
  2. Download: http://solutionzip.com/downloads/array-alpha-c/
  3. Objectives: At the end of this lab you should be able to:
  4. 1. use one-dimensional arrays in a program
  5. 2. initialize an array and store data in the array
  6. 3. find the sum, print and find the smallest element in an array
  7. 4. pass arrays as parameters
  8. 5. determine when to use const and when not to use const
  9. 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.
  10. Don’t forget to put the statement in your program.
  11. Save a copy of the program and its output.
  12.  
  13. Download: http://solutionzip.com/downloads/array-alpha-c/
Advertisement
Add Comment
Please, Sign In to add comment