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
svetlana [45]
3 years ago
9

How to comment on brainly.com and I'm only 8-years-old so keep it simple please

Engineering
1 answer:
Harman [31]3 years ago
5 0

You can comment by pressing “ask about this question” under the question

You might be interested in
State the mathematical expression to define the availability of equipment over a specified time and operational availability?
Gelneren [198K]

Answer:

Availability=\dfrac{Up\ time}{Down\ time+Up\ time}

Explanation:

Availability:

  It define as the probability of system which perform desired task before showing any failure .

The availability can be define as follows

 Availability=\dfrac{Up\ time}{Down\ time+Up\ time}

Or we can say that

Availability=\dfrac{Up\ time}{total\ time}

Availability can also be express as

 Availability=\dfrac{MTBF}{MTBF+MTTR}

Where MTBF is the mean time between two failure.

MTTR is the mean time to repair.

7 0
3 years ago
Verify if 83 is a term in the arithmetic sequence 11,15,19,23
EleoNora [17]

Answer:

yes, it is

Explanation:

The sequence: (+4)

23,27,31,35,39,43,47,51,55,59,63,67,71,75,79,83

Hope this helps! :)

3 0
3 years ago
Write a program that uses the function isPalindrome given below. Test your program on the following strings: madam, abba, 22, 67
defon

Answer:

#include <iostream>

#include <string>

using namespace std;

bool isPalindrome(string str)

{

   int length = str.length();

   for (int i = 0; i < length / 2; i++)

   {

       if (tolower(str[i]) != tolower(str[length - 1 - i]))

           return false;

   }

   return true;

}

int main()

{

   string s[6] = {"madam", "abba", "22", "67876", "444244", "trymeuemyrt"};

   int i;

   for(i=0; i<6; i++)

   {

       //Testing function

       if(isPalindrome(s[i]))

       {

           cout << "\n " << s[i] << " is a palindrome... \n";

       }

       else

       {

           cout << "\n " << s[i] << " is not a palindrome... \n";

       }

   }    

       

   return 0;

}

5 0
3 years ago
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
Initially when 1000.00 mL of water at 10oC are poured into a glass cylinder, the height of the water column is 1000.00 mm. The w
Dafna11 [192]

Answer:

\mathbf{h_2 =1021.9 \  mm}

Explanation:

Given that :

The initial volume of water V_1 = 1000.00 mL = 1000000 mm³

The initial temperature of the water  T_1 = 10° C

The height of the water column h = 1000.00 mm

The final temperature of the water T_2 = 70° C

The coefficient of thermal expansion for the glass is  ∝ = 3.8*10^{-6 } mm/mm  \ per ^oC

The objective is to determine the the depth of the water column

In order to do that we will need to determine the volume of the water.

We obtain the data for physical properties of water at standard sea level atmospheric from pressure tables; So:

At temperature T_1 = 10 ^ 0C  the density of the water is \rho = 999.7 \ kg/m^3

At temperature T_2 = 70^0 C  the density of the water is \rho = 977.8 \ kg/m^3

The mass of the water is  \rho V = \rho _1 V_1 = \rho _2 V_2

Thus; we can say \rho _1 V_1 = \rho _2 V_2;

⇒ 999.7 \ kg/m^3*1000 \ mL = 977.8 \ kg/m^3 *V_2

V_2 = \dfrac{999.7 \ kg/m^3*1000 \ mL}{977.8 \ kg/m^3 }

V_2 = 1022.40 \ mL

v_2 = 1022400 \ mm^3

Thus, the volume of the water after heating to a required temperature of  70^0C is 1022400 mm³

However; taking an integral look at this process; the volume of the water before heating can be deduced by the relation:

V_1 = A_1 *h_1

The area of the water before heating is:

A_1 = \dfrac{V_1}{h_1}

A_1 = \dfrac{1000000}{1000}

A_1 = 1000 \ mm^2

The area of the heated water is :

A_2 = A_1 (1  + \Delta t  \alpha )^2

A_2 = A_1 (1  + (T_2-T_1) \alpha )^2

A_2 = 1000 (1  + (70-10) 3.8*10^{-6} )^2

A_2 = 1000.5 \ mm^2

Finally, the depth of the heated hot water is:

h_2 = \dfrac{V_2}{A_2}

h_2 = \dfrac{1022400}{1000.5}

\mathbf{h_2 =1021.9 \  mm}

Hence the depth of the heated hot  water is \mathbf{h_2 =1021.9 \  mm}

4 0
3 years ago
Other questions:
  • Dr. Thermo, only has one bottle of neon. However, he needs to run two experiments, each requiring its own bottle. Therefore, he
    13·1 answer
  • Where Does a Solar Engineer Work? <br> (2 sentences or more please)
    14·2 answers
  • Which conditions are required for nuclear fusion to begin
    8·1 answer
  • You are a designer of a new processor. You have to choose between two possible implementations (called M1 and M2) of the same ar
    5·1 answer
  • The flatbed truck carries a large section of circular pipe secured only by the two fixed blocks A and B of height h. The truck i
    14·2 answers
  • A stream of air enters a 7.00-cm ID pipe at a velocity of 30.0 m/s at 27.0°C and 1.80 bar (gauge). At a point downstrream, the a
    15·1 answer
  • A part has been tested to have Sut = 530 MPa, f = 0.9, and a fully corrected Se = 210 MPa. The design requirements call for the
    10·1 answer
  • Technician A says that latent heat is hidden heat and cannot be measured on a thermometer. Technician B says that latent heat is
    12·1 answer
  • Michelle is the general manager of a power plant. This morning, she will meet with city officials to discuss environmental issue
    5·1 answer
  • What is software certification? Discuss its importance in the changing scenario of software industry. ​
    15·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!