<prompt> Hlahisa lenaneo le nepahetseng la java ho fumana nako ea nth ea tatellano ea lipalo.nan  <response>: Instruction in English: Generate a correct java program to find the nth term of an arithmetic sequence. . Response in English: Here is a Java program that calculates the nth term of an arithmetic sequence:javaimport java.util.Scanner;public class ArithmeticSequence public static void mainString args Scanner sc new ScannerSystem.in; System.out.printlnEnter first term of arithmetic sequence: ; int firstTerm sc.nextInt; System.out.printlnEnter common difference of arithmetic sequence: ; int commonDifference sc.nextInt; System.out.printlnEnter the value of n to find the nth term of the sequence: ; int n sc.nextInt; int nthTerm firstTerm n - 1 commonDifference; System.out.printlnThe nth term of the arithmetic sequence is: nthTerm; This program prompts the user to enter the first term, common difference, and the value of n, then calculates and displays the nth term of the arithmetic sequence. The formula used to calculate the nth term is firstTerm n - 1 commonDifference. . Response in Sesotho: Lenane la Java ke lena le balang nako ea nth ea tatellano ea lipalo: java import java.util.Scanner; sehlopha sa sechaba ArithmeticSequence public static void mainString args Skena sc New ScannerSystem.in; System.out.printlnKena nako ea pele ea tatellano ea lipalo: ; int firstTerm sc.nextInt; System.out.printlnKena phapang e tloaelehileng ea tatellano ea lipalo: ; int commonDifference sc.nextInt; System.out.printlnKenya boleng ba n ho fumana nako ea nth ea tatellano: ; int n sc.nextInt; int nthTerm Pele Nako n - 1 CommonDifference; System.out.printlnLebaka la nth la tatellano ea lipalo ke: nthTerm; Lenaneo lena le etsa hore mosebelisi a kenye nako ea pele, phapang e tloaelehileng, le boleng ba n, ebe o bala le ho bontša nako ea nth ea tatellano ea lipalo. Foromo e sebelisitsoeng ho bala lentsoe la nth ke FirstTerm n - 1 commonDifference. 