1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
Jobisdone [24]
3 years ago
13

PLEEEAASSSSEEEE HELP ME!!

Engineering
1 answer:
vova2212 [387]3 years ago
8 0

Answer:

I cant see the words

Explanation:

You might be interested in
computer language C++ (Connect 4 game)( this is all the info that was givin no input or solution) I used the most recent version
Mariana [72]

Answer:

C++ code explained below

Explanation:

#include "hw6.h"

//---------------------------------------------------

// Constructor function

//---------------------------------------------------

Connect4::Connect4()

{

ClearBoard();

}

//---------------------------------------------------

// Destructor function

//---------------------------------------------------

Connect4::~Connect4()

{

// Intentionally empty

}

//---------------------------------------------------

// Clear the Connect4 board

//---------------------------------------------------

void Connect4::ClearBoard()

{

// Initialize Connect4 board

for (int c = 0; c < COLS; c++)

for (int r = 0; r < ROWS; r++)

board[r][c] = ' ';

// Initialize column counters

for (int c = 0; c < COLS; c++)

count[c] = 0;

}

//---------------------------------------------------

// Add player's piece to specified column in board

//---------------------------------------------------

bool Connect4::MakeMove(int col, char player)

{

// Error checking

if ((col < 0) || (col >= COLS) || (count[col] >= ROWS))

return false;

// Make move

int row = count[col];

board[row][col] = player;

count[col]++;

return true;

}

//---------------------------------------------------

// Check to see if player has won the game

//---------------------------------------------------

bool Connect4::CheckWin(char player)

{

// Loop over all starting positions

for (int c = 0; c < COLS; c++)

for (int r = 0; r < ROWS; r++)

if (board[r][c] == player)

{

// Check row

int count = 0;

for (int d = 0; d < WIN; d++)

if ((r+d < ROWS) &&

(board[r+d][c] == player)) count++;

if (count == WIN) return true;

 

// Check column

count = 0;

for (int d = 0; d < WIN; d++)

if ((c+d < COLS) &&

(board[r][c+d] == player)) count++;

if (count == WIN) return true;

 

// Check first diagonal

count = 0;

for (int d = 0; d < WIN; d++)

if ((r+d < ROWS) && (c+d < COLS) &&

(board[r+d][c+d] == player)) count++;

if (count == WIN) return true;

 

// Check second diagonal

count = 0;

for (int d = 0; d < WIN; d++)

if ((r-d >= 0) && (c+d < COLS) &&

(board[r-d][c+d] == player)) count++;

if (count == WIN) return true;

}

return false;

}

//---------------------------------------------------

// Print the Connect4 board

//---------------------------------------------------

void Connect4::PrintBoard()

{

// Print the Connect4 board

for (int r = ROWS-1; r >= 0; r--)

{

// Draw dashed line

cout << "+";

for (int c = 0; c < COLS; c++)

cout << "---+";

cout << "\n";

// Draw board contents

cout << "| ";

for (int c = 0; c < COLS; c++)

cout << board[r][c] << " | ";

cout << "\n";

}

// Draw dashed line

cout << "+";

for (int c = 0; c < COLS; c++)

cout << "---+";

cout << "\n";

// Draw column numbers

cout << " ";

for (int c = 0; c < COLS; c++)

cout << c << " ";

cout << "\n\n";

}

//---------------------------------------------------

// Main program to play Connect4 game

//---------------------------------------------------

int main()

{

  int choice;

  int counter = 0;

  srand (time(NULL));

  Connect4 board;

  cout << "Welcome to Connect 4!" << endl << "Your Pieces will be labeled 'H' for human. While the computer's will be labeled 'C'" << endl;

  board.PrintBoard();

  cout << "Where would you like to make your first move? (0-6)";

  cin >> choice;

  while (board.MakeMove(choice,'H') == false){

  cin >> choice;

  }

  counter++;

  while (board.CheckWin('C') == false && board.CheckWin('H') == false && counter != 21){

  while (board.MakeMove(rand() % 7, 'C') == false){}

  board.PrintBoard();

  cout << "Where would you like to make your next move?" << endl;

  cin >> choice;

  board.MakeMove(choice,'H');

  while (board.MakeMove(choice,'H') == false){

  cin >> choice;

  }

  counter++;

  }

 

  if (board.CheckWin('C')){

  cout << "Computer Wins!" << endl;}

  else if (counter == 21){cout << "Tie Game!" << endl;}

  else {cout << "Human Wins!" << endl;}

  board.PrintBoard();

}

4 0
3 years ago
Check the level of motor oil in your engine by ?
Usimov [2.4K]

Answer:

cpct gvxjjxjhdfjokjdzfjiyddzzsjhxf

6 0
2 years ago
A resource has value, and people are willing to pay for it most likely because the resource is
Galina-37 [17]

