The simulation, player 2 will always play according to the same strategy.
Method getPlayer2Move below is completed by assigning the correct value to result to be returned.
Explanation:
-  You will write method getPlayer2Move, which returns the number of coins that player 2 will spend in a given round of the game. In the first round of the game, the parameter round has the value 1, in the second round of the game, it has the value 2, and so on.
#include <bits/stdc++.h>  
using namespace std; 
bool getplayer2move(int x, int y, int n)  
{ 
    int dp[n + 1];  
    dp[0] = false;  
    dp[1] = true;  
    for (int i = 2; i <= n; i++) {  
        if (i - 1 >= 0 and !dp[i - 1])  
            dp[i] = true;  
        else if (i - x >= 0 and !dp[i - x])  
            dp[i] = true;  
        else if (i - y >= 0 and !dp[i - y])  
            dp[i] = true;  
        else
            dp[i] = false;  
    }  
    return dp[n];  
}  
int main()  
{  
    int x = 3, y = 4, n = 5;  
    if (findWinner(x, y, n))  
        cout << 'A';  
    else
        cout << 'B';  
    return 0;  
} 
 
        
             
        
        
        
Use a Ghost program follow throught with 2hyttlg5:6\:56
        
             
        
        
        
Answer:
No.
Explanation:
Because wives should make decisions for their life themselves.It helps them be self dependent so that they won't have to depend on their husbands. By letting them make decisions themselves they can get a successful career on their own effort and decisions.
 
 
        
             
        
        
        
On a printed circuit board, electronic parts will be mounted from the substrate side of the board. The leads jab through the substrate and the copper sheeting that has been carved. The leads are then soldered to the copper.
I hope the answer will help you. 
        
             
        
        
        
Answer:
#include <iostream>
#include <array>
using namespace std;
bool isPalindrome(string str)  
{  
 int length = str.length();  
 for (int i = 0; i < length / 2; i++)  
  if (toupper(str[i]) != toupper(str[length - 1 - i]))
  	return false;  
 return true;  
}
int main()
{
 array<string, 6> tests = { "madam", "abba", "22", "67876", "444244", "trymEuemYRT" };
 for (auto test : tests) {
  cout << test << " is " << (isPalindrome(test) ? "" : "NOT ") << "a palindrome.\n";
 }
}
Explanation:
The toupper() addition forces characters to uppercase, thereby making the comparison case insensitive.