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
This group is usually small and the members share close, personal and enduring relationships. 
Vadim26 [7]

Answer:

sorry i put this, im just trying to get points from a challange to give them away

much much love the

<33

Explanation:

3 0
2 years ago
Which of these Georgia airports is MOST LIKELY the largest employment center in the state of Georgia?
iogann1982 [59]

Georgia airports MOST LIKELY the largest employment center in the state of Georgia is

D) Hartfield-Jackson International Airport

Explanation:

Hartfield-Jackson International Airport is the largest airport in the state in terms of scale of operation and the business of the flights in and out of the airport. It is in Atlanta and boasts of a greatly functional setup in the state.

It is the state's largest employer. It employs more than 63000 people in flied like transportation on the ground Airport tenant employees and the City of Atlanta tenant employees along with security personnel employed there.

5 0
3 years ago
Read 2 more answers
A 200 L of gas contained in a vessel under a pressure of 850 atm. What will be the new volume if the gas is changed to 1000 atm?
Keith_Richards [23]

Answer:

170 L

Explanation:

Boyles laws states that the pressure exerted by a gas is directly proportional to the volume it occupies provided that the temperature is held constant. Boyles law is given by:

PV = constant

P₁V₁ = P₂V₂

Given that the initial volume V₁ = 200 L, initial pressure P₁ = 850 atm, final volume V₂ = 1000 atm and final pressure = P₂.

Applying Boyles law gives:

P₁V₁ = P₂V₂

850(200) = 1000(V₂)

V₂ = 170 L

8 0
3 years ago
Andrea was recently fired from her job as a purchaser for a grocery store. She was told the reason for her dismissal was the alm
nekit [7.7K]

Explanation:

            Andrea who is working in grocery store was recently fired from her job as a purchaser. The reason for her dismissal as given to her was the continuous decaying of the meat and other produce in the stockroom.

           Andrea fail to accomplish the objective as a purchaser in the grocery store. Andrea was not aware of the materials at the stockroom and she purchase more and more produce and meats which leads to the wastage.

            She failed to make sure the materials needed were in proper amount. Andrea purchased meat and produce in large quantities, more than what is required. This made an excess of produce and meat and lead to rotting and wastage.

8 0
2 years ago
Compare and contrast the council-manager and commission form styles of city government.
MatroZZZ [7]
<span>In the mayor council government, the city council is the legislative body, while the mayor is the city's chief executive officer. In this government they have a weak mayor plan, which limits the power of the mayor and gives more power to the city council, and the strong-mayor plan, which gives more power to the mayor and less to the city council. In this type of government city council members and mayors are usually elected. The council-manager government is a commission with a city manager. Voters elect a city council. The council then appoints a city manager. The city manager then appoints the heads of city departments. They are the same because in both they elect a city council.

</span>I hope this helps, if you have any questions about this, feel free to ask. If it is no trouble, would you also be so kind as to mark this response as the brainliest?
4 0
3 years ago
Other questions:
  • This is not really a school question just answer to get some free points what is the most difficult thing about homeschooling du
    5·2 answers
  • Why is the caste system a central part of the Hindu religion
    12·2 answers
  • The great teacher who used reasoning to guide a student to knowledge and truth was _______.
    6·1 answer
  • What were the important strategies used by both romans and incas?
    13·1 answer
  • After two elements react to completion in a closed container, the ratio of their masses in the container will be the same as bef
    11·1 answer
  • Reason behind bush firing in australia?​
    7·2 answers
  • HELP???? I really don't understand
    14·2 answers
  • Run a taste test. Compare Pepsi vs. Coke, or bottled water vs. tap, or an expensive bottle of wine vs. the boxed stuff. Discuss
    10·1 answer
  • My brother need help on
    5·2 answers
  • Explain the interrelationship among population development and environment. Long answer​
    9·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!