This preview has intentionally blurred sections. Sign up to view the full version.
View Full Document
Unformatted text preview: CS 60 Programming Assignment #1 Due Date: April 8, 2010 (1:00 pm). 50 Points. Remember: Points will be deducted for homework turned in after the Due Date. Deadline: April 9, 2010 (1:00 pm) Remember: No homework will be accepted after the Deadline You must work independently on all the assignments. TURN IN YOUR ASSIGNMENT USING THE TURNIN PROGRAM (SEE CLASS WEB PAGE FOR INSTRUCTIONS ON WHAT AND HOW TO TURNIN Write a C program that has a value for n and n integers a [0], a [1], . . . , a [ n 1]. The input and output format can be easily inferred from the sample input and output files for hw1 given in the map.html web page. Note that the input values are not necessarily sorted. Your program may assume that n is a positive integer whose value is between 1 and 1000. The integers a [ i ] are between 1 and 100,000 for all 0 ≤ i ≤ n 1. Your C++ program initially is like the program given below that inputs n as well as the array a , and then sorts the array (see below the sort procedure). Then it must compute and print the following statistics.following statistics....
View
Full
Document
This note was uploaded on 03/21/2011 for the course CMPSC 60 taught by Professor Gonzalez during the Spring '10 term at UCSB.
 Spring '10
 gonzalez

Click to edit the document details