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
Thepotemich [5.8K]
3 years ago
14

True or False? When a floating-point value is assigned to an integer variable, the fractional part is truncated.

Social Studies
1 answer:
ivanzaharov [21]3 years ago
4 0

Answer:

The answer is "True".

Explanation:

The program to convert floating- point number into integer number can be given as follows:

Program:

public class convert //defining class convert

{

//main

public static void main(String[] aq)  //defining main method

{

float value=30.14f; //defining float variable and assign value

int score = (int)value;  //converting float to integer and store in score variable.

System.out.println("convert floating-point number into integer Number: "); //message

System.out.print(score); //print value.

}

}

Output:

convert floating-point number into integer Number:  

30

In the above java code, firstly the class convert is defined, inside this class, the main method is declared, in the method two-variable "value and score" is declared, in which variable "value" is float variable, that holds a value, that is "30.14f".

In the next line, an integer variable score is defined, which uses type casting to convert float number into integer number, and in the next step, the print function is used, that print score variable value.

You might be interested in
What happends when endoplasmic reticulum food and energy enters the cell
Amanda [17]

Answer: well that's da answer

Explanation:it turns to mush.

this is an improvement by someone else:

it goes through the mitochondria, through the lysosomes, and then the vacuoles, goes through the endoplasmic reticulum, and finally out of the golgi bodies. that's how food and energy enters your body.

     

4 0
4 years ago
Blank was made head of the union army by lincon
GREYUIT [131]
Yes       because he was the head of the army                                     

4 0
3 years ago
Read 2 more answers
Geologists have drilled holes into earth to bring up 3 words
N76 [4]

Geologists have drilled holes into earth to bring up 3 words which is Scientific drilling into the Earth.

<h3>What is Scientific drilling into the Earth?</h3>

Scientific drilling into the Earth  can be described as the way by which the  scientists  usually  probe the Earth's sediments as well as crust.

It should be noted that drilling technology can unearth samples of connate fluids , hence Geologists have drilled holes into earth to bring up 3 words which is Scientific drilling into the Earth and they are essential part of the society because they can help in production of water such as boreholes for communities.

Learn more about Geologists on:

brainly.com/question/12482408

#SPJ1

8 0
2 years ago
How did the geography of ancient Greece contribute to the development of their civilization?(in paragraph form)
Tpy6a [65]

Answer:

Explanation:

The geography of the region helped to shape the government and culture of the Ancient Greeks. Geographical formations including mountains, seas, and islands formed natural barriers between the Greek city-states and forced the Greeks to settle along the coast.

Greece's steep mountains and surrounding seas forced Greeks to settle in isolated communities. Travel by land was hard, and sea voyages were hazardous. Most ancient Greeks farmed, but good land and water were scarce. Many ancient Greeks sailed across the sea to found colonies that helped spread Greek culture.

5 0
3 years ago
During his tenure as a prosecutor, Larson had once helped to book an innocent man in a murder trial. Following this incident he
Andru [333]

Answer:

Major depressive disorder is the correct answer.

Explanation:

5 0
4 years ago
Other questions:
  • 12. Explain how the civic virtues of the ancient romans inspired the founding fathers' version of how citizens should conduct th
    12·1 answer
  • Estuaries are among the most productive ecosystems because they are ?
    6·1 answer
  • the youth shows general apathy towards human rights violations how can you as young person prevent human rights violations from
    10·2 answers
  • If Russia launches a satellite into orbit around Jupiter, which nation then owns the satellite?
    13·1 answer
  • Why so many women and children worked in industrial labor force
    10·2 answers
  • Why would the Quartering Act have upset a colonist?
    6·1 answer
  • How is Africa still suffering from this time in history?
    5·1 answer
  • Que capa de la tierra tienen la misma edad
    8·1 answer
  • A true false test is an example of using
    8·2 answers
  • Which of the following is an agent of socialization? a. A grandparent c. TV b. School d. All of the above Please select the best
    7·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!