Question: CHALLENGE ACTIVITY 3 . 2 . 2 : Output formatting. 5 2 2 5 6 2 3 5 7 8 1 9 4 , 9
CHALLENGE
ACTIVITY
: Output formatting.
Jump to level
Double length and integer amountCkanged are read from input. Output the following:
length as a floatingpoint value, followed by
amountChanged as an octal integer value, followed by
length as a floatingpoint value in scientific notation, followed by
End each output with a newline.
Ex If the input is then the output is:
import java.util. Scanner;
public class OutputNotation
public static void mainString args
Scanner scnr new Scanner
System.in;
double length;
int amountChanged;
length scnr nextDouble;
amountChanged nextInt ;
Y Your code goes here
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
