University of Wisconsin - Parkside

Department of Computer Science

CSCI 333 Programming Languages

Spring 2012


Instructor Dr. J. U. Quevedo
Textbook Programming Languages: Principles and Practice, Second Edition  by Kenneth Louden
Syllabus Spring 2012


Check your grades in D2L

Assignment #1
Due on 2-2-12
Write a C program that declares and initializes the following array of  integers:
numbers[20]={33, 77, 99, 2,4,1,7,12,65,3,78,5,8,10,28,27, 67};
Your program should offer the following options to the user:
1.    Print the content of the array
2.    Compute the average of the array
3.    Compute the sum of the array
4.    Print the content of the array in reversed order
5.    Add a value to each element of the array
6.    Exit
Your program should call a function to accomplish the task of each of the options presented to the user. Your program should not terminate until the user selects option 6.
submission template

For all Programming Submissions Place your assignment in the corresponding D2L dropbox, and
include the following in your PDF document:
(1) Listing of all your code (2) sample executions, and
(3) instructions on executing your program(s), comments about your development experience


Class Day Date Activity Readings
1 Tue 1/17 Course Introduction,
What is a Programming Language?
Chapter 1
2 Th 1/19 C-samples1
C_samples2
3 T 1/24 C_samples3
Lab activity
4 Th 1/26 C in class activity


Resources
books
Clause and Effect: Prolog Programming for the Working Programmer (Prolog)
Programming: Advanced topics and techniques (ML)
Visual Prolog 7.3 for Tyros (Visual Prolog)