Finished Assignment. Refractering Code Structure.
This commit is contained in:
parent
ccf9374c25
commit
5e16a18441
@ -53,7 +53,7 @@ Algorithm Design Block
|
||||
return result
|
||||
|
||||
*/
|
||||
package Assignment1;
|
||||
package Assignments.A1;
|
||||
|
||||
import java.util.Scanner;
|
||||
|
@ -6,10 +6,10 @@
|
||||
// IDE Name: IntelliJ
|
||||
/*
|
||||
Algorithm Design Block
|
||||
Algorithm title: Assignment1.Locker Doors Problem
|
||||
Algorithm title: Locker Doors Problem
|
||||
|
||||
Logical steps:
|
||||
Step 1: Declare two fields, An Array of Assignment1.Locker & A Comparisons Integer.
|
||||
Step 1: Declare two fields, An Array of Assignments.Assignment1.Locker & A Comparisons Integer.
|
||||
Step 2: Gather user input for the number of lockers in the problem.
|
||||
Step 3: Start the locker swap. Check if the input has been gathered prior to execution, if not stop and revert to Step 2.
|
||||
Step 4: Set comparisons to 0.
|
||||
@ -48,7 +48,7 @@ Algorithm Design Block
|
||||
print("Closed lockers: " + closed_lockers)
|
||||
print("Comparisons: " + comparisons)
|
||||
*/
|
||||
package Assignment1;
|
||||
package Assignments.A1;
|
||||
|
||||
import java.util.Scanner;
|
||||
|
Loading…
Reference in New Issue
Block a user