package week5; /* Please create an algorithm and a coded solution based on your created algorithm for the following question: For this task, you are required to create a program that prints the sequence: 1,4, 7, 10… up to a specified limit entered by the user. The sequence must start at 1. The program should print this sequence using formatting inside a For Loop. lgorithm (Pseudocode): Start Prompt the user to enter a limit for the sequence. Read the user input (the limit). Initialize a variable startValue = 1 (this is the starting point of the sequence). Initialize a variable step = 3 (since the sequence increases by 3 each time). Use a for loop to print the sequence: Set the loop to run from startValue and increment by step each iteration until it reaches the specified limit. Condition: current value <= limit. Inside the loop, print the current value followed by a comma. End the loop when the current value exceeds the limit. End the program. */ import java.util.Scanner; public class PracQ2 { public static void main(String[] args) { Scanner myInput = new Scanner(System.in); System.out.println("Please enter a limit for the sequence: "); int limit = myInput.nextInt(); for(int i = 1; i