CSCI 1300 Computer Science 1: Programming
Spring 2004
Karl Winklmann

 
 

Programming exercises about arrays

February 10, 2004

 
 
 


Project description form | Contents | Schedule and syllabus | Grading policy | People | Programs | MSDOS | Emacs | News archive | Dora (Assignment submission) | www.cplusplus.com | ~main/cs1300/doc/bgi

Here are programming exercises you should be able to do at this point. As always, I suggest you do the ones you are not sure about.

Write a program that uses arrays of integers and ...

  1. Write a loop that computes the average of the array entries.
  2. Write a function that returns the largest entry of an array.
  3. Sort an array either in inceasing or decreasing fashion, whichever the user specifies.
  4. Write a function that tests if two arrays have the same entries (even if not in the same order).
 


© 2004 Karl Winklmann 5:53 PM, Thursday, April 29, 2004