The completed Java code for the problem is shown below
java
import java.util.Scanner;
public class LabProgram {
public static void main(String[] args) {
Scanner scnr = new Scanner(System.in);
double f0 = scnr.nextDouble();
double r = Math.pow(2, 1.0 / 12.0);
System.out.printf("%.2f ", f0);
for (int i = 1; i <= 4; i++) {
double fn = f0 * Math.pow(r, i);
System.out.printf("%.2f ", fn);
}
System.out.println(); // to move to the next line after printing the frequencies
}
}