Question: CHALLENGE ACTIVITY 3 . 2 . 2 : Output formatting. 5 2 2 5 6 2 3 5 7 8 1 9 4 , 9

CHALLENGE
ACTIVITY
3.2.2: Output formatting.
5225623578194,9329y7
Jump to level 1
Double length and integer amountCkanged are read from input. Output the following:
length as a floating-point value, followed by "%".
amountChanged as an octal integer value, followed by "%".
length as a floating-point value in scientific notation, followed by "%".
End each output with a newline.
Ex. If the input is 34.069, then the output is:
34.0000008
1058
3.400000e+018
import java.util. Scanner;
public class OutputNotation {
public static void main(String [] args){
Scanner scnr = new Scanner(
System.in);
double length;
int amountChanged;
length = scnr. nextDouble();
amountChanged =scnr. nextInt () ;
Y* Your code goes here */
}
 CHALLENGE ACTIVITY 3.2.2: Output formatting. 5225623578194,9329y7 Jump to level 1 Double

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!