Answer to Question #312083 in C++ for KOFII_BOOY

Question #312083

Write a c++ program to display the character a and make it rotate in 360 degrees clockwise ?


1
Expert's answer
2022-03-15T12:12:06-0400

Here is program:

void display(string letter, char DataType)
{


    char displayboard[20][40];
    const int RowI = 20, ColumnJ = 40;
    char board_A[RowI][ColumnJ] =
    {
          {' ' , ' ' , DataType , ' ' , ' ' },
          {' ' , DataType , ' ' , DataType , ' ' },
          { DataType , ' ' , ' ' , ' ' , DataType },
          { DataType , ' ' , ' ' , ' ' , DataType },
          { DataType , DataType , DataType , DataType , DataType },
          { DataType , ' ' , ' ' , ' ' , DataType },
          { DataType , ' ' , ' ' ,' '  , DataType }
    };


    char board_B[RowI][ColumnJ] =
    {
          {DataType , DataType , DataType , DataType , ' ' },
          {DataType , ' ' , ' ' , ' ' , DataType },
          {DataType , ' ' , ' ' , ' ' , DataType },
          {DataType , DataType , DataType , DataType , ' ' },
          {DataType , ' ' , ' ' , ' ' , DataType },
          {DataType , ' ' , ' ' , ' ' , DataType },
          {DataType , DataType , DataType ,DataType  , ' ' }
    };
}
    int main()
    {


        string letter;
        char DataType;


        string displayboard(int RowI, int ColumnJ, const char A[20][40]);


       cout << "Please enter  words or numbers:" << endl;
        cout << "Insert here =>";
        cin >> letter;
        cout << endl;
        cout << "Please enter your symbol:" << endl;
        cout << "Insert here =>";
        cin >> DataType;
        display(letter, DataType);




    }

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment