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
Yuki888 [10]
4 years ago
5

Describe a tsunami when it is far from the coast

Computers and Technology
1 answer:
Y_Kistochka [10]4 years ago
7 0

I hope it is helpful for you ......

<h3>Mark me as Brainliest ......</h3>

You might be interested in
Write a program that generates a random number between 5 and 15 and asks the user to guess what the number is. If the user’s gue
stepan [7]

Answer: The c++ program for the number guessing game is given below.

#include <iostream>

using namespace std;

// method declaration without parameters

void game();

int main() {    

char reply;

// calling the game method

game();  

cout<<"Would you like to continue with the game ? Enter y to continue. Enter q to quit the game. " <<endl;

cin>>reply;  

if(reply == 'y')

    game();      

if(reply == 'q')

    cout<<"Quitting the game..."<<endl;  

return 0;

}

void game()

{

   int num, guess, attempt=0;  

num = (rand() % 10) + 6;  

cout<<endl<<"Welcome to the game of guessing the correct number "<<endl;  

   do

{    

    cout<<"Enter any number between 5 and 15. "<< endl;

    cin>>guess;      

    if(guess<5 || guess>15)

    {

        do

        {

            cout<<"Invalid number. Enter any number between 5 and 15. "<<endl;

            cin>>guess;

        }while(guess<5 || guess>15);

    }  

    if(guess < num)

    {

        cout<<"Too Low"<<endl;

        attempt++;        

    }

    if(guess > num)

    {

        cout<<"Too High"<<endl;

        attempt++;          

    }      

}while(guess != num);  

cout<<"Congratulations. You figured out my number in "<<attempt<< " attempts."<<endl;

}

Explanation:

The expression

(rand() % 10)

generates a random number between 0 and 9. 6 is added to generate a random number between 5 and 15.

The integer variable attempt is initialized to 0.

Next, user is asked to guess the number. If the user enters an invalid input, the do-while loop begins until a valid input is received from the user.

    cout<<"Enter any number between 5 and 15. "<< endl;

    cin>>guess;      

    if(guess<5 || guess>15)

    {

        do

        {

            cout<<"Invalid number. Enter any number between 5 and 15. "<<endl;

            cin>>guess;

        }while(guess<5 || guess>15);

    }  

User is prompted to input the guess using the same do-while loop as above. Until the user guesses the correct number, the loop continues. Each incorrect guess by the user, increments the variable attempt by 1. This represents the number of attempts done by the user to guess the correct number.

    if(guess < num)

    {

        cout<<"Too Low"<<endl;

        attempt++;        

    }

    if(guess > num)

    {

        cout<<"Too High"<<endl;

        attempt++;          

    }  

The random number generation and the guessing logic is put in a separate method game().

The entry and exit from the game only is put inside the main method.

4 0
4 years ago
Higher-speed Ethernet technologies use an electronic device known as a Hub rather than a switch True/False
Ivenika [448]
This should be false
4 0
3 years ago
What is the text that is entered into a cell used to identify the purpose of the worksheet, columns, and rows?
castortr0y [4]
Values - Numbers, formulas, and functions, that can be used in calculations; to enter a calculation, start with = and then the formula calculations. The text, date, number, or logical input that completes a condition that a field must meet for searching or filtering. For example, the field Author with the condition <b>equals</b> must include a value, such as <b>Amy</b>, to be complete.



Functions - Excel's built in formulas. A pre-written formula that takes a value or values, performs an operation, and returns a value or values. Use functions to simplify and shorten formulas on a worksheet, especially those that performs lengthy or complex calculations.




Labels - Entries that contains text and numerical information. NOT USED IN CALCULATIONS;  such as "2012 Sales." HELPS YOU IDENTIFY WORKSHEET ROWS AND COLUMNS, MAKING IT EASIER TO UNDERSTAND.




Date and Time: -  Haven't found anything on this one



Hope this helps
7 0
4 years ago
Read 2 more answers
Many languages do not use the characters of U.S. English. Suppose you wanted to be able to encode the characters of every langua
serg [7]
UTF-16 does this. One of the Chinese dialects has 28,000+ characters.
4 0
4 years ago
Rebecca turns on a flashlight in a dark room. The light from the flashlight travels in a straight line away from the flashlight.
puteri [66]

Answer:

The light from the flashlight hits a mirror on the wall.

Explanation:

When the light from the flashlight hits a mirror on the wall, what happened is called Reflection. Reflection of light, however, is a term that describes a change in direction of a light wave as it reflects off a surface from one medium to another (e.g reflected from a mirror back to a flashlight)

Hence, what could cause the light coming from the flashlight to stop moving in a straight line is option D: The light from the flashlight hits a mirror on the wall.

4 0
3 years ago
Other questions:
  • A server-side extension ________________. provides its services to the web server in a way that is totally transparent to the cl
    13·1 answer
  • The function below takes a single string parameter: sentence. Complete the function to return a list of strings indicating which
    5·1 answer
  • Personality traits such as thoughtfulness, empathy, self-control, and goal orientation belong to the _____ category.
    5·2 answers
  • The velocity dimension of Big Data refers to _____.
    15·1 answer
  • Formulate it as a tree search problem.
    15·1 answer
  • Anna's computer has slowed down. How might she improve her computer's performance? Select one of the options below as your answe
    10·1 answer
  • A final class can't be extended.<br><br> *True<br><br> *False
    9·1 answer
  • Basic python coding, What is the output of this program? Assume the user enters 2, 5, and 10.
    8·1 answer
  • True or False? Threat modeling is the practice of identifying and prioritizing potential threats and security mitigations to pro
    9·1 answer
  • Please answer ASAP!!!!!!
    15·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!