【General guidance】The answer provided below has been developed in a clear step by step manner.Step1/3Problem Overview:The program is a simple application of conditional statements (if-else) and looping statement( while loop) .First user input for type of glasses is taken.There are 2 valid options for this input - 1 or 2. So ask input till user enters a valid value for input( either 1 or 2).Similarly input is taken of coating for the chosen glasses above.This filed also has only 2 valid options. So ask input till user enters either one of these.Explanation:Please refer to solution in this step.Step2/3Calculation of final price:If user enters 1(prescription) for type of glasses, it would cost \( \mathrm{\${40.0}} \).But if user enters 2 then it would cost \( \mathrm{\${25.00}} \)The user can only enter either one of these two options.-Now for these glasses, type of coating is taken as input. If user enters 1(anti-glare) that is \( \mathrm{\${12.50}} \)But if 2(brown tint) is entered then it's price is \( \mathrm{\${9.99}} \).-According to input values any 1 from above and one from below prices would be added up and total cost is calculated and printed.-Programming language used: Java.Explanation:Please refer to solution in this step.Step3/3JAVA CODE:import java.util.Scanner;public class Main{ // function to show type glasses static void showGlasses(){ System.out.print("1 -> prescription, 2 ->non-prescription: "); } // function to show type of coatings for glasses static void showCoating(){ System.out.print("1 -> anti-glare, 2 ->brown tint: "); } // function to calcuate and print final cost of glasses static void calculatePrice(i ... See the full answer