Question: Please code in Java. Staggered Print Today you are to create a program that will accept, validate, potentially repeatedly prom pt the user for a

Please code in Java.

Please code in Java. Staggered Print Today you are to create a

Staggered Print Today you are to create a program that will accept, validate, potentially repeatedly prom pt the user for a valid integer input, and produce an output in the console based on explicit specifications. This program can be broken down grossly into three major components: 1. Variable declaration/initialization. 2. User ingut: you are to retrieve a single integer input (userlnt) from a user. If userl'nt is less or equal to -999, or usen'nt is greater than -84, or userint is not a multiple of 4, your program must prompt the user for a new integer input. Any new input must not trigger any of the aforementioned conditions before your program produces an output. 3. Output: Once a valid usen'nt is accepted: a) Print only once \"Output\" to the console. b) Replicate exactly the staggered-like designs shown in the examples below. To achieve this, usen'nt is divided by -3 after each loop iteration and diSpIays exactly 5 lines after "Output\". Based on the previous specications your program should look and behave exactly as displayed in the cases below: E"*""."".i"t' "999 . Enter 0" int: '93 Enter an int: 98@ I'w''d "'t' "'3' "9m": Invalid int, try again: -1@2 Invalid int, try again: 134 Invalid int, try again: Invalid int, try again: Invalid int, try again: Output: Output: -104 34 -11 3 -1 Note 1: You are to expect a perfect user who will always enter integer values. Note 2: This problem can be done with one or two loops. Note 3: All calculations, inputs and outputs should be in integer format and the use of libraries other than java . util . Scanner is prohibited

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 Programming Questions!