Answer:
//Define the header file
#ifndef PLAYER_H
#define PLAYER_H
//header file.
#include <string>
//Use the standard namespace.
using namespace std;
//Define the class Player.
class Player
{
//Declare the required data members.
string name;
int score;
public:
//Declare the required
//member functions.
void setName(string par_name);
void setScore(int par_score);
string getName();
int getScore();
}
//End the definition
//of the header file.
#endif
Player.cpp:
//Include the "Player.h" header file,
#include "Player.h"
//Define the setName() function.
void Player::setName(string par_name)
{
name = par_name;
}
//Define the setScore() function.
void Player::setScore(int par_score)
{
score = par_score;
}
//Define the getName() function.
string Player::getName()
{
return name;
}
//Define the getScore() function.
int Player::getScore()
{
return score;
}
It’s in Wolfsburg Germany
Tell me why i got this question got it right and now won’t remember but i’ll get back at you when i remember
<u>Explanation</u>:
(a)
![f=A+A B+A C\\=A[1+B+C]=A \quad[1+x=1]\\F=A](https://tex.z-dn.net/?f=f%3DA%2BA%20B%2BA%20C%5C%5C%3DA%5B1%2BB%2BC%5D%3DA%20%5Cquad%5B1%2Bx%3D1%5D%5C%5CF%3DA)
No gate is required to implement this function
(b)

Note: Refer the first image.
(c)
Note: Refer the second image
(d)
![\begin{aligned}f=& A B \bar{c}+\overline{A+\bar{c}} \\=& A B \bar{c}+\bar{A} \bar{c}=\bar{A} B \bar{c}+\bar{A} c \\f=& \bar{A}[c+B \bar{c}] . \\& f=\bar{A} B+\bar{A} c=\bar{A}(B+c)\end{aligned}](https://tex.z-dn.net/?f=%5Cbegin%7Baligned%7Df%3D%26%20A%20B%20%5Cbar%7Bc%7D%2B%5Coverline%7BA%2B%5Cbar%7Bc%7D%7D%20%5C%5C%3D%26%20A%20B%20%5Cbar%7Bc%7D%2B%5Cbar%7BA%7D%20%5Cbar%7Bc%7D%3D%5Cbar%7BA%7D%20B%20%5Cbar%7Bc%7D%2B%5Cbar%7BA%7D%20c%20%5C%5Cf%3D%26%20%5Cbar%7BA%7D%5Bc%2BB%20%5Cbar%7Bc%7D%5D%20.%20%5C%5C%26%20f%3D%5Cbar%7BA%7D%20B%2B%5Cbar%7BA%7D%20c%3D%5Cbar%7BA%7D%28B%2Bc%29%5Cend%7Baligned%7D)
Note: Refer the third image
(e)
![\begin{aligned}f=& A \bar{B}+\bar{B} C+A \bar{B} \\&=\bar{B}[A+\bar{A}+c] \\&=\bar{B}[1+C]\end{aligned}](https://tex.z-dn.net/?f=%5Cbegin%7Baligned%7Df%3D%26%20A%20%5Cbar%7BB%7D%2B%5Cbar%7BB%7D%20C%2BA%20%5Cbar%7BB%7D%20%5C%5C%26%3D%5Cbar%7BB%7D%5BA%2B%5Cbar%7BA%7D%2Bc%5D%20%5C%5C%26%3D%5Cbar%7BB%7D%5B1%2BC%5D%5Cend%7Baligned%7D)

(f)
![\begin{aligned}f &=A B C+A B D+A B C \\&=A B[C+C]+A B D \\&=A B+A B D \\&=B[A+A D] \\&=B[A+D] \\\therefore & A=B[A+D]\end{aligned}](https://tex.z-dn.net/?f=%5Cbegin%7Baligned%7Df%20%26%3DA%20B%20C%2BA%20B%20D%2BA%20B%20C%20%5C%5C%26%3DA%20B%5BC%2BC%5D%2BA%20B%20D%20%5C%5C%26%3DA%20B%2BA%20B%20D%20%5C%5C%26%3DB%5BA%2BA%20D%5D%20%5C%5C%26%3DB%5BA%2BD%5D%20%5C%5C%5Ctherefore%20%26%20A%3DB%5BA%2BD%5D%5Cend%7Baligned%7D)
Note: Refer the fourth image
I believe number 4 I could be wrong but I think it’s 4