The logic required to write a tic-tac-toe game can be achieved using any third-generation programming language, and there are many to choose from, for example, Python, Fortran, C++ etc. For a simple program where it is easy to add graphic objects, a fourth-generation programming language may be more suitable.
Answer:
View image below.
Explanation:
They're just asking you to create a num2bin function on Cpp.
If you search for "num2bin in C", you can find a bunch of answers for this if you think my solution is too confusing.
One way to do it is the way I did it in the picture.
Just copy that function and use it in your program. The rest you can do yourself.
Answer:
"LinkedIn" is the correct answer for the above question.
Explanation:
- LinkedIn is used to build a connection between people and communicate. But it is used to connect only business type contacts.
- So, when any user wants to make any business type of contacts, then he can do this with the help of making an account on LinkedIn and then add the business people on it.
- The above question asked about the networking site which is used to connect the business contacts. This site is known as LinkedIn.
Answer:
It changed computing, because that was the first computer, and it was programmed by a woman
Explanation:
Answer:
I am writing a python program for this.
def deal3(input_list, index):
list = []
for x in range(len(input_list)):
if x != index:
list.append(input_list[x])
print('list ->',list)
input_list = [10, 20, 30, 40, 50]
index = 2
deal3(input_list, index)
Explanation:
- The first line of code defines a function deal3 which has two parameters. input_list which is an input list and index is the position of elements in the input list.
- next statement list=[] declares a new list that will be the output list.
- next statement for x in range(len(input_list)): is a loop which the loop variable x will traverse through the input list until the end of the input list is reached.
- the next statement if x != index: checks if x variable is equal to the position of the element in the list.
- Next statement list.append(input_list[x]) appends the elements of input list to list( new list that will be the output list). Now the output list will contain all the elements of the input list except for the element in the specified position (index variable).
- this statement print('list ->',list) prints the list (new output list).
- this statement input_list = [10, 20, 30, 40, 50] insert elements 10 20 30 40 50 in the input list.
- index=2 specifies the second position (3rd element) in the list that is to be removed.
- deal3(input_list, index) So the function is called which will remove 3rd element of the input list and prints output array with same elements as that in input array except for the element at the specified position.