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
Which influences personality and social behavior?
andrezito [222]

Answer:

D: all of these

Explanation:

all of the given answers can influence personality and social behaviour

3 0
3 years ago
A change in price of an item will cause which kind of curve change?
iVinArrow [24]

The demand curve only shows the relationship between the price and quantity. If one of the other determinants changes, the entire demand curve shifts.  B Shifts the curve

4 0
3 years ago
Read 2 more answers
Describe the importance and significance of research in effectively planning and executing a public relations program. Provide l
Zina [86]

Explanation:

Public relations can be understood as a strategic communication process that companies use to build relationships that promote mutual benefits between companies and their target audience.

Surveys are an extremely effective tool for the formulation of strategic public relations plans, so it is necessary that they be conducted in line with the company's objectives, to eliminate weaknesses and increase the perception capacity of how employees and the public see the company. Through opinion polls and data collection, it is possible for the company to obtain subsidies that will help it find the points that the company's image needs to be improved, assisting in better decision making by public relations employees in order to positively affect the vision of the target audience.

3 0
3 years ago
Hitler contributed to the rise of Nazism by promising the German people several things. Which of the following promises did he N
Leni [432]
He didn’t make one promises which was he was gonna make country happy
6 0
3 years ago
Read 2 more answers
Which steps can an individual take to improve credit card score
SVEN [57.7K]

add me on snap alexetienne1234

4 0
3 years ago
Read 2 more answers
Other questions:
  • What is one reason historians can rely on government records for accurate historical information?
    12·1 answer
  • A person who is on trial for a crime and “Takes the Fifth” is _____.
    7·1 answer
  • In the u.s., if a consumer finds a problem on her credit report, she must first send a letter to the credit-reporting agency. un
    8·1 answer
  • What do the two figures in the cartoon represent?
    5·1 answer
  • Stress hormones at the time of learning _____ new memory formation; the presence of stress hormones at the time of recall _____
    10·1 answer
  • Who was the last egyptian ruler?
    5·2 answers
  • What is the electoral college and how does it work?
    11·1 answer
  • 1. A historian looks for the firsthand evidence about a event in which type of resource?
    6·2 answers
  • Why is there a helicopter circling my neighborhood right now
    12·1 answer
  • What is the main idea for the night to remember article
    15·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!