CMSC104

Problem Solving and Computer Programming

Section 0501

 
UMBC CMSC104 CSEE | CMSC104

Project 2 DUE: 17 April

Requirements Specfication

Write one program that has three loops:
  1. a for-loop that goes from 1 to 100 by 7
  2. a while-loop that goes from 100 to 8 by 3
  3. a do-while loop that goes from 19 to 75 by 9

Example Output

In the following example, the program displays what is in Blue.

1 8 15 22 29 36 43 50 57 64 71 78 85 92 99
100 97 94 91 88 85 82 79 76 73 70 67 64 61 58 55 52 49 46 43 40 37 34 31 28 25 22 19 16 13 10
19 28 37 46 55 64 73
    

Program Header Comment Block

Use the following comment block at the beginning of your source code:
        /*****************************************************/
        /* Program Header Block                              */
        /* Filename:       jdoe2p2.c                         */
        /* Name:           Jane Doe                          */
        /* Email:          jdoe2pl@umbc.edu                  */
        /* Date:           14 Apr 2006                       */
        /* Course/section: CMSC-104/0501                     */
        /* Description:                                      */
        /*     Analysis:                                     */
        /*         Input:                                    */
        /*         Output:                                   */
        /*         Constraints:                              */
        /*         Formulas:                                 */
        /*         Assumptions:                              */
        /*     Design:                                       */
        /*         (Your psuedocode goes here.)              */
        /*                                                   */
        /* Notes:          (As needed.)                      */
        /*****************************************************/