Question: Need help writing java for this two part question ) (This program does NOT use a switch statement) A gas station offers three grades of

Need help writing java for this two part question  Need help writing java for this two part question ) (This
program does NOT use a switch statement) A gas station offers three

) (This program does NOT use a switch statement) A gas station offers three grades of gasoline: "regular", "premium" and "super". The user is asked for the price for each of the three types of gasoline. You may choose the price for the 3 grades of gasoline. The program, named Gas1.java, presents a menu on the screen. If the user chooses the first option, the program prints the price for "regular" gas in a dialog box. If the user chooses the 2nd option, the program prints a dialog reminding him/her, that they are dealing with "premium" gas, and in a separate dialog displays the price for premium gas. If the user chooses the 3rd option, the program reacts similar to the 2nd option, except for "super" grade gas. If the user chooses a non-existing menu option, a dialog box containing an error message appears, and the program ends. The following illustrates, how the program executes: (The bolded text represents user's entries) Sample execution 1 Sample execution 2 Sample execution 3 Somple execution 4

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!