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
cluponka [151]
3 years ago
12

Write convert() method to cast double to int Complete the convert() method that casts the parameter from a double to an integer

and returns the result. Note that the main() method prints out the returned value of the convert() method.
Ex: If the double value is 19.9, then the output is: 19
Ex: If the double value is 3.1, then the output is: 3
Computers and Technology
1 answer:
alexgriva [62]3 years ago
8 0

Answer:

Write convert() method to cast double to int Complete the convert() method that casts the parameter from a double to an integer and returns the result. Note that the main() method prints out the returned value of the convert() method.

Ex: If the double value is 19.9, then the output is: 19

Ex: If the double value is 3.1, then the output is: 3

Explanation:

<h3>plz bhai mera answer ko brainliest kar do.....</h3>
You might be interested in
Within an organization, a(n) ____ is a group of individuals who are united by shared interests or values and who have a common g
Stells [14]

Answer:

Community of interest  is the correct answer.

Explanation:

IDS(Intrusion Detection Systems) is protected for the intrusion's privacy through appealing to the community of interest. So, the community of interest is the number of individuals who are collectively merged or combined for the purpose of sharing their interests or values for achieving an individual goal for functioning the objective of any particular organization.

3 0
4 years ago
Item 19 A student pushes a box across a rough horizontal floor. If the amount of work done by the student on the box is 100 J an
tatiyna

Answer:

60 J

Explanation:

Given,

Work done to push the box = 100 J

Energy dissipated by friction = 40 J.

According to work energy theorem work done is equal to change in kinetic energy.

Change in Kinetic energy = Work done by student + Work done by friction

Change in Kinetic energy = 100 J - 40 J

Work done by the friction will be negative because it will act in opposite direction of force applied.

Change in Kinetic energy = 60 J

4 0
4 years ago
Which part of the cpu holds the memory address for the next instruction to be processed?
aleksley [76]
Register, google CPU registers for more info
7 0
4 years ago
You have selected the System Board Configuration option of the HP System Board Configuration Tool, but you receive a message tha
strojnjashka [21]

Answer:

Exit the tool and obtain the system's serial number and UUID from HP Computer Setup utility.

8 0
3 years ago
Given an integer variable i and a floating-point variable f, that have already been given values, write a statement that writes
Tju [1.3M]

Answer:

System.out.println("i = " + i + " f = " + f);

Explanation:

The code above has been written using Java's syntax.

To print or display statements to the console, one of the methods to use is the System.out.println() method.

According to the question, the statement to output is i=value-of-i f=value-of-f which is a string of texts.

Note that value-of-i and value-of-f are already stored in variables i and f respectively. Therefore to print them as part of the string text statement, it is important to concatenate them using the "+" operator as follows:

"i = " + i + " f = " + f

If the value of i is 25 and the value of f is 12.34 then the above statement, after successful concatenation reads:

"i = 25 f = 12.34"

which can then be shown on the console using System.out.println() method as follows:

System.out.println("i = " + i + " f = " + f);

Hope this helps!

8 0
3 years ago
Other questions:
  • According to the partnership for 21st-century learning critical thinking ability includes all the following skills except
    15·1 answer
  • What type of mitigation provision is utilized when redundant communications links are installed?
    8·1 answer
  • How could you insert a new row between rows 20 and 21?
    10·2 answers
  • Computer simulations can: A. accurately predict the weather a month in advance.
    11·1 answer
  • What is different between attaching a file on an email program versus a smartphone?
    12·2 answers
  • Select the correct answer.
    9·2 answers
  • Write the full form of E-mail?​
    6·2 answers
  • Guyssss......urgent helppp plsss answerrrr
    5·1 answer
  • How to write my name in binary code ? Rivas
    7·2 answers
  • Relational operators compare values and determine whether a condition of an if statement is true or false.
    12·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!