Question: Please reorder the lines and correct if need be so that the program can accept three input scores and output the average Write a program
Please reorder the lines and correct if need be so that the program can accept three input scores and output the average
Write a program by using the following code to accept three input scores and display to output the average. Note: use java swing import feature Part I import javax.swing. JOptionPane; public class Your name public static void main (String[] args) type your code here Help Reorder the following codes and plug on the above program compile, run, and submit the screenshot and .java file for credit Correct code, compiled, run, screenshot, and .java file you get 30 points else if (Average 69) LetterGrd-"C; else if (Average-79) Lette rGrd-"B"; if (Average>89) LetterGrd-"A"; input JOptionPane.showlnputDialog("Enter First Score1"); OptionPane.showMessageDialog(nul, "The score is "+LetterGrd); score1 Double.parseDouble(input); input JOptionPane.showlnputDialog("Enter First Score2"); input JOption Pane.showlnputDialog( Enter First Score3"); score2 Double.parseDouble (input) score3 Double.parseDouble (input); Average -(score1+score2+score3)/3; String input, LetterGrd; double score1,score2, score3,Average; else LetterGrd-"F"; else if (Average>59) LetterGrd-D
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
