Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Can you help me by editing and making additions to my Code? (C LANGUAGE) Below, there is a code from my last project, which is
Can you help me by editing and making additions to my Code? (C LANGUAGE)
Below, there is a code from my last project, which is 4*7 board that contains all zeros.
I want you to make the board 8*8 that contains all zeros, after that the user has to create a "T" shape by changing these zeros with ones.
Finaly, that created T shape has to be turned 90 degrees to the right.
For example:
The code for the board you can use:
#includeusing namespace std; // function to print the board void printarray(int arr[][4]){ for (int i = 0; i OOO- rnek: 0 0 0 0 0 0 0 0 Oo oo Od 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ekil 1: dizinin ilk durumu O O O O O O 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 1 1 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ekil 2: T eklinin tespit edilmi ve 90 saa evrilmi durum 0
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started