UMBC CMSC104 CSEE

UMBC CMSC 104

CMSC104

Problem Solving and Computer Programming

Sections 0201 and 0301

 

Project 2

Due

Project 2 is worth 100 points and due at 11:59pm, Tuesday, 28 Oct.

Requirements

Create a file named 6789prj2.c, using the editor of your choice.
There is a kids' game called Buzz, where each child calls out the next number in turn, unless that number is a multiple of 7 or contains a digit 7 in the value. For instance,
1
2
3
4
5
6
buzz
8

Notice that 14 is a multiple, 17 contains a 7.

You are to show the values (or buzzes) in the range of 1 to 100.

Compiling

Compile the program with the following command: If you got an error and you probably did, simply go back into the editor and fix it. Then recompile, continuing until you get no warnings or errors.

Executing

Execute the program with the following command: ./a.out
Notice that when the program is finished, the UNIX prompt must be on the next line!

Turning in your homework

Once you have everything absolutely correct, you must use Blackboard to submit the project to the TA for grading. Do not email it to the instructor because you will lose points for not following instructions!

When submitting the assignment, I only want the file 6789prj2.c. Please make the title and the file name the same when you submit it! If you submit a file name 6789prj2.c, the way we save the material delete everything but the last file with than name. Therefore, your file will be lost and we will give you a zero!!!! Use the last four of your SSN, not 6789!!!

Grading

This project will be grade using the following scale:

Documentation 25 points
Correct Results25 points
Correct Sytle25 points
Other25 points

You will lose 5 points if you do not name the file correctly.
You will lose 5 points if you email the project instead of submitting it via Blackboard.
You will lose 5 points if the prompt is not on the next line.

Comments Required

        /*****************************************************/
        /* Program Header Block                              */
        /* Filename:       6789prj2.c                        */
        /* Name:           Ima Student                       */
        /* SSAN:           6789                              */
        /* Date:           28 Oct 2003                       */
        /* Course/section: CMSC-104/0102                     */
        /* Description:                                      */
        /*     Analysis:                                     */
        /*         Input:                                    */
        /*         Output:                                   */
        /*         Constraints:                              */
        /*         Formulas:                                 */
        /*         Assumptions:                              */
        /*     Design:                                       */
        /*         (Your psuedocode goes here.)              */
        /*                                                   */
        /* Notes:          (As needed.)                      */
        /*****************************************************/
        


UMBC | CSEE |