p2 - CMSC 106 Project#2 Fall 2011 Date assigned Monday...

Info iconThis preview shows pages 1–3. Sign up to view the full content.

View Full Document Right Arrow Icon
CMSC 106 Project #2 Fall 2011 Date assigned: Monday, October 3, 2011 Date due: Wednesday, October 12, 11:00 p.m. 1 Introduction The purpose of this project is to become familiar compilation of multiple files, user defined functions, condi- tional statements. 2 Project specifications The provided file should create output that is identical to what is shown in the sample execution in Section 8): But instead of looking at the whole project, you should work on implementing each function to do exactly what is described in the functions.h file. Each function needed has a prototype and a description in the functions.h file. All of your code should be placed in the functions.c file. Each function must do exactly what is described in the functions.h description for that one function. 3 Step by Step Directions 1. Copy the file named proj2.tgz from the projects directory that is in your 106public directory. Place your copy of this file into your 106 directory. cp ~/106public/projects/proj2.tgz ~/106 2. Change into your 106 directory. cd ~/106 3. Then extract the contents of the file. tar -xvzf proj2.tgz 4. Then, you will see that a new directory has been created. That new directory is in your 106 directory and is named Proj2. Change into that directory. cd Proj2 5. Then, edit the file named functions.c. DO NOT MAKE ANY CHANGES TO functions.h OR TO main.c. 6. Compile and run your program testing it on several different input values. 7. Submit after you are confident that your functions are all written according to the specifications given in the functions.h file. 1
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
4 Development suggestions Many people like to write their whole program, I have provided the main method for you and you will be writing functions called by this main method or possibly others. Your process should be that you take the main and comment out the lines you do not want to test right now - then write one function and uncomment
Background image of page 2
Image of page 3
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}

Page1 / 4

p2 - CMSC 106 Project#2 Fall 2011 Date assigned Monday...

This preview shows document pages 1 - 3. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online