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
Igoryamba
3 years ago
8

Write a program that generates a random number between 1 and 100 and ask the user to guess what the number is. if the user's gue

ss is higher than the random , number, the
Computers and Technology
1 answer:
Mars2501 [29]3 years ago
4 0
You didn't specify a language, so here it is in C++.


#include <iostream>
#include <ctime>

int main()
{
    srand(time(NULL));

    int random, guess;

    random = rand() % 100 + 1;
    std::cout << "Random number generated!\nGuess the number: ";

    std::cin >> guess;

    if (guess == random)
        std::cout << "Yes!";
    else
        std::cout << "No!";

    return 0;
}
You might be interested in
TULPCOAONIAC<br>TRUOESP<br> this is un scrambled word​
MaRussiya [10]

<em>Answer:</em>

1.)OCCUPATIONAL

2.)POSTURE

<em>This is the answer thank youu!</em>♡︎♡︎

4 0
3 years ago
Read 2 more answers
Can anyone help me ?
IrinaVladis [17]

Answer:

System.out.printIn("Hello, world" );

Its " ); " and not " ) ; "

5 0
2 years ago
A(n) ____ occurs when a situation results in service disruptions for weeks or months, requiring a government to declare a state
Scorpion4ik [409]

I believe the answer is 'worst-case scenario.'

8 0
3 years ago
Match the protocols to their use. HTTP POP3 SMTP FTP You check email in your inbox. arrowRight You send an email to a friend. ar
emmainna [20.7K]

Answer:

HTTP stands for "Hyper Text Transfer Protocol" and is used for transferring readable documents across the internet. This matches the action "You visit a website"

POP3  stands for "Post Office Protocol 3" and is used for reading e-mail.  This matches to the action "You check email in your inbox"

SMTP stands for "Simple Mail Transfer Protocol", and is used for sending email.  This matches the action "You send an email to a friend".

FTP stands for "File Transfer Protocol", and is used for transferring files to and from other machines.  This matches the action "You transfer a text document", although truthfully that description is so vague it actually matches all four of the given protocols.

3 0
2 years ago
Select the correct answer.
Marianna [84]
The answer is C) Header. If you go in Word and use the header feature, and put a logo there, it appears on all pages.
7 0
3 years ago
Other questions:
  • You can double-click a window’s title bar to maximize the window. true false
    9·1 answer
  • Overloading in methods are popular in programming, and why overloading is important.
    6·1 answer
  • write an algorithm that gets the price for item A plus the quantity purchased. The algorithm prints the total cost, including a
    5·1 answer
  • What method of the Math object can be used to return the largest value from the values that are passed to it?
    14·1 answer
  • All of the following are ways to save money on transportation except :
    7·1 answer
  • Text can be easily moved from one location to another using _____.
    15·1 answer
  • Tara needs to select all of the text in a Word document. Which keyboard shortcut will achieve this goal?
    9·2 answers
  • Charles Mott works for a company called VeriSign that acts a trusted third party to verify information. One of Charles' largest
    15·1 answer
  • Hey friends,<br><br> What is a IT form?<br><br> thanks
    12·1 answer
  • Think of an example in your life where a number could be described as data, information, and knowledge
    14·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!