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
deff fn [24]
3 years ago
10

The class name for the program should be 'Decimal Floor'. In the main method you should perform the following: Create a Scanner

object. Input a decimal /double value using the Scanner object. Convert the input decimal/double value to an integer value (this will drop the decimal from the decimal/double value input). Output the decimal/double value input. Output the double/decimal value g
Computers and Technology
1 answer:
miv72 [106K]3 years ago
6 0

Answer:

Answered below

Explanation:

//Program is written in Java programming //language

Class Decimal floor{

public static void main (String args []){

Scanner dec = new Scanner(System.in);

System.out.print("Enter a decimal number: ");

double decimal = dec.nextline();

//Convert decimal to integer through casting

int wholeNumber = (int) decimal;

//Print out decimal number and whole number.

System.out.print(decimal);

System.out.println(wholeNumber);

}

}

You might be interested in
.Write an if-else statement for the following:
bija089 [108]

Answer:

Solution part of the question:

if(userTickets>5)  //compare the value of userTickets with 5.

       awardPoints = 10; // assign the 10 value to the award point

       else

       awardPoints=userTickets;// assign the userticket value to the awardpoint.

Output:

For the input 4 the output is 4.

For the input 5 the output is 5.

For the input 6 the output is 10.

For the input 7 the output is 10.

Explanation:

All the other part of the program is given on the question so here only if-else statement is given on the answer part. Which is pasted at the place of "/* Your solution goes here */" and the user can get the right answer.

  • In the "if" statement the value of "userTickets" variable is get compared by 5 and if it is greater than 5 than variable "awardpoint" assigns the '10' value.
  • Otherwise, with the help of "else" statement "userticket" variables value (which is the input value for the program) assign to the "awardpoint" variable.
8 0
4 years ago
Read 2 more answers
Two ways of calculating average returns are ______ and ______. Multiple select question. the arithmetic average the progressive
joja [24]

Answer:

"Geometric Average Return Example. Jennifer has invested $5,000 into a money market that earns 10% in year one, 6% in year two, and 2% in year three. If you were to calculate this using the arithmetic mean return, you would add the rates together and divide them by three, giving you an average of 6%."

Explanation:

6 0
2 years ago
Which online resource is usually not free?
Andrej [43]

Answer:

educational tutoring

Explanation:

7 0
3 years ago
Read 2 more answers
What IEEE 802.11 wireless standard supports devices only in the 5GHz range with speeds up to 4.9Gb/s because of accepting data f
yKpoI14uk [10]

The answer is 802.11ac  

802.11ac is a type if IEEE 802.11 wireless standards that supports Multiple Input, Multiple Output antennas on sending and receiving data. This type of wireless connection supports 2.4GHz signal or frequency and data speed transfer up to 4.9Gbps. Each device or antenna can run up to 400Mbps each and the maximum device it can handle is up to 8 antennas.

8 0
3 years ago
Programming: Write a recursive function to_number that forms the integer sum of all digit characters in a string. For example, t
scZoUnD [109]

yes

Explanation:

isn't really noted but if the sequence is in the given order the ("3at4") could be expressed in a ('0' to '9' )format

7 0
3 years ago
Other questions:
  • "Which of the following will help protect against a brute force attack?
    11·1 answer
  • Write a program having a concrete subclass that inherits three abstract methods from a superclass. Provide the following three i
    11·1 answer
  • • Two advertisers A and B
    8·1 answer
  • A 9-year old male castrated Westie presents on emergency after being rescued from a house fire. On presentation, the dog has a r
    14·1 answer
  • Does Marietta college have open admission
    12·1 answer
  • 1. What is a digital networking app?
    12·2 answers
  • Rosa has received reports by several users that one of the Linux servers is no longer accessible. She is able to remote into the
    10·1 answer
  • What if the result of conectivity testing is 100%Loss?Explain.​
    14·1 answer
  • The specific instructions that a computing device needs to boot up and control the hardware
    12·1 answer
  • Which of the following is a part of a DML statement? a. CREATE b. ALTER c. DROP d. SELECT. SE_LECT
    5·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!