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
Sliva [168]
3 years ago
5

Code Problem 2 in Python 2.

Computers and Technology
1 answer:
nlexa [21]3 years ago
3 0

I've included my code in a picture. I hope this helps!

You might be interested in
Write a print statement that displays a random integer between 5 and 5000. Assume the random library is imported.
Contact [7]

Answer:

Explanation:

The following code is written in Java. It is a very simple three line statement (assuming that the random library was imported) that chooses a random integer value between 5 and 5000 and prints it to the screen using the println statement.

Random rand = new Random();

int randomNum = rand.nextInt((5000 - 5) + 1) + 5;

System.out.println(randomNum);

The random number generator is initialized and given a value between 5 and 5000. Since random number Generator will generate a number between 0 and the given value then subtracting 5 from the initial generated number makes sure that it is not more than 5000 and then adding 1 and 5 after wards makes sure that it is more than 5 always.

4 0
3 years ago
What is mean by SEO?
Gre4nikov [31]

Answer:

SEO = Search Engine Optimization

7 0
3 years ago
Read 2 more answers
Which type of front usually brings thunderclouds and storms
IrinaVladis [17]
Your anwser will be d
5 0
3 years ago
Read 2 more answers
Question # 2 Multiple Choice Which finger presses the H key on the keyboard? index finger on the right hand index finger on the
Lera25 [3.4K]
Index finger right hand!
Hope this helps! :)
8 0
3 years ago
Which of the following is a good technique to use when driving in an urban environment
nadya68 [22]

Answer:

A. Passing

Explanation:

Passing is a good technique to use when driving in an urban environment .

5 0
3 years ago
Read 2 more answers
Other questions:
  • A card ____ is a device that reads data, instructions, and information stored on flash memory cards.
    8·1 answer
  • How do you make your graphics ADA accessible in BlueGriffon?
    12·2 answers
  • I just wanna promote my 2 yt channels c: <br> (the channels are in the comments of this question)
    14·1 answer
  • Write a recursive method int power(int i, int j which determines teh result of i^j where j&gt;=0
    6·1 answer
  • What are some disadvantages of using a word processor over a type writer?​
    7·1 answer
  • Suppose you are given a relation R with four attributes ABCD. For each of the following sets of FDs, assuming those are the only
    13·1 answer
  • What is meant by astigmation​
    9·2 answers
  • Will this website ever get itself together to stop people from sending links?
    9·1 answer
  • The Carolina International School is more Earth-friendly than typical schools because
    7·1 answer
  • Which keyboard shortcut would you press to copy cells that are selected in a spreadsheet?
    14·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!