User Profile

Collapse

Profile Sidebar

Collapse
Botang
Botang
Last Activity: Nov 17 '07, 07:32 PM
Joined: Nov 16 '07
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • Botang
    replied to Chess Board Program using While statements
    in C
    In the program I have created, the strings are of both the same length. I don't know why it showed up as one blank. I am having difficulty understanding this concept. Could someone please show me an example of a while statement that would execute 8 blocks of asterisks and blanks...
    I would very much appreciate any input.
    See more | Go to post

    Leave a comment:


  • Botang
    replied to Chess Board Program using While statements
    in C
    How would you change the code so that it prints out 8 blocks of chessboard rows using only while statement?

    Please help... I am not quite understanding and I am under deadline.
    See more | Go to post

    Leave a comment:


  • Botang
    replied to Chess Board Program using While statements
    in C
    The lines are supposed to line up > like a chessboard
    They line up properly in the program but on this screen... reply thingy
    See more | Go to post

    Leave a comment:


  • Botang
    replied to Chess Board Program using While statements
    in C
    Code:
     ********        ********        ********        ********
                ********        ********        ********        ********
                ********        ********        ********        ********
                ********        ********        ********        ********
                ********        ********        ********        ********
       ********        ********        ********        ********
       ********
    ...
    See more | Go to post

    Leave a comment:


  • Botang
    replied to Chess Board Program using While statements
    in C
    Code:
         
            ********        ********        ********        ********
            ********        ********        ********        ********
            ********        ********        ********        ********
            ********        ********        ********        ********
            ********        ********        ********        ********
    ********        ********        ********        ********
    ********
    ...
    See more | Go to post

    Leave a comment:


  • Botang
    replied to Chess Board Program using While statements
    in C
    ******** ******** ******** ********
    ******** ******** ******** ********
    ******** ******** ******** ********
    ******** ******** ******** ********
    ******** ******** ******** ********
    ******** ******** ******** ********
    ******** ******** ********...
    See more | Go to post

    Leave a comment:


  • Botang
    replied to Chess Board Program using While statements
    in C
    Code:
    count = 1;
    while (count <=5)
    {
    cout << whiteRow << endl;
    count ++;
    }
    
     innercount = 1;
    while (innercount <=5)
    {
    cout << blackRow << endl;
    innercount ++;
    }
    I have modified the code and changed it to this. When we compile the program it outputs two blocks of asterisks. I need it to output six more blocks....
    See more | Go to post

    Leave a comment:


  • Botang
    started a topic Chess Board Program using While statements
    in C

    Chess Board Program using While statements

    Create a chessboard program by using while statements and you can only use TWO cout statments.. (using C++)
    One cout is cout<< whiteRow << endl;
    THe other cout is cout <<blackRow << endl;

    whiteRow = WHITE + BLACK + WHITE + BLACK + WHITE + BLACK + WHITE + BLACK;

    blackRow = BLACK + WHITE + BLACK + WHITE + BLACK + WHITE + BLACK + WHITE;

    The program has the dimensions...
    See more | Go to post
No activity results to display
Show More
Working...