The java program is an illustration of sequential programs
<h3>What are sequential programs?</h3>
Sequential programs are programs that do not require loops or conditions
<h3>The actual program</h3>
The program written in Java, where comments are used to explain each line is as follows:
import java.util.*;
public class Main{
public static void main(String[] args) {
//This creates a Scanner Object
Scanner input = new Scanner(System.in);
//This declares the variables
String name, team;
//This prompts the user for name
System.out.print("Name: ");
//This gets an input from the user
name = input.nextLine();
//This prompts the user for favorite team
System.out.print("Favorite team: ");
//This gets an input from the user
team = input.nextLine();
//This prints the required output
System.out.print("Welcome, "+name+". Cheers to "+team+" team");
}
}
Read more about sequential programs at:
brainly.com/question/26642771