Question: Main topics: Basic String Methods Boolean Expressions if & f else Statements Program Specification: Write a Java program that does the following: . Prompts the

 Main topics: Basic String Methods Boolean Expressions if & f elseStatements Program Specification: Write a Java program that does the following: .

Main topics: Basic String Methods Boolean Expressions if & f else Statements Program Specification: Write a Java program that does the following: . Prompts the user to input a string of characters, which constitude a valid turn dial lock combination. . Gets whatever the user enters and stores it into a String variable, using the the Scanner's .nextLineO method . Determines if the input string is indeed a valid combination based on the following rules 1. It's length is be between 6 an 9 characters, inclusive 2. It consists of only the following characters: R'. L', and '0 through '9 3. The R' character must appear exactly twice 4. The first character must be an R character 5. The L' character must appear exactly once 6. The L' character must appear between the two 'R' characters 7. Each 'R and L' character must be followed by at least one '0' through '9' character 8. No more than two '0' through '9' characters may appear consecutively e Displays this determination to the user in a reasonable report format Grading Performance Indicator Reada Use of conditional loop operators Functional requirements Efficiency bility and documentation Sample run(s) RUN 1 Please enter a valid turn dial lock combination 12345 12345 is not a valid turn dial lock combination

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!