Write a Java program as follows:1. Prompt the user on which action they want to take:a. Convert cubic feet to U.S. bushelsb. Convert miles to kilometersc. Determine graduation with honors titled. Exit program2. Programs at a minimum must have the following methods:a. Convert cubic feet method that gets cubic feet and returns U.S. bushels.b. Convert to kilometers method that gets miles and returns kilometersc. Determine graduation with honors title method that gets GPA and returnshonors title value (category)
PagePage numberof 10. Starting State: ◦ Increment input string’s index value ◦ If is operator, next state is 1 ◦ If is digit, next state is 2 ◦ If is space, next state is 4 ◦ If is end of string, next
PagePage numberof 10. Starting State:◦ Increment input string’s index value◦ If is operator, next state is 1◦ If is digit, next state is 2◦ If is space, next state is 4◦ If is end of string, next state is 5◦ If anything else, next state is 61. Found operator:◦ Pop