Answered step by step
Verified Expert Solution
Question
1 Approved Answer
I previously asked for help on this same question and the answer I received below is still wrong Can you assist ? 3.7 LAB: Output
I previously asked for help on this same question and the answer I received below is still wrong
Can you assist ?
3.7 LAB: Output range with increment of 10 Instructor note: Important Coding Guidelines: Use comments, and whitespaces around operators and assignments. Use lime breaks and indent your code Use naming conventions for variables, functions, methods, and more. This makes it easier to understand the code. Write simple code and do not over complicate the logie Code exhibits simplicity when it's well organized logically minimal, and easily readable. Write a program whess input is two integers, and whose output is the furst integer and subsequent increments of 10 as long as the value is less than or squal to the second integer Exc If the input is: -15 30 the output is: -19 -5 5 15 25 Ex If the second integer is less than the first as inc 20 5 the output is: Second intages can't be less than the first. For coding simplicity output a space after every integer including the last ACTIVITY 27.1: LAB: Output range with increment of 10 0/ 10 LabProgram.java Load default template... 19 |dot 21 | | System.out. print in(newbus); 25 26 37 61 se 29 System.out-printin( "The Second number can't be less than first "j; 31 When done developing your program press the Submit for grading button below This will Develop mode Submit mode submit your program for auto-grading. Submit for grading Docing trall of your work What Is this? 3/11 3-0 ---- -0 min: 9 Latest submission - 6:05 PM EDT on 04/01/23 Total score: 0 / 10 O) Only show failing tests Download this submissionInput 10 20 Enter End Antages numbers Your output 10 30 Expected output 10 20 4 Compare cutput a 0/2 Output differs. See highlights below Input 9 21 Entes two Antages numbers Your output Expected output = 19 5 Compare cutput a 0/2 Output differs. Son highlights below Input 4 4 Your output Entes End intages numbers The Second nantes can't be hess than 21=26 Expected cutput Previous submissions 11:53 PM on 2/11/23 0/10 Hide LabProgram.java i import java. util. Scanner, 3 public class LabProgram public static vold main( String[ ] args) Scanner sc = now Scanner(System. In); System, cut. print( "Enter the first integer: "); int first = sc.nextint(); System, cut. print ( "Enter the second Integers ") Int second = S. next Int ( )! if (second System. out-printing "Second integer can't be less than the first. "); int current = first; Only show failing tests Download this submission 1:Compare output A 0/2 Output differs. See highlights below Input -19 30 Your output Enter the first integer: Ences the second incages: -15 -5 5 19 25 Expected output -19 -5 9 15 25 2: Compare output A 0/2O] Only show failing tests Download this submission 1:Compare output A 0/2 Output differs. See highlights below Input -15 30 Your output Enter the first ancagar: Ences the second incages: -15 -9 9 19 25 Expected output -15 -5 5 15 25 2 Compare output A 0/2 Output differs. See highlights below. Input 20 = Enter the first integer: Ences the second incages: Bacond ancages Can't > Your output Expected output Second intages can't be less than the fest. 2: Compare output A 0/2 Output differs. See highlights below Imput 10 20 Your output Enter the Meat Invegas: Ences the second Incages: 10 20 Expected output 10 20 4: Compare output A 0/2 Output differs. See highlights below. Input Your output Enter the first invegas: Encas the macand Incages: $ 19 Expected output = 15 SCompare output A 0/2 Output differs. See highlights below Input 4 4 Your output Enter the first ancegar: Ences the second incages: 4 Expected output 4 Trouble with Inbar Activity summary for assignment: Unit 3 Lab Assignment 50% Dus: 06/15/2028, 7:50 PM EDT 50 % subn had to. Correct Code: import java. util.scanner; class LabProgram { public static void main (String args) { Scanner in = now Scanner (System. in) ; System. out. printIn( "Enter two integer numbers" ); int numl - in.nextInt(); int num2 - in.nextInt(); if (num1Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started