Question: First, ask the user for a positive integer called length. If the user does not provide an integer, or if the integer is not positive,

First, ask the user for a positive integer called length. If the user does not provide an integer, or if the integer is not positive, then ask again, by asking inside a while loop.

The acceptable integer is intended to indicate the users desired twist length. A twist is always three lines long, and made of slash characters and X characters. For example, if length is 25, then your code should print out this:

First, ask the user for a positive integer called length. If the

Simple output: IXI XI XI XI XI XI XI XI To complete the code, figure out the repeating patterns on each line, and print out the twist. Save your java code in Twist.java

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!