Answer:

abundant

Explanation:

6 0
3 years ago
Read 2 more answers
Find the power and the rms value of the following signal square: x(t) = 10 sin(10t) sin(15t)
ArbitrLikvidat [17]

Answer:

\mathbf{P_x =25 \ watts}

\mathbf{x_{rmx} = 5 \ unit}

Explanation:

Given that:

x(t) = 10 sin(10t) . sin (15t)

the objective is to find the power and the rms value of the following signal square.

Recall that:

sin (A + B) + sin(A - B) = 2 sin A.cos B

x(t) = 10 sin(15t) . cos (10t)

x(t) = 5(2 sin (15t). cos (10t))

x(t) = 5 × ( sin (15t + 10t) +  sin (15t-10t)

x(t) = 5sin(25 t) + 5 sin (5t)

From the knowledge of sinusoidial signal  Asin (ωt), Power can be expressed as:

P= \dfrac{A^2}{2}

For the number of sinosoidial signals;

Power can be expressed as:

P = \dfrac{A_1^2}{2}+ \dfrac{A_2^2}{2}+ \dfrac{A_3^2}{2}+ ...

As such,

For x(t), Power  P_x = \dfrac{5^2}{2}+ \dfrac{5^2}{2}

P_x = \dfrac{25}{2}+ \dfrac{25}{2}

P_x = \dfrac{50}{2}

\mathbf{P_x =25 \ watts}

For the number of sinosoidial signals;

RMS = \sqrt{(\dfrac{A_1}{\sqrt{2}})^2+(\dfrac{A_2}{\sqrt{2}})^2+(\dfrac{A_3}{\sqrt{2}})^2+...

For x(t), the RMS value is as follows:

x_{rmx} =\sqrt{(\dfrac{5}{\sqrt{2}} )^2 +(\dfrac{5}{\sqrt{2}} )^2 }

x_{rmx }=\sqrt{(\dfrac{25}{2} ) +(\dfrac{25}{2} ) }

x_{rmx }=\sqrt{(\dfrac{50}{2} )}

x_{rmx} =\sqrt{25}

\mathbf{x_{rmx} = 5 \ unit}

8 0
3 years ago
A 2 m3 rigid tank initially contains air at 100 kPa and 22 degrees C. The tank is connected to a supply line through a valve. Ai
Vaselesa [24]

Answer:

a. 9.58kgs b. 340.32KJ

Explanation:

Volume of tank= 2m³

Initial Pressure Pi= 100KPa

Initial Temperature Ti= 22 C= 295K

Line Pressure P₁= 600 KPa

Line Temperature T= 22 C= 295K

Final Pressure P2= 600 KPa

Final Temperature T2= 77 C= 350K

Use Ideal Gas Equation

PV= mRT

P₁V₁= m₁RT₁

m₁= (100 x 2)/(0.287 x 295) = 2.3622kg

P₂V₂= m₂RT₂

m₂= (600 x 2)/(0.287 x 350) = 11.946 kg

Since valve is closed and no mass leave

m₁ + mi = m₂ + me

as per above condition me= 0

mi= m₂ - m₁ = 11.946 - 2.3622 = 9.5838kg

Applying energy equation

m₁u₁ + mihi + Q = m₂u₂ + mehe + W

me and W=0

m₁u₁ + mihi + Q = m₂u₂

m₁CvT₁ + miCpTi + Q =  m₂CvT₂

Q =   m₂CvT₂- m₁CvT₁ - miCpTi

Q = (11.946 x 0.717 350) - (2.3622 x 0.717 x 295) - (9.5868 x 1.004 x 295)

Q = -340.321 KJ (Negative sign doesn't matter as energy is not a vector quantity)

4 0
4 years ago
Other questions:
  • If 1 uF capacitor is fully charged with 120 V across it, how much energy is stored in it? (a) 7.2 kJ (b) 7.2 mJ (c) 0.12 mJ (d)
    6·1 answer
  • Which process is a from of mechanical weathering
    8·1 answer
  • Explain why the following acts lead to hazardous safety conditions when working with electrical equipmentA) Wearing metal ring o
    11·1 answer
  • -0-1"<br> -0<br> -20<br> -15<br> -10<br> 0<br> -5
    9·1 answer
  • Whats is the purpose of the stator winding​
    13·1 answer
  • How much memory can a 32 -bit processor support ?
    13·1 answer
  • Calculate the number of vacancies per cubic meter at 1000∘C for a metal that has an energy for vacancy formation of 1.22 eV/atom
    14·1 answer
  • What would happen if the brake pedal was released while the bleed screw was open during brake bleeding?
    7·1 answer
  • Explain the problems and their possible solution for electricity problems ?​
    8·1 answer
  • When framing a building, a simple way to estimate the total amount of wall studs needed is to allow
    7·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!