Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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 averageimage text in transcribed

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Administration The Complete Guide To Dba Practices And Procedures

Authors: Craig S. Mullins

2nd Edition

0321822943, 978-0321822949

More Books

Students also viewed these Databases questions