subject

Follow the directions below to submit Assignment 2: Create a Java program.
The class name for the program should be 'DecimalFloor'.
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 after converting the integer value back to a decimal value.
Pseudo flowchart for the assignment program:
Create a Scanner object using the Scanner class found in the java. util package.
Output a prompt asking the using to input a decimal value.
Accept the input value into a variable capable of holding decimal values.
Convert the decimal value to an integer value. This will drop all the decimal positions to the right of the decimal.
Covert the integer value to a double value.
Output the initial decimal value input.
Output the double value from step 5.

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 21.06.2019 21:00
Analyze the following code. int x = 1; while (0 < x) & & (x < 100) system.out.println(x++); a. the loop runs forever. b. the code does not compile because the loop body is not in the braces. c. the code does not compile because (0 < x) & & (x < 100) is not enclosed in a pair of parentheses. d. the numbers 1 to 99 are displayed. e. the numbers 2 to 100 are displayed.
Answers: 3
question
Computers and Technology, 22.06.2019 16:00
Why should characters such as / \ " ' * ; - ? [ ] ( ) ~ ! $ { } < > # @ & | space, tab, and newline be avoided in file names?
Answers: 2
question
Computers and Technology, 22.06.2019 17:30
1. before plugging in a new device to a computer you should unplug all other devices turn off the computer turn on the computer 2. many of the maintenance tools for a computer can be found in the control panel under administrative tools display personalization
Answers: 1
question
Computers and Technology, 22.06.2019 19:30
When creating a presentation in libre office impress, where does the editing of slides take place?
Answers: 1
You know the right answer?
Follow the directions below to submit Assignment 2: Create a Java program.
The class name for...
Questions
question
Physics, 20.02.2021 02:30
question
Mathematics, 20.02.2021 02:30
question
History, 20.02.2021 02:30
question
Advanced Placement (AP), 20.02.2021 02:30
question
Mathematics, 20.02.2021 02:30
Questions on the website: 13722360