Computer Science I

MC140.01 / MC140.02

Fall 2000

Assignment 1

due Monday 18 September 2000, 12noon

The goal of this assignment is to make sure that you know how to perform the four basic operations in the programming environment which you will be using for the rest of the semester:

  1. creating and editing source code,
  2. compiling and linking your source code,
  3. running your program, and
  4. submitting your program.

1. Create the source code.
Start with the following code, which comes automatically when you select "File - New - Win32 C/C++ Application Stationery" to create a new project:

#include <stdio.h>

int main( void ) {
  printf( "hello world!\n" );
  return( 0 );
Specify the location of this project to be a folder called <your-user-name>.ass1. For example, mine would be called sklarel.ass1.

2. Compile, link and run the program.

3. Modify it.
Change the source code to ask the following questions and then echo the user's output to the screen.
(1) What is your name?
(2) What is your quest?
(3) What is your favorite color?

4. Submit it.
Submit your assignment electronically. This is done by simply copying your source code file into my (sklarel) "Professor's Folders" folder on the OCF "federation" server. Attached is information on how to access the "Professor's Folder" from MAC's or IBM's in the SLSC in O'Neill (a.k.a. OCF).