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
Margarita [4]
3 years ago
10

JAVA CHALLENGE ZYBOOKs

Computers and Technology
1 answer:
exis [7]3 years ago
5 0

Answer:

Replace  /* Your solution goes here */ with:

<em>System.out.println(randGen.nextInt(49) + 100);</em>

<em>System.out.println(randGen.nextInt(49) + 100);</em>

<em />

Explanation:

Required

Statements to print two random numbers between 100 and 149 (both inclusive)

First, the random numbers must be generated. From the template given, the random object, randGen, has been created.

The syntax to then follow to generate between the interval is:

<em>randGen.nextInt(high-low) + low;</em>

Where:

high = 149 and low = 100

So, the statement becomes:

<em>randGen.nextInt(149 - 100) + 100;</em>

<em>randGen.nextInt(49) + 100;</em>

<em />

Lastly, print the statements:

<em>System.out.println(randGen.nextInt(49) + 100);</em>

<em>System.out.println(randGen.nextInt(49) + 100);</em>

<em />

You might be interested in
Why would "ExpirationDate” be a poor choice as a primary key?
denis23 [38]
<span>There could be more than one item with the same expiration date, and primary keys must be unique.</span>
4 0
4 years ago
Thank you very much for your email. ...... was very interesting​
Fynjy0 [20]

Answer:

hi everyone how was your day :)

Explanation:

6 0
4 years ago
Why must web designers select a common font?
Mnenie [13.5K]

Web designers select a common font To make the page easier to read

<u>Explanation:</u>

The taste and preferences of one person differs greatly with that of the other person. Some person likes one type of font in web design that appeals his eyes whereas it may be irritating to others. While designing a web page some of the important things must be taken into consideration in which the font type that you use is an important thing. .

Web pages usually have limited font types that you can use with. A wed design that is designed greatly with pleasing layouts and designs, visual cues, variations in order to ease the readers gains more visitors. The reason for which the web designers commonly select a standard font is to provide readers an easier way to read the website's contents.

3 0
4 years ago
Read 2 more answers
2. Now write a program named filereader.py that reads and displays the data in friends.txt. This program should also determine a
Andrew [12]

Answer:

see explaination

Explanation:

# python code filereader.py

import sys

import readline

from sys import stdin

import random

## Open the file with read only permit

f = open('inputfile.txt')

## Read the first line

sum = 0.0

count = 0

#read file till the file is empty

while True:

line = f.readline()

if ("" == line):

print "Average age of friends is", sum/count

break

list = line.split()

print "My friend ",list[0], " is", list[1]

sum = sum + int(list[1])

count = count + 1

f.close()

'''

inputfile.txt

Denny 24

Penny 28

Lenny 20

Jenny 24

output:

My friend Denny is 24

My friend Penny is 28

My friend Lenny is 20

My friend Jenny is 24

Average age of friends is 24.0

see screenshot at attachment

6 0
3 years ago
How are companies protecting their users from internet assault
cluponka [151]

Answer: Companies and organization are taking several steps to secure their user from internet abuse  .The methods are mentioned as follows:-

  • Offering security technologies in the form of package along with the service so that the protection resource is not required to be installed or bought from elsewhere such as antivirus technologies.
  • Using the web servers that are available with high security features
  • Using the websites that persist the built-in feature of giving virus or malicious interruption warnings so that user can become alert
  • Making users aware about internet abuse and provide information so that they can identify such happening in the service.

4 0
4 years ago
Other questions:
  • Which of the following is true of an enterprise search software? Select one:
    5·1 answer
  • Write a program named TypingGrades that allows a user to enter a student’s number of words typed. The output is the letter grade
    9·1 answer
  • What's a qat on a computer
    12·2 answers
  • What would happen if the bitmap or free list containing the information about free disk blocks was completely lost due to a cras
    9·1 answer
  • Write a program that declares constants to represent the number of inches, feet, and yards in a mile. Name the constants INCHES_
    6·1 answer
  • _____________ data is what is translated to digital format so it can be stored in a computer.
    10·1 answer
  • This feature allows you to adjust your view to see the lower and upper part of a document
    15·2 answers
  • How to get amount after a percentage increase in excel​
    8·2 answers
  • What is a blog . explain with example clearly .​
    14·1 answer
  • As part of your regular system maintenance, you install the latest operating system updates on your Windows 10 computer. After s
    12·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!