{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

p3 - CMSC 106 Project#3 Fall 2011 Date assigned Wednesday...

Info icon This preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
CMSC 106 Project #3 Fall 2011 Date assigned: Wednesday, October 19, 2011 Date due: Tuesday, November 1, 11:00 p.m. 1 Introduction The purpose of this project is to become familiar compilation of multiple files, loops and parameter passing. 2 Project specifications The submitted code should create output that is identical to what is shown in the public output files included in the .tgz file. But instead of looking at the whole project, you should work on implementing each function to do exactly what is described in the game.h file. I have already implemented the main for you as well as several public test files that will be discussed in lab on Wednesday, October 19. Each function needed has a prototype and a description in the game.h file. All of your code should be placed in the game.c file. Each function must do exactly what is described in the game.h description for that one function. DO NOT MODIFY ANY OF THE OTHER FILES YOU ARE GIVEN! 3 Step by Step Directions 1. Copy the file named proj3.tgz from the projects directory that is in your 106public directory. Place your copy of this file into your 106 directory. cp ~/106public/projects/proj3.tgz ~/106 2. Change into your 106 directory. cd ~/106 3. Then extract the contents of the file. tar -xvzf proj3.tgz 4. Then, you will see that a new directory has been created. That new directory is in your 106 directory and is named Project3. Change into that directory. cd Project3 5. Then, edit the file named game.c. DO NOT MAKE ANY CHANGES TO game.h OR TO main.c or to any of the other .c files you are given. 6. Compile and run using one of the publicX.c files or the main.c file to provide the main function. Make sure to 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.
Image of page 1

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

View Full Document Right Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}

What students are saying

  • Left Quote Icon

    As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

    Student Picture

    Kiran Temple University Fox School of Business ‘17, Course Hero Intern

  • Left Quote Icon

    I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

    Student Picture

    Jill Tulane University ‘16, Course Hero Intern