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
In-s [12.5K]
1 year ago
12

Suppose a scanner object is created as follows: scanner input = new scanner(system.in); what method do you use to read a real nu

mber?
Computers and Technology
1 answer:
Allushta [10]1 year ago
6 0

Suppose a scanner object is created as follows: scanner input = new scanner(system.in); the method you use to read a real number is Scanner input = new Scanner(System.in); input. nextDouble();

This is because the Scanner input = new Scanner(System.in); input. nextDouble(); command creates the input for a number that contains both whole numbers and decimal numbers and this is why double is used and not int.

<h3>What is a Double in Programming?</h3>

This refers to the fundamental data type that is encoded into the compiler and used to define numeric variables holding numbers with decimal points

Hence, we can see that Suppose a scanner object is created as follows: scanner input = new scanner(system.in); the method you use to read a real number is Scanner input = new Scanner(System.in); input. nextDouble();

This is because the Scanner input = new Scanner(System.in); input. nextDouble(); command creates the input for a number that contains both whole numbers and decimal numbers and this is why double is used and not int.

Read more about double and float here:

brainly.com/question/13260053

#SPJ1

You might be interested in
A digital system has been developed to measure temperatures in the range -10˚C to 100˚C. If the accuracy of the system is such t
8090 [49]

If you have 10 bits available then you can interpret any number in range [0,2^{10}-1]=[0,1023].

The system therefore could represent the actual temperature of 39°C.

Hope this helps.

7 0
3 years ago
how much should an organization consider moving into the cloud before full outsourcing starts making more business sense
PIT_PIT [208]

Answer:

47

Explanation:

capital steez

8 0
3 years ago
Read 2 more answers
Is Flip book drawings, frame by frame (need great drawing skills).
lyudmila [28]
I would say traditional animation
7 0
3 years ago
Edhesive 11.1 lesson practice please
zloy xaker [14]

Answer:

1. Bits

2. Bitrate

3. The amount of time it takes for bits to travel from one place to another.

4. Used to send bits wirelessly.

5. Cables that carry light and dramatically increase the speed and accuracy of information over the internet.

6. 8

7. The number of bits per second a system can transmit.

Explanation:

hey lol

3 0
2 years ago
PLSSSSS HELPP!! Population biologists are concerned about invasive species such as the zebra mussel found in North American wate
elixir [45]

Answer: A.The introduced species compete for resources more effectively than native species.

Explanation:

An introduced species is also called the exotic species and this is an organism which is not a native organism or specie and therefore isn't native to the place but rather it's being transported to the place through the activities of human being.

When the introduced species are introduced to a particular area, they compete with the natives for the available resources and often do this more effectively than the other native species.

Therefore, the correct option is A.

4 0
3 years ago
Other questions:
  • The _____ icon allows the user to improve the brightness, contrast, or sharpness of the picture.
    10·1 answer
  • What is computer engineering?
    11·1 answer
  • Ooooooooooooooooooooooooooooh im blinded by the lightssssssssss
    11·1 answer
  • Select the correct answer.
    9·1 answer
  • Write a class named RetailItem that holds data about an item in a retail store. The class should store the following data in att
    15·1 answer
  • When a client computer wants to connect to a service instance, what specific name type does it use to find the service?
    9·1 answer
  • Graphic software task​
    7·1 answer
  • What are the 3 rules of music<br><br> ps: there is no music subject so i had to put something else
    15·2 answers
  • Non related to school but im interested,<br><br> Who here actually watches dream smp be honest
    9·2 answers
  • Use the function varimp() on the output of train() and save it to an object called imp:_____.
    5·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